Files
status-mobile/android/app/googleServices.gradle
Sean Hagstrom d0221aff1c feat: integrate firebase sdk for ios and android (#21983)
This change re-introduces the Firebase SDK via a react-native library. This has been done to support remote notifications via push-notifications from Firebase Cloud Messaging. This initial integration supports receiving FCM notifications on both iOS and Android platforms.

This change also attempts to ensure that FDroid builds will not include Firebase or Google Play Services inside the build.
2025-04-14 11:09:19 +01:00

26 lines
693 B
Groovy

/**
* Exclude google library so we can publish to external android stores
*/
def googleFree = project.env.get("GOOGLE_FREE", "0") == '1'
if (!googleFree) {
apply plugin: 'com.google.gms.google-services'
}
dependencies {
if (googleFree) {
implementation(project(':react-native-firebase_app')) {
exclude group: 'com.google.firebase'
exclude group: 'com.google.gms'
}
implementation(project(':react-native-firebase_messaging')) {
exclude group: 'com.google.firebase'
exclude group: 'com.google.gms'
}
} else {
implementation 'com.google.firebase:firebase-messaging:24.1.0'
}
}