build.gradle 934 B

1234567891011121314151617181920212223242526272829303132333435
  1. plugins {
  2. alias(libs.plugins.kotlin.android)
  3. id("com.android.library")
  4. }
  5. android {
  6. namespace = "com.narutohuo.xindazhou.socketio"
  7. compileSdk = 36
  8. defaultConfig {
  9. minSdk = 26
  10. }
  11. compileOptions {
  12. sourceCompatibility = JavaVersion.VERSION_17
  13. targetCompatibility = JavaVersion.VERSION_17
  14. }
  15. kotlinOptions {
  16. jvmTarget = "17"
  17. }
  18. }
  19. dependencies {
  20. // 只依赖 base-common(不直接依赖 base-core)
  21. // base-common 会传递 base-core 的依赖(包括 Gson、Coroutines、ILog 等)
  22. implementation(project(":base-common"))
  23. // SocketIO客户端库
  24. // Maven Central最新版本:2.1.2(Java/Android客户端最高版本)
  25. // netty-socketio 2.0.13 支持 Socket.IO 2.x 客户端
  26. implementation("io.socket:socket.io-client:2.1.2")
  27. // 注意:Gson、Coroutines、ILog 已通过 base-common 传递,无需重复依赖
  28. }