Merge pull request #3529 from erikhuizinga/erikhuizinga-3527-fix-google-play-service-application

Apply Google Services Gradle plugin more robustly
This commit is contained in:
Benoit Marty 2021-07-01 10:16:00 +02:00 committed by GitHub
commit 69c399a229
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -246,6 +246,11 @@ android {
productFlavors {
gplay {
apply plugin: 'com.google.gms.google-services'
afterEvaluate {
tasks.matching { it.name.contains("GoogleServices") && !it.name.contains("Gplay") }*.enabled = false
}
dimension "store"
isDefault = true
versionName "${versionMajor}.${versionMinor}.${versionPatch}${getGplayVersionSuffix()}"
@ -506,7 +511,3 @@ dependencies {
exclude group: 'org.jetbrains.kotlin'
}
}
if (getGradle().getStartParameter().getTaskRequests().toString().contains("Gplay")) {
apply plugin: 'com.google.gms.google-services'
}