Fixed to be able to build without google-services.json
This commit is contained in:
@@ -3,9 +3,12 @@ apply plugin: 'kotlin-android'
|
||||
apply plugin: 'kotlin-kapt'
|
||||
apply plugin: 'kotlin-android-extensions'
|
||||
apply plugin: 'kotlinx-serialization'
|
||||
apply plugin: 'com.google.gms.google-services'
|
||||
apply plugin: 'io.fabric'
|
||||
apply plugin: 'com.google.firebase.firebase-perf'
|
||||
|
||||
if (file("google-services.json").exists()) {
|
||||
apply plugin: 'com.google.gms.google-services'
|
||||
apply plugin: 'io.fabric'
|
||||
apply plugin: 'com.google.firebase.firebase-perf'
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdkVersion 29
|
||||
@@ -14,7 +17,7 @@ android {
|
||||
minSdkVersion 16
|
||||
targetSdkVersion 29
|
||||
versionCode 31
|
||||
versionName "4.2-beta2-hotfix2"
|
||||
versionName "4.2"
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
multiDexEnabled true
|
||||
vectorDrawables.useSupportLibrary = true
|
||||
@@ -25,7 +28,7 @@ android {
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
buildTypes.each {
|
||||
it.buildConfigField('boolean', 'PRERELEASE', 'true')
|
||||
it.buildConfigField('boolean', 'PRERELEASE', 'false')
|
||||
it.buildConfigField('boolean', 'CENSOR', 'false')
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user