requested changes
This commit is contained in:
parent
504911d3c0
commit
1e146867ae
|
@ -5,18 +5,12 @@ apply plugin: "com.android.application"
|
||||||
apply plugin: 'kotlin-android'
|
apply plugin: 'kotlin-android'
|
||||||
|
|
||||||
apply plugin: 'com.bugsnag.android.gradle'
|
apply plugin: 'com.bugsnag.android.gradle'
|
||||||
apply plugin: 'com.google.gms.google-services'
|
|
||||||
|
|
||||||
if(isPlay){
|
if(isPlay){
|
||||||
apply plugin: "io.fabric"
|
apply plugin: "io.fabric"
|
||||||
apply plugin: "com.google.firebase.firebase-perf"
|
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
|
import com.android.build.OutputFile
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -193,15 +187,15 @@ android {
|
||||||
|
|
||||||
// applicationVariants are e.g. debug, release
|
// applicationVariants are e.g. debug, release
|
||||||
|
|
||||||
flavorDimensions 'type'
|
flavorDimensions "type"
|
||||||
productFlavors {
|
productFlavors {
|
||||||
foss {
|
foss {
|
||||||
dimension = 'type'
|
dimension = "type"
|
||||||
buildConfigField 'boolean', 'PLAY_BUILD', "false"
|
buildConfigField "boolean", "PLAY_BUILD", "false"
|
||||||
}
|
}
|
||||||
play {
|
play {
|
||||||
dimension = 'type'
|
dimension = "type"
|
||||||
buildConfigField 'boolean', 'PLAY_BUILD', "true"
|
buildConfigField "boolean", "PLAY_BUILD", "true"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -278,3 +272,6 @@ task copyDownloadableDepsToLibs(type: Copy) {
|
||||||
}
|
}
|
||||||
|
|
||||||
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'
|
||||||
|
}
|
Loading…
Reference in New Issue