星火管控
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 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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. api(files("libs\\CSDK_XHLY_240412.jar"))
  39. testImplementation(libs.junit)
  40. androidTestImplementation(libs.androidx.test.ext.junit)
  41. androidTestImplementation(libs.espresso.core)
  42. api(libs.androidx.multidex)
  43. api(libs.lifecycle.runtime.ktx)
  44. api (libs.lifecycle.livedata.ktx)
  45. api (libs.androidx.lifecycle.viewmodel.ktx)
  46. api(libs.androidx.constraintlayout)
  47. api(libs.androidx.work.runtime.ktx)
  48. //协程
  49. api(libs.org.jetbrains.kotlinx.kotlinx.coroutines.core2)
  50. api(libs.org.jetbrains.kotlinx.kotlinx.coroutines.android2)
  51. //retrofit + okHttp3
  52. api(libs.com.squareup.retrofit2.retrofit)
  53. api(libs.com.squareup.retrofit2.adapter.rxjava2)
  54. api(libs.com.squareup.retrofit2.converter.gson)
  55. api(libs.com.squareup.retrofit2.converter.scalars)
  56. api(libs.com.squareup.okhttp3.logging.interceptor)
  57. api(libs.com.jakewharton.retrofit.retrofit2.kotlin.coroutines.adapter2)
  58. //glide
  59. api(libs.bumptech.glide)
  60. //rxjava
  61. api(libs.rxjava)
  62. api(libs.rxandroid)
  63. //动态权限框架
  64. api(libs.rxpermissions)
  65. //eventbus
  66. api(libs.eventbus)
  67. //万能适配器
  68. api(libs.baseadapterhelper)
  69. //下拉刷新框架
  70. api(libs.smartrefresh.layout.kernel) //核心必须依赖
  71. api(libs.smartrefresh.header.classics) //经典刷新头
  72. api(libs.smartrefresh.header.radar) //雷达刷新头
  73. api(libs.smartrefresh.header.falsify) //虚拟刷新头
  74. api(libs.smartrefresh.header.material) //谷歌刷新头
  75. api(libs.smartrefresh.header.two.level) //二级刷新头
  76. api(libs.smartrefresh.footer.ball) //球脉冲加载
  77. api(libs.smartrefresh.footer.classics) //经典加载
  78. // 吐司框架:https://github.com/getActivity/Toaster
  79. api(libs.gittoaster)
  80. //弹窗
  81. api(libs.dialogx)
  82. //今日头条适配
  83. api(libs.jessyanandroidautosize)
  84. //圆角imageview
  85. api("com.makeramen:roundedimageview:2.3.0")
  86. //下载框架
  87. api("io.github.ydxlt:okdownloader:1.0.0")
  88. }