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

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