Skip to content

Commit bb6a3f0

Browse files
committed
update build prompt
1 parent e3e58a0 commit bb6a3f0

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

examples/build.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,19 @@ Before building anything, an Android emulator MUST be running with the
1313
reference OneSignal demo app installed. These screenshots are the source
1414
of truth for the UI you are building. Do NOT proceed to Phase 1 without them.
1515
16-
Check for a connected emulator:
16+
Check for connected emulators:
1717
adb devices
1818
1919
If no device is listed, stop and ask the user to start one.
2020
21+
Identify which emulator has com.onesignal.sdktest installed by checking each listed device, e.g.:
22+
adb -s emulator-5554 shell pm list packages 2>/dev/null | grep -i onesignal
23+
adb -s emulator-5556 shell pm list packages 2>/dev/null | grep -i onesignal
24+
25+
Use that emulator's serial (e.g. emulator-5556) for all subsequent adb commands via the -s flag.
26+
2127
Launch the reference app:
22-
adb shell am start -n com.onesignal.sdktest/.ui.main.MainActivity
28+
adb -s <emulator-serial> shell am start -n com.onesignal.sdktest/.ui.main.MainActivity
2329
2430
Dismiss any in-app messages that appear on launch. Tap the X or
2531
click-through button on each IAM until the main UI is fully visible
@@ -92,6 +98,8 @@ Build the app with:
9298
- Clean architecture: repository pattern with ChangeNotifier-based state management (Provider)
9399
- Dart 3+ with null safety
94100
- Material 3 theming with OneSignal brand colors
101+
- App name: "OneSignal Demo"
102+
- Top app bar: centered title with OneSignal logo SVG + "Sample App" text (use centerTitle: true on AppBar)
95103
- Support for both Android and iOS
96104
- Android package name: com.onesignal.example
97105
- iOS bundle identifier: com.onesignal.example

0 commit comments

Comments
 (0)