AGP 7.1+ does not automatically register the release SoftwareComponent
for maven-publish. Must explicitly opt in via android { publishing {
singleVariant("release") } } so that components.release is available
in afterEvaluate.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
30 行
638 B
Plaintext
30 行
638 B
Plaintext
plugins {
|
|
alias(libs.plugins.android.library)
|
|
}
|
|
|
|
apply(from = rootProject.file("gradle/publish.gradle"))
|
|
|
|
android {
|
|
namespace = "com.xuqm.sdk.update"
|
|
compileSdk = libs.versions.compileSdk.get().toInt()
|
|
|
|
defaultConfig {
|
|
minSdk = libs.versions.minSdk.get().toInt()
|
|
consumerProguardFiles("consumer-rules.pro")
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
}
|
|
|
|
publishing {
|
|
singleVariant("release")
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
api(project(":sdk-core"))
|
|
implementation(libs.kotlinx.coroutines.android)
|
|
}
|