2026-05-15 21:00:24 +08:00
|
|
|
plugins {
|
|
|
|
|
alias(libs.plugins.android.library)
|
|
|
|
|
alias(libs.plugins.kotlin.serialization)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
apply(from = rootProject.file("gradle/publish.gradle"))
|
|
|
|
|
|
2026-05-21 16:48:10 +08:00
|
|
|
version = providers.gradleProperty("SDK_LICENSE_VERSION")
|
|
|
|
|
.orElse(providers.gradleProperty("PUBLISH_VERSION"))
|
|
|
|
|
.getOrElse("0.1.0-SNAPSHOT")
|
|
|
|
|
|
2026-05-15 21:00:24 +08:00
|
|
|
android {
|
|
|
|
|
namespace = "com.xuqm.sdk.license"
|
|
|
|
|
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") {
|
|
|
|
|
withSourcesJar()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
|
api(project(":sdk-core"))
|
|
|
|
|
api(libs.kotlinx.coroutines.android)
|
|
|
|
|
api(libs.kotlinx.serialization.json)
|
|
|
|
|
}
|