38 行
856 B
Plaintext
38 行
856 B
Plaintext
plugins {
|
|
alias(libs.plugins.android.library)
|
|
}
|
|
|
|
apply(from = rootProject.file("gradle/publish.gradle"))
|
|
|
|
version = providers.gradleProperty("SDK_IM_VERSION")
|
|
.orElse(providers.gradleProperty("PUBLISH_VERSION"))
|
|
.getOrElse("0.1.0-SNAPSHOT")
|
|
|
|
android {
|
|
namespace = "com.xuqm.sdk.im"
|
|
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-file"))
|
|
implementation(libs.kotlinx.coroutines.android)
|
|
testImplementation(libs.junit4)
|
|
}
|