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