Repository navigation
chore: [SDK-5805] default Flutter demos to the shared example app - #1207
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
7 of 18 tasks
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.
One Line Summary
Flutter demos build and run against the shared OneSignal example app out of the box, while e2e keeps using
com.onesignal.sdkdemo.Motivation
com.onesignal.sdkdemois registered to the enterprise team (DL8TF3X4K3), so nobody outside it can sign the demo, and a bundle ID can only belong to one team. The demo also wouldn't build without a.envand threw at startup without an app ID. Same change as OneSignal/OneSignal-Capacitor-SDK#89 and OneSignal/OneSignal-Cordova-SDK#1226.Scope
Applies to
demo,demo-pods,demo-no-locationanddemo-no-location-pods.flutter-local-notifis unchanged.com.onesignal.exampleon team99SW8E36CT, Android packagecom.onesignal.example, app ID1154c350-e715-4b71-a58b-1b84b6745baa.ios/demo.xcconfigis the project-level base configuration and setsDEMO_BUNDLE_ID/DEMO_TEAM_ID. Bundle IDs, teams and app groups derive from them. It optionally includes a gitignoredlocal.xcconfigfor your own team.flutter buildcan't pass Xcode build settings, sodemoanddemo-podsalso include a gitignoredios/e2e.xcconfig. CI writes it withcom.onesignal.sdkdemo/DL8TF3X4K3beforeflutter build ipa.ExportOptions.plistand the enterprise profiles are unchanged.applicationIdcomes from-PDEMO_BUNDLE_ID(defaultcom.onesignal.example); CI passescom.onesignal.sdkdemo. The namespace is unchanged.env/.env:pubspec.yamlnow bundles theenv/folder, which is tracked with a.gitkeep. A listed.envfile that doesn't exist fails the build; an empty folder doesn't. An empty or missingONESIGNAL_APP_IDfalls back to the default app. Existing local.envfiles need to move toenv/.env.create-demo-envwritesexamples/demo/env/.env.Notes
run-local.shneeds the matching change (SDK-5811) to writeenv/.envande2e.xcconfig; it falls back to the root.envfor older branches.com.onesignal.example.Testing
xcodebuild -showBuildSettingsresolvescom.onesignal.example/99SW8E36CTfor every target indemo,demo-podsanddemo-no-location-pods. Withe2e.xcconfig,demoresolvescom.onesignal.sdkdemo/DL8TF3X4K3with the "Appium Demo" profiles.demo-no-locationdoesn't resolve SPM packages onmaineither (it pinsonesignal-xcframework5.5.5 exactly), so it wasn't checked.com.onesignal.exampleby default andcom.onesignal.sdkdemowith-PDEMO_BUNDLE_ID.flutter build apksucceeds with noenv/.env.flutter analyze: no new issues (one existing unused-import note indemoanddemo-pods).run-local.shwith SDK-5811): app installed ascom.onesignal.sdkdemoand01_userpassed.Affected code checklist
Checklist
🤖 Generated with Claude Code