refactor(build): Introduce AndroidLibraryFlavors convention plugin (#4449)

This commit is contained in:
James Rich 2026-02-04 16:01:09 -06:00 committed by GitHub
parent 854eff685e
commit 3eefa801d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 60 additions and 79 deletions

View file

@ -30,15 +30,15 @@ configure<com.android.build.api.dsl.LibraryExtension> {
minSdk = 21
}
publishing { singleVariant("googleRelease") { withSourcesJar() } }
publishing { singleVariant("release") { withSourcesJar() } }
}
// Map the Android component to a Maven publication
afterEvaluate {
publishing {
publications {
create<MavenPublication>("googleRelease") {
from(components["googleRelease"])
create<MavenPublication>("release") {
from(components["release"])
artifactId = "core-api"
}
}