build.gradle 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. packagingOptions {
  32. pickFirst 'lib/armeabi-v7a/libc++_shared.so'
  33. }
  34. }
  35. dependencies {
  36. api 'androidx.core:core-ktx:1.8.0'
  37. api 'androidx.appcompat:appcompat:1.3.0'
  38. api 'com.google.android.material:material:1.4.0'
  39. api 'androidx.constraintlayout:constraintlayout:2.1.3'
  40. api "androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1"
  41. api "androidx.lifecycle:lifecycle-livedata-core-ktx:2.3.1"
  42. api 'com.alibaba:arouter-api:1.5.1'
  43. api "com.android.support:multidex:1.0.3"
  44. //retrofit
  45. api('com.squareup.retrofit2:retrofit:2.9.0')
  46. api('com.squareup.okhttp3:okhttp:4.9.0')
  47. api('com.squareup.okio:okio:2.9.0')
  48. api 'com.squareup.okhttp3:logging-interceptor:3.6.0'
  49. api('com.google.code.gson:gson:2.8.7')
  50. api "com.android.support:multidex:1.0.3"
  51. api 'com.tencent:mmkv-static:1.2.10'
  52. api 'com.yanzhenjie:permission:2.0.3'
  53. api 'androidx.fragment:fragment-ktx:1.3.2'
  54. api 'com.github.bumptech.glide:glide:4.12.0'
  55. api "com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.4"
  56. //适配刘海屏水滴屏等全面屏工具
  57. api 'com.github.smarxpan:NotchScreenTool:0.0.1'
  58. api 'cn.aigestudio.wheelpicker:WheelPicker:1.1.3'
  59. api "com.youth.banner:banner:2.1.0"
  60. //eventbus
  61. api 'org.greenrobot:eventbus:3.2.0'
  62. api 'androidx.databinding:databinding-runtime:4.2.2'
  63. api 'com.google.android.flexbox:flexbox:3.0.0'
  64. api 'com.github.princekin-f:EasyFloat:2.0.4'
  65. api 'de.hdodenhof:circleimageview:3.1.0'
  66. api 'com.tencent.bugly:crashreport:4.1.9'
  67. api 'androidx.room:room-common:2.4.3'
  68. api 'androidx.room:room-runtime:2.4.3'
  69. api 'com.github.eurigo:dexmakerhook:1.0'
  70. api 'com.blankj:utilcodex:1.31.0'
  71. api 'com.google.zxing:core:3.3.0'
  72. // api files('libs/android-serialport-2.1.2.aar')
  73. api project(path: ':foodlib:serialport')
  74. api files('libs/cofar-cooking-device-sdk-0.0.1-SNAPSHOT.jar')
  75. api files('libs/commons-lang3-3.12.0.jar')
  76. api files('libs/commons-beanutils-1.9.4.jar')
  77. api "android.arch.lifecycle:extensions:1.1.1"
  78. api 'com.github.azhon:AppUpdate:4.2.2'
  79. //换肤
  80. // 依赖的反射库
  81. api 'com.github.CoderAlee:Reflex:1.2.0'
  82. // 核心库
  83. api 'com.github.CoderAlee.PaintedSkin:standard-plugin:3.5.2.1'
  84. //如果项目中的ConstraintLayout需要换肤则引入
  85. api 'com.github.CoderAlee.PaintedSkin:constraintlayout-compat:3.5.2.1'
  86. // 需要替换字体库时引入
  87. api 'com.github.CoderAlee.PaintedSkin:typeface-plugin:3.5.2.1'
  88. api 'net.lingala.zip4j:zip4j:2.6.1'
  89. api project(path: ':foodlib:PaintedSkin')
  90. api 'com.tuya.smart:tuyasmart-iot_sdk:1.0.8-rc.1'
  91. api 'com.tencent.mars:mars-xlog:1.2.3'
  92. api 'com.github.liangjingkanji:Net:3.5.1'
  93. }