Apply Google Services Gradle plugin more robustly

Fixes #3527
This commit is contained in:
Erik Huizinga 2021-06-18 12:26:30 +02:00
parent 5325c761f4
commit 22f3f612d7
No known key found for this signature in database
GPG Key ID: 9F1BAB5C9E522DC2

View File

@ -246,6 +246,8 @@ android {
productFlavors {
gplay {
apply plugin: 'com.google.gms.google-services'
dimension "store"
isDefault = true
versionName "${versionMajor}.${versionMinor}.${versionPatch}${getGplayVersionSuffix()}"
@ -506,7 +508,3 @@ dependencies {
exclude group: 'org.jetbrains.kotlin'
}
}
if (getGradle().getStartParameter().getTaskRequests().toString().contains("Gplay")) {
apply plugin: 'com.google.gms.google-services'
}