2021-07-20 13:23:29 +00:00
|
|
|
diff --git a/node_modules/react-native-device-info/android/build.gradle b/node_modules/react-native-device-info/android/build.gradle
|
2022-01-13 13:05:52 +00:00
|
|
|
index de22598..eafedfe 100644
|
2021-07-20 13:23:29 +00:00
|
|
|
--- a/node_modules/react-native-device-info/android/build.gradle
|
|
|
|
+++ b/node_modules/react-native-device-info/android/build.gradle
|
|
|
|
@@ -51,16 +51,19 @@ repositories {
|
|
|
|
dependencies {
|
|
|
|
implementation "com.facebook.react:react-native:${safeExtGet('reactNativeVersion', '+')}"
|
|
|
|
implementation "com.android.installreferrer:installreferrer:${safeExtGet('installReferrerVersion', '1.1.2')}"
|
|
|
|
- def firebaseBomVersion = safeExtGet("firebaseBomVersion", null)
|
|
|
|
- def firebaseIidVersion = safeExtGet('firebaseIidVersion', null)
|
|
|
|
- if (firebaseBomVersion) {
|
|
|
|
- implementation platform("com.google.firebase:firebase-bom:${firebaseBomVersion}")
|
|
|
|
- implementation "com.google.firebase:firebase-iid"
|
|
|
|
- } else if(firebaseIidVersion){
|
|
|
|
- implementation "com.google.firebase:firebase-iid:${firebaseIidVersion}"
|
|
|
|
- }else{
|
|
|
|
- def iidVersion = safeExtGet('googlePlayServicesIidVersion', safeExtGet('googlePlayServicesVersion', '17.0.0'))
|
|
|
|
- implementation "com.google.android.gms:play-services-iid:$iidVersion"
|
|
|
|
+ def libreBuild = safeExtGet('libre_build', false)
|
|
|
|
+ if (!libreBuild) {
|
|
|
|
+ def firebaseBomVersion = safeExtGet("firebaseBomVersion", null)
|
|
|
|
+ def firebaseIidVersion = safeExtGet('firebaseIidVersion', null)
|
|
|
|
+ if (firebaseBomVersion) {
|
|
|
|
+ implementation platform("com.google.firebase:firebase-bom:${firebaseBomVersion}")
|
|
|
|
+ implementation "com.google.firebase:firebase-iid"
|
|
|
|
+ } else if(firebaseIidVersion){
|
|
|
|
+ implementation "com.google.firebase:firebase-iid:${firebaseIidVersion}"
|
|
|
|
+ }else{
|
|
|
|
+ def iidVersion = safeExtGet('googlePlayServicesIidVersion', safeExtGet('googlePlayServicesVersion', '17.0.0'))
|
|
|
|
+ implementation "com.google.android.gms:play-services-iid:$iidVersion"
|
|
|
|
+ }
|
|
|
|
}
|
|
|
|
|
|
|
|
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
|