| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- 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-core(能力层只需要 base-core 的接口和基础能力)
- // base-core 提供接口定义和基础实现(ILog、StorageImpl)
- // base-core 会传递 Gson、Coroutines、ILog 等依赖
- implementation(project(":base-core"))
-
- // AndroidX Lifecycle(用于 ProcessLifecycleOwner)
- implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.7.0")
- implementation("androidx.lifecycle:lifecycle-process:2.7.0")
-
- // 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-core 传递,无需重复依赖
- }
|