mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
refactor(build): Introduce AndroidLibraryFlavors convention plugin (#4449)
This commit is contained in:
parent
854eff685e
commit
3eefa801d6
13 changed files with 60 additions and 79 deletions
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue