Disable non-Gplay flavor *GoogleServices* tasks

This commit is contained in:
Erik Huizinga 2021-06-18 17:23:10 +02:00
parent 22f3f612d7
commit cc5260b311
No known key found for this signature in database
GPG Key ID: 9F1BAB5C9E522DC2
1 changed files with 3 additions and 0 deletions

View File

@ -247,6 +247,9 @@ android {
productFlavors { productFlavors {
gplay { gplay {
apply plugin: 'com.google.gms.google-services' 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