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
Issue description
Currently the app only needs Firebase (App Check) for one specific feature: sharing benchmark results with the community. We use App Check to verify the legitimacy of these benchmark submissions (i.e., to ensure they come from real users rather than automated scripts, etc). For custom compiles or other platforms like fdroid we can disable sharing benchmarks, so Firebase is unnecessary.
Therefore, we want to provide two distinct build variants/flavors:
Firebase-Enabled – Includes Firebase libraries (App Check, etc.) and allows sharing benchmark results.
Non-Firebase – Excludes all Firebase references and cannot share benchmark results (or just greys out that feature).
Potential solution:
Android
Define product flavors in android/app/build.gradle:
flavorDimensions "default"
productFlavors {
firebaseEnabled {
dimension "default"// This flavor includes Firebase dependencies (App Check) // for sharing benchmark results and verifying legitimacy
}
firebaseDisabled {
dimension "default"// This flavor has no Firebase libraries -> cannot share benchmarks
}
}
In the firebaseEnabled flavor:
Add google-services.json and apply the Google Services plugin.
Issue description
Currently the app only needs Firebase (App Check) for one specific feature: sharing benchmark results with the community. We use App Check to verify the legitimacy of these benchmark submissions (i.e., to ensure they come from real users rather than automated scripts, etc). For custom compiles or other platforms like fdroid we can disable sharing benchmarks, so Firebase is unnecessary.
Therefore, we want to provide two distinct build variants/flavors:
Potential solution:
Android
android/app/build.gradle
:firebaseEnabled
flavor:google-services.json
and apply the Google Services plugin.firebaseDisabled
flavor:google-services.json
.iOS
FirebaseEnabled
target referencesGoogleService-Info.plist
.FirebaseDisabled
target does not include any Firebase refs.Podfile
depending on build configs.ts code
@react-native-firebase
modules (e.g.,app
,app-check
)The text was updated successfully, but these errors were encountered: