| 1234567891011121314151617181920212223242526272829303132333435 |
- plugins {
- alias(libs.plugins.kotlin.android)
- id("com.android.library")
- }
- android {
- namespace = "com.narutohuo.xindazhou.socketio"
- compileSdk = 36
- defaultConfig {
- minSdk = 26
- }
- compileOptions {
- sourceCompatibility = JavaVersion.VERSION_17
- targetCompatibility = JavaVersion.VERSION_17
- }
- kotlinOptions {
- jvmTarget = "17"
- }
- }
- dependencies {
- // 只依赖 base-common(不直接依赖 base-core)
- // base-common 会传递 base-core 的依赖(包括 Gson、Coroutines、ILog 等)
- implementation(project(":base-common"))
-
- // SocketIO客户端库
- // Maven Central最新版本:2.1.2(Java/Android客户端最高版本)
- // netty-socketio 2.0.13 支持 Socket.IO 2.x 客户端
- implementation("io.socket:socket.io-client:2.1.2")
-
- // 注意:Gson、Coroutines、ILog 已通过 base-common 传递,无需重复依赖
- }
|