build.gradle 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. plugins {
  2. id 'com.android.library'
  3. id 'org.jetbrains.kotlin.android'
  4. }
  5. android {
  6. compileSdk 31
  7. defaultConfig {
  8. minSdk 21
  9. targetSdk 27
  10. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  11. consumerProguardFiles "consumer-rules.pro"
  12. }
  13. buildTypes {
  14. release {
  15. minifyEnabled false
  16. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  17. }
  18. }
  19. compileOptions {
  20. sourceCompatibility JavaVersion.VERSION_1_8
  21. targetCompatibility JavaVersion.VERSION_1_8
  22. }
  23. kotlinOptions {
  24. jvmTarget = '1.8'
  25. }
  26. sourceSets {
  27. main {
  28. jniLibs.srcDirs = ['libs']
  29. }
  30. }
  31. }
  32. dependencies {
  33. api 'androidx.core:core-ktx:1.8.0'
  34. api 'androidx.appcompat:appcompat:1.3.0'
  35. api 'com.google.android.material:material:1.6.1'
  36. api 'androidx.constraintlayout:constraintlayout:2.1.3'
  37. api "androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1"
  38. api "androidx.lifecycle:lifecycle-livedata-core-ktx:2.3.1"
  39. api 'com.alibaba:arouter-api:1.5.1'
  40. api "com.android.support:multidex:1.0.3"
  41. //retrofit
  42. api('com.squareup.retrofit2:retrofit:2.9.0')
  43. api('com.squareup.okhttp3:okhttp:4.9.0')
  44. api('com.squareup.okio:okio:2.9.0')
  45. api 'com.squareup.okhttp3:logging-interceptor:3.6.0'
  46. api('com.google.code.gson:gson:2.8.7')
  47. api "com.android.support:multidex:1.0.3"
  48. api 'com.tencent:mmkv-static:1.2.10'
  49. api 'com.yanzhenjie:permission:2.0.3'
  50. api 'androidx.fragment:fragment-ktx:1.3.2'
  51. api 'com.github.bumptech.glide:glide:4.12.0'
  52. api "com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.4"
  53. //适配刘海屏水滴屏等全面屏工具
  54. api 'com.github.smarxpan:NotchScreenTool:0.0.1'
  55. api 'cn.aigestudio.wheelpicker:WheelPicker:1.1.3'
  56. api "com.youth.banner:banner:2.1.0"
  57. //eventbus
  58. api 'org.greenrobot:eventbus:3.2.0'
  59. api 'androidx.databinding:databinding-runtime:4.2.2'
  60. api 'com.google.android.flexbox:flexbox:3.0.0'
  61. api 'com.github.princekin-f:EasyFloat:2.0.4'
  62. api 'de.hdodenhof:circleimageview:3.1.0'
  63. api 'com.tencent.bugly:crashreport:4.1.9'
  64. api 'androidx.room:room-common:2.4.3'
  65. api 'androidx.room:room-runtime:2.4.3'
  66. api 'com.github.eurigo:dexmakerhook:1.0'
  67. api 'com.blankj:utilcodex:1.31.0'
  68. api 'com.google.zxing:core:3.3.0'
  69. api files('libs/android-serialport-2.1.2.aar')
  70. api files('libs/cofar-cooking-device-sdk-0.0.1-SNAPSHOT.jar')
  71. api files('libs/commons-lang3-3.12.0.jar')
  72. api files('libs/commons-beanutils-1.9.4.jar')
  73. api "android.arch.lifecycle:extensions:1.1.1"
  74. api 'com.github.azhon:AppUpdate:4.2.2'
  75. //换肤
  76. // 依赖的反射库
  77. api 'com.github.CoderAlee:Reflex:1.2.0'
  78. // 核心库
  79. api 'com.github.CoderAlee.PaintedSkin:standard-plugin:3.5.2.1'
  80. //如果项目中的ConstraintLayout需要换肤则引入
  81. api 'com.github.CoderAlee.PaintedSkin:constraintlayout-compat:3.5.2.1'
  82. // 需要替换字体库时引入
  83. api 'com.github.CoderAlee.PaintedSkin:typeface-plugin:3.5.2.1'
  84. api files('libs/PaintedSkin-release.aar')
  85. }