39 行
919 B
Plaintext
39 行
919 B
Plaintext
plugins {
|
|
alias(libs.plugins.android.library)
|
|
}
|
|
|
|
apply(from = rootProject.file("gradle/publish.gradle"))
|
|
|
|
version = providers.gradleProperty("SDK_UPDATE_VERSION")
|
|
.orElse(providers.gradleProperty("PUBLISH_VERSION"))
|
|
.getOrElse("0.1.0-SNAPSHOT")
|
|
|
|
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") {
|
|
withSourcesJar()
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
api(project(":sdk-core"))
|
|
implementation(libs.kotlinx.coroutines.android)
|
|
implementation("com.google.code.gson:gson:2.10.1")
|
|
testImplementation(libs.junit4)
|
|
}
|