You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a WEBTRIT_APP_FIREBASE_ENABLED config (default true, runtime-overridable
via EnvRegistry) that gates every Firebase touchpoint in bootstrap: Firebase
app, messaging and local pushes init, the app-id provider (FirebaseAppIdProvider
vs SharedPreferencesAppIdProvider), and Remote Config (falls back to the local
shared-preferences cache when off). The analytics repository is now provided
lazily and its navigator observer is only attached when the flag is on, so the
app never touches FirebaseAnalytics.instance when Firebase is disabled.
This lets a host that owns the default Firebase app - the theme configurator's
realtime preview - run the embedded app Firebase-free by configuring the flag
off, while standalone builds default to true and behave exactly as before.
Copy file name to clipboardExpand all lines: dart_define.json
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,6 @@
1
1
{
2
+
"WEBTRIT_APP_FIREBASE_ENABLED": true,
3
+
"__WEBTRIT_APP_FIREBASE_ENABLED_DESCRIPTION": "Whether Firebase (app, messaging, local push, Remote Config, Installations, Analytics) is initialised. Default true. Disable when the app is embedded in a host that owns the default Firebase app (e.g. the theme configurator's realtime preview) so the embedded app runs Firebase-free.",
0 commit comments