| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- 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
- implementation(project(":base-core"))
-
- // AndroidX Core
- implementation(libs.androidx.core.ktx)
-
- // Fragment KTX (提供 DialogFragment 支持)
- implementation("androidx.fragment:fragment-ktx:1.6.2")
-
- // Material Design (用于对话框UI)
- implementation("com.google.android.material:material:1.11.0")
-
- // Gson for JSON parsing
- implementation("com.google.code.gson:gson:2.10.1")
-
- // Retrofit for HTTP requests
- implementation("com.squareup.retrofit2:retrofit:2.9.0")
- implementation("com.squareup.retrofit2:converter-gson:2.9.0")
-
- // OkHttp for HTTP client
- implementation("com.squareup.okhttp3:okhttp:4.12.0")
- implementation("com.squareup.okhttp3:logging-interceptor:4.12.0")
-
- // 日志通过 base-core 的 ILog 接口统一管理,无需单独依赖 Timber
- }
|