You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.3 KiB
47 lines
1.3 KiB
plugins {
|
|
id("com.android.library")
|
|
id("org.jetbrains.kotlin.android")
|
|
kotlin("plugin.serialization") version "1.9.24"
|
|
}
|
|
|
|
android {
|
|
namespace = "com.yunqiinnovation.realtime"
|
|
compileSdk = 35
|
|
|
|
defaultConfig {
|
|
minSdk = 21
|
|
targetSdk = 33
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = "11"
|
|
}
|
|
|
|
packaging {
|
|
resources {
|
|
excludes.add("META-INF/DEPENDENCIES")
|
|
excludes.add("META-INF/LICENSE")
|
|
excludes.add("META-INF/LICENSE.txt")
|
|
excludes.add("META-INF/license.txt")
|
|
excludes.add("META-INF/NOTICE")
|
|
excludes.add("META-INF/NOTICE.txt")
|
|
excludes.add("META-INF/notice.txt")
|
|
excludes.add("META-INF/*.kotlin_module")
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.10")
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3")
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3")
|
|
|
|
// OkHttp for WebSocket
|
|
implementation(platform("com.squareup.okhttp3:okhttp-bom:4.12.0"))
|
|
implementation("com.squareup.okhttp3:okhttp")
|
|
}
|