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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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.xhly.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_5.0.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. //rxjava
  59. api(libs.rxjava)
  60. api(libs.rxandroid)
  61. //动态权限框架
  62. api(libs.rxpermissions)
  63. //eventbus
  64. api(libs.eventbus)
  65. //万能适配器
  66. api(libs.baseadapterhelper)
  67. //下拉刷新框架
  68. api(libs.smartrefresh.layout.kernel) //核心必须依赖
  69. api(libs.smartrefresh.header.classics) //经典刷新头
  70. api(libs.smartrefresh.header.radar) //雷达刷新头
  71. api(libs.smartrefresh.header.falsify) //虚拟刷新头
  72. api(libs.smartrefresh.header.material) //谷歌刷新头
  73. api(libs.smartrefresh.header.two.level) //二级刷新头
  74. api(libs.smartrefresh.footer.ball) //球脉冲加载
  75. api(libs.smartrefresh.footer.classics) //经典加载
  76. // 吐司框架:https://github.com/getActivity/Toaster
  77. api(libs.gittoaster)
  78. //弹窗
  79. api(libs.dialogx)
  80. //今日头条适配
  81. api(libs.jessyanandroidautosize)
  82. //圆角imageview
  83. api("com.makeramen:roundedimageview:2.3.0")
  84. //下载框架
  85. api("io.github.ydxlt:okdownloader:1.0.0")
  86. }