Disable tasks for processing google services for variants which do not use them.
This commit is contained in:
parent
915ca3d045
commit
92c74b5b10
1 changed files with 6 additions and 0 deletions
|
@ -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 {
|
dependencies {
|
||||||
// AndroidX, The Basics
|
// AndroidX, The Basics
|
||||||
implementation "androidx.appcompat:appcompat:1.4.2"
|
implementation "androidx.appcompat:appcompat:1.4.2"
|
||||||
|
|
Loading…
Reference in a new issue