requested changes

This commit is contained in:
GOVINDDIXIT 2020-06-14 19:48:50 +05:30
parent 504911d3c0
commit 1e146867ae
1 changed files with 9 additions and 12 deletions

View File

@ -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)
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'
}