XuqmGroup-AndroidSDK/sdk-im/build.gradle.kts
XuqmGroup b5d00c5f78 build: switch apply(from) to Groovy publish.gradle for AGP compat
KTS scripts loaded via apply(from) are compiled without AGP on the
classpath, so LibraryExtension and ext are unresolvable. Groovy
applied scripts are evaluated dynamically and don't have this issue.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-29 15:23:51 +08:00

26 行
577 B
Plaintext

plugins {
alias(libs.plugins.android.library)
}
apply(from = rootProject.file("gradle/publish.gradle"))
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
}
}
dependencies {
api(project(":sdk-core"))
implementation(libs.kotlinx.coroutines.android)
}