Repository navigation
chore: [SDK-5804] default Android demo to the shared example app - #2859
Merged
Merged
Conversation
The gms flavor builds as com.onesignal.example by default with the shared default app ID; E2E passes -PDEMO_BUNDLE_ID=com.onesignal.sdkdemo. A missing app ID no longer fails the build, and google-services.json is only applied when it has a client for the package. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
📊 Diff Coverage Report✓ Coverage check passed (no source files changed) |
sherwinski
approved these changes
Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
One Line Summary
Build the Android demo as
com.onesignal.examplewith the shared default app ID, and keepcom.onesignal.sdkdemofor E2E.Details
Motivation
Part of SDK-5802: every SDK demo should build out of the box against the shared example app, while E2E keeps the
com.onesignal.sdkdemopackage its FCM config and BrowserStack setup use.Scope
gmsapplicationId=DEMO_BUNDLE_ID(-Porlocal.properties, defaultcom.onesignal.example).huaweistays oncom.onesignal.example, so it still matchesagconnect-services.json.ONESIGNAL_APP_IDfalls back to1154c350-e715-4b71-a58b-1b84b6745baa. ThepreBuildcheck that failed the build is removed.app/google-services.jsonhas a client for the current package. Otherwise the build warns and skips Firebase.FIREBASE_INSTALLATION_ID_ENABLED=truewithout a matching client still fails, now with a clearer message.e2e.ymlpasses-PDEMO_BUNDLE_ID=com.onesignal.sdkdemo.com.onesignal.example, pass-PDEMO_BUNDLE_IDon install, and pass the package to the Maestro flows (appId: ${APP_ID}).examples/build.md,GettingStarted.md,local.properties.example, and the retry README.The matching sdk-shared
run-localchange, which passes-PDEMO_BUNDLE_ID=$BUNDLE_IDand enables Firebase Installation IDs only when the JSON has that client, is on sdk-shared main.Testing
Manual testing
assembleGmsDebugwith no config files: packagecom.onesignal.example,BuildConfig.ONESIGNAL_APP_ID=1154c350….-PFIREBASE_INSTALLATION_ID_ENABLED=trueand agoogle-services.jsonforcom.onesignal.example: builds, and the manifest flag istrue.-PDEMO_BUNDLE_ID=com.onesignal.sdkdemowith a JSON that only hascom.onesignal.example: builds ascom.onesignal.sdkdemowithout Firebase. AddingFIREBASE_INSTALLATION_ID_ENABLED=truefails with the new message.assembleHuaweiDebug: packagecom.onesignal.example.spotlessCheckpasses.run-local.sh --platform=android --sdk=android --spec=01_useron an emulator: 2 of 2 passing.Push on
com.onesignal.exampleneeds FCM credentials on the default app.Affected code checklist
Checklist
Overview
Testing
Final pass
🤖 Generated with Claude Code