From 1e146867aef2688385b9005c04f2280c2115e388 Mon Sep 17 00:00:00 2001 From: GOVINDDIXIT Date: Sun, 14 Jun 2020 19:48:50 +0530 Subject: [PATCH] requested changes --- android/app/build.gradle | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index 5a6063e01..cc2d30b63 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -5,18 +5,12 @@ apply plugin: "com.android.application" apply plugin: 'kotlin-android' apply plugin: 'com.bugsnag.android.gradle' -apply plugin: 'com.google.gms.google-services' if(isPlay){ apply plugin: "io.fabric" apply plugin: "com.google.firebase.firebase-perf" } -android.applicationVariants.all { variant -> - def googleTask = tasks.findByName("process${variant.name.capitalize()}GoogleServices") - googleTask.enabled = !"foss".equals(variant.flavorName) -} - import com.android.build.OutputFile /** @@ -193,15 +187,15 @@ android { // applicationVariants are e.g. debug, release - flavorDimensions 'type' + flavorDimensions "type" productFlavors { foss { - dimension = 'type' - buildConfigField 'boolean', 'PLAY_BUILD', "false" + dimension = "type" + buildConfigField "boolean", "PLAY_BUILD", "false" } play { - dimension = 'type' - buildConfigField 'boolean', 'PLAY_BUILD', "true" + dimension = "type" + buildConfigField "boolean", "PLAY_BUILD", "true" } } @@ -277,4 +271,7 @@ task copyDownloadableDepsToLibs(type: Copy) { into 'libs' } -apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) \ No newline at end of file +apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) +if(isPlay) { + apply plugin: 'com.google.gms.google-services' +} \ No newline at end of file