Skip to content

Instantly share code, notes, and snippets.

@dsvoronin
Created June 18, 2020 18:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dsvoronin/2f82e499ec3728cc8c9dcf2969d7141c to your computer and use it in GitHub Desktop.
Save dsvoronin/2f82e499ec3728cc8c9dcf2969d7141c to your computer and use it in GitHub Desktop.
build.gradle.kts
subprojects {
apply(from = "${rootDir}/dependencies.gradle")
plugins.matching { it is AppPlugin || it is LibraryPlugin }.whenPluginAdded {
configure<BaseExtension> {
setCompileSdkVersion(30)
buildToolsVersion = "30.0.0"
defaultConfig {
minSdkVersion(16)
targetSdkVersion(30)
}
}
}
plugins.withType<LibraryPlugin> {
configure<LibraryExtension> {
variantFilter {
if (name == "debug") {
setIgnore(true)
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment