build.gradle 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. // 使用 api 传递 base-core 的依赖给其他模块
  25. api(project(":base-core"))
  26. // Fragment KTX (提供 DialogFragment 支持)
  27. implementation("androidx.fragment:fragment-ktx:1.6.2")
  28. // Material Design (用于对话框UI)
  29. implementation("com.google.android.material:material:1.11.0")
  30. // 注意:Gson、Retrofit、OkHttp、Glide、Coroutines、Timber 已通过 base-core 传递,无需重复依赖
  31. // 日志通过 base-core 的 ILog 接口统一管理,无需单独依赖 Timber
  32. }