| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- plugins {
- alias(libs.plugins.kotlin.android)
- id("com.android.library")
- }
- android {
- namespace = "com.narutohuo.xindazhou.common"
- compileSdk = 36
- defaultConfig {
- minSdk = 26
- }
- compileOptions {
- sourceCompatibility = JavaVersion.VERSION_17
- targetCompatibility = JavaVersion.VERSION_17
- }
- kotlinOptions {
- jvmTarget = "17"
- }
-
- buildFeatures {
- viewBinding = true
- }
- }
- dependencies {
- // 依赖base-core(基础第三方库都在这里)
- // 使用 api 传递 base-core 的依赖给其他模块
- api(project(":base-core"))
-
- // Activity KTX (提供 ComponentActivity 和 ActivityResultLauncher 支持)
- implementation("androidx.activity:activity-ktx:1.8.2")
-
- // Fragment KTX (提供 DialogFragment 支持)
- implementation("androidx.fragment:fragment-ktx:1.6.2")
-
- // Material Design (用于对话框UI)
- implementation("com.google.android.material:material:1.11.0")
-
- // RecyclerView (用于级联选择器)
- implementation("androidx.recyclerview:recyclerview:1.3.2")
-
- // ViewPager2 (用于引导页)
- implementation("androidx.viewpager2:viewpager2:1.0.0")
-
- // AndroidX Lifecycle(用于 ProcessLifecycleOwner)
- implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.7.0")
- implementation("androidx.lifecycle:lifecycle-process:2.7.0")
-
- // SocketIO 客户端库
- // 使用 2.1.2 版本,支持 Socket.IO 2.x/3.x(服务器端使用 socketio4j 3.0.1,支持 Engine.IO v1-v3)
- implementation("io.socket:socket.io-client:2.1.2")
-
- // 注意:Gson、Retrofit、OkHttp、Glide、Coroutines、Timber 已通过 base-core 传递,无需重复依赖
- // 日志通过 base-core 的 ILog 接口统一管理,无需单独依赖 Timber
- }
|