diff --git a/app/build.gradle b/app/build.gradle index 6598828e88..bec0e82735 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -3,7 +3,6 @@ apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' apply plugin: 'kotlin-kapt' apply plugin: 'com.google.firebase.crashlytics' -apply plugin: 'com.google.gms.google-services' android { compileSdkVersion 29 @@ -108,4 +107,11 @@ dependencies { androidTestImplementation 'androidx.test.ext:junit:1.1.2' androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' +} + +apply plugin: 'com.google.gms.google-services' + +android.applicationVariants.all { variant -> + def googleTask = tasks.findByName("process${variant.name.capitalize()}GoogleServices") + googleTask.enabled = "release".equals(variant.name) } \ No newline at end of file