build.gradle 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. plugins {
  2. id 'kotlin-kapt'
  3. id 'org.jetbrains.kotlin.android'
  4. }
  5. apply from: '../common.gradle'
  6. android{
  7. sourceSets {
  8. main {
  9. jniLibs.srcDirs = ['libs']
  10. }
  11. }
  12. lintOptions {
  13. checkReleaseBuilds false
  14. abortOnError false
  15. ignoreWarnings true
  16. }
  17. }
  18. dependencies {
  19. // ------------------------------基础库-------------------------------------
  20. api 'androidx.core:core-ktx:1.8.0'
  21. api 'androidx.appcompat:appcompat:1.3.0'
  22. api 'com.google.android.material:material:1.6.1'
  23. api 'androidx.constraintlayout:constraintlayout:2.0.4'
  24. // ------------------------------网络请求-------------------------------------
  25. api 'com.github.liangjingkanji:Net:3.5.1'
  26. api 'com.squareup.okhttp3:okhttp:4.10.0'
  27. api 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4'
  28. api 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4'
  29. api "com.github.liangjingkanji:BRV:1.3.82" // 提供自动分页/缺省页/自动下拉刷新功能
  30. // ------------------------------JSON解析-------------------------------------
  31. // JSON序列化库, 首选推荐使用
  32. api "org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.3"
  33. // ------------------------------数据库-------------------------------------
  34. api 'androidx.room:room-common:2.4.3'
  35. api 'androidx.room:room-runtime:2.4.3'
  36. implementation files('libs/commons-lang3-3.12.0.jar')
  37. kapt "androidx.room:room-compiler:2.4.3"
  38. // ------------------------------优化策略-------------------------------------
  39. //bugLy日志收集
  40. api 'com.tencent.bugly:crashreport:latest.release'
  41. //内存泄露检测
  42. api 'com.github.bzcoder:blockcanarycompat-android:0.0.4'
  43. // ------------------------------模块化框架-------------------------------------
  44. api 'com.alibaba:arouter-api:1.5.2'
  45. // ------------------------------其他库-------------------------------------
  46. api "com.android.support:multidex:1.0.3"
  47. //EventBus
  48. api 'org.greenrobot:eventbus:3.2.0'
  49. api 'com.github.liangjingkanji:StatusBar:2.0.2' // 透明状态栏
  50. api 'com.tencent:mmkv-static:1.2.10'
  51. api 'com.blankj:utilcodex:1.31.0'
  52. api 'com.github.smarxpan:NotchScreenTool:0.0.1'
  53. // api "io.coil-kt:coil:2.2.1" //图片加载
  54. api "com.youth.banner:banner:2.1.0"
  55. api 'com.google.android.flexbox:flexbox:3.0.0'
  56. api 'com.yanzhenjie:permission:2.0.3'
  57. api 'io.github.azhon:appupdate:4.2.9'
  58. api 'cn.aigestudio.wheelpicker:WheelPicker:1.1.3'
  59. //------------------------------业务功能库-------------------------------------
  60. api files('libs/android-serialport-2.1.2.aar')
  61. api files('libs/PaintedSkin-release.aar')
  62. api files('libs/cofar-cooking-device-sdk-0.0.1-SNAPSHOT.jar')
  63. api files('libs/commons-lang3-3.12.0.jar')
  64. api files('libs/commons-beanutils-1.9.4.jar')
  65. api 'com.github.princekin-f:EasyFloat:2.0.4'
  66. api 'de.hdodenhof:circleimageview:3.1.0'
  67. api 'com.google.zxing:core:3.3.3'
  68. //屏幕适配
  69. api "me.jessyan:autosize:1.2.1"
  70. api 'com.github.bumptech.glide:glide:4.12.0'
  71. api 'com.google.code.gson:gson:2.9.1'
  72. //换肤
  73. // 依赖的反射库
  74. api 'com.github.CoderAlee:Reflex:1.2.0'
  75. // 核心库
  76. api 'com.github.CoderAlee.PaintedSkin:standard-plugin:3.5.2.1'
  77. //如果项目中的ConstraintLayout需要换肤则引入
  78. api 'com.github.CoderAlee.PaintedSkin:constraintlayout-compat:3.5.2.1'
  79. // 需要替换字体库时引入
  80. api 'com.github.CoderAlee.PaintedSkin:typeface-plugin:3.5.2.1'
  81. compile 'com.github.a-voyager:AutoInstaller:v1.0'
  82. api 'net.lingala.zip4j:zip4j:2.11.5'
  83. }