build.gradle 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. plugins {
  2. alias(libs.plugins.kotlin.android)
  3. id("com.android.library")
  4. }
  5. android {
  6. namespace = "com.narutohuo.xindazhou.common"
  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. buildFeatures {
  19. viewBinding = true
  20. }
  21. }
  22. dependencies {
  23. // 依赖base-core
  24. implementation(project(":base-core"))
  25. // AndroidX Core
  26. implementation(libs.androidx.core.ktx)
  27. // Fragment KTX (提供 DialogFragment 支持)
  28. implementation("androidx.fragment:fragment-ktx:1.6.2")
  29. // Material Design (用于对话框UI)
  30. implementation("com.google.android.material:material:1.11.0")
  31. // Gson for JSON parsing
  32. implementation("com.google.code.gson:gson:2.10.1")
  33. // Retrofit for HTTP requests
  34. implementation("com.squareup.retrofit2:retrofit:2.9.0")
  35. implementation("com.squareup.retrofit2:converter-gson:2.9.0")
  36. // OkHttp for HTTP client
  37. implementation("com.squareup.okhttp3:okhttp:4.12.0")
  38. implementation("com.squareup.okhttp3:logging-interceptor:4.12.0")
  39. // 日志通过 base-core 的 ILog 接口统一管理,无需单独依赖 Timber
  40. }