星火管控
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build.gradle.kts 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. @Suppress("DSL_SCOPE_VIOLATION") // TODO: Remove once KTIJ-19369 is fixed
  2. plugins {
  3. alias(libs.plugins.androidLibrary)
  4. alias(libs.plugins.kotlinAndroid)
  5. }
  6. android {
  7. namespace = "com.xhkjedu.corelib"
  8. compileSdk = 33
  9. defaultConfig {
  10. minSdk = 24
  11. testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
  12. consumerProguardFiles("consumer-rules.pro")
  13. }
  14. buildTypes {
  15. release {
  16. isMinifyEnabled = false
  17. proguardFiles(
  18. getDefaultProguardFile("proguard-android-optimize.txt"),
  19. "proguard-rules.pro"
  20. )
  21. }
  22. }
  23. viewBinding{
  24. enable=true
  25. }
  26. compileOptions {
  27. sourceCompatibility = JavaVersion.VERSION_1_8
  28. targetCompatibility = JavaVersion.VERSION_1_8
  29. }
  30. kotlinOptions {
  31. jvmTarget = "1.8"
  32. }
  33. }
  34. dependencies {
  35. implementation(libs.core.ktx)
  36. implementation(libs.appcompat)
  37. implementation(libs.material)
  38. testImplementation(libs.junit)
  39. androidTestImplementation(libs.androidx.test.ext.junit)
  40. androidTestImplementation(libs.espresso.core)
  41. api(libs.androidx.multidex)
  42. api(libs.lifecycle.runtime.ktx)
  43. api (libs.lifecycle.livedata.ktx)
  44. api (libs.androidx.lifecycle.viewmodel.ktx)
  45. api(libs.androidx.constraintlayout)
  46. api(libs.androidx.work.runtime.ktx)
  47. //协程
  48. api(libs.org.jetbrains.kotlinx.kotlinx.coroutines.core2)
  49. api(libs.org.jetbrains.kotlinx.kotlinx.coroutines.android2)
  50. //retrofit + okHttp3
  51. api(libs.com.squareup.retrofit2.retrofit)
  52. api(libs.com.squareup.retrofit2.adapter.rxjava2)
  53. api(libs.com.squareup.retrofit2.converter.gson)
  54. api(libs.com.squareup.retrofit2.converter.scalars)
  55. api(libs.com.squareup.okhttp3.logging.interceptor)
  56. api(libs.com.jakewharton.retrofit.retrofit2.kotlin.coroutines.adapter2)
  57. //glide
  58. api(libs.bumptech.glide)
  59. //rxjava
  60. api(libs.rxjava)
  61. api(libs.rxandroid)
  62. //动态权限框架
  63. api(libs.rxpermissions)
  64. //eventbus
  65. api(libs.eventbus)
  66. //万能适配器
  67. api(libs.baseadapterhelper)
  68. //下拉刷新框架
  69. api(libs.smartrefresh.layout.kernel) //核心必须依赖
  70. api(libs.smartrefresh.header.classics) //经典刷新头
  71. api(libs.smartrefresh.header.radar) //雷达刷新头
  72. api(libs.smartrefresh.header.falsify) //虚拟刷新头
  73. api(libs.smartrefresh.header.material) //谷歌刷新头
  74. api(libs.smartrefresh.header.two.level) //二级刷新头
  75. api(libs.smartrefresh.footer.ball) //球脉冲加载
  76. api(libs.smartrefresh.footer.classics) //经典加载
  77. // 吐司框架:https://github.com/getActivity/Toaster
  78. api(libs.gittoaster)
  79. //弹窗
  80. api(libs.dialogx)
  81. //今日头条适配
  82. api(libs.jessyanandroidautosize)
  83. //圆角imageview
  84. api("com.makeramen:roundedimageview:2.3.0")
  85. //下载框架
  86. api("io.github.ydxlt:okdownloader:1.0.0")
  87. }