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

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