Disable tasks for processing google services for variants which do not use them.

This commit is contained in:
Marko Sopčić 2022-11-08 19:14:25 +01:00
parent 915ca3d045
commit 92c74b5b10

View file

@ -59,6 +59,12 @@ android {
}
}
android.applicationVariants.all { variant ->
def shouldProcessGoogleServices = variant.flavorName == "play"
def googleTask = tasks.findByName("process${variant.name.capitalize()}GoogleServices")
googleTask.enabled = shouldProcessGoogleServices
}
dependencies {
// AndroidX, The Basics
implementation "androidx.appcompat:appcompat:1.4.2"