build.gradle 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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. packagingOptions {
  18. pickFirst 'lib/armeabi-v7a/libc++_shared.so'
  19. }
  20. }
  21. dependencies {
  22. // ------------------------------基础库-------------------------------------
  23. api 'androidx.core:core-ktx:1.8.0'
  24. api 'androidx.appcompat:appcompat:1.3.0'
  25. api 'com.google.android.material:material:1.6.1'
  26. api 'androidx.constraintlayout:constraintlayout:2.0.4'
  27. // ------------------------------网络请求-------------------------------------
  28. api 'com.github.liangjingkanji:Net:3.5.1'
  29. api 'com.squareup.okhttp3:okhttp:4.10.0'
  30. api 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4'
  31. api 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4'
  32. api "com.github.liangjingkanji:BRV:1.3.82" // 提供自动分页/缺省页/自动下拉刷新功能
  33. // ------------------------------JSON解析-------------------------------------
  34. // JSON序列化库, 首选推荐使用
  35. api "org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.3"
  36. // ------------------------------数据库-------------------------------------
  37. api 'androidx.room:room-common:2.4.3'
  38. api 'androidx.room:room-runtime:2.4.3'
  39. implementation files('libs/commons-lang3-3.12.0.jar')
  40. kapt "androidx.room:room-compiler:2.4.3"
  41. // ------------------------------优化策略-------------------------------------
  42. //bugLy日志收集
  43. api 'com.tencent.bugly:crashreport:latest.release'
  44. //内存泄露检测
  45. api 'com.github.bzcoder:blockcanarycompat-android:0.0.4'
  46. // ------------------------------模块化框架-------------------------------------
  47. api 'com.alibaba:arouter-api:1.5.2'
  48. // ------------------------------其他库-------------------------------------
  49. api "com.android.support:multidex:1.0.3"
  50. //EventBus
  51. api 'org.greenrobot:eventbus:3.2.0'
  52. api 'com.github.liangjingkanji:StatusBar:2.0.2' // 透明状态栏
  53. api 'com.tencent:mmkv-static:1.2.10'
  54. api 'com.blankj:utilcodex:1.31.0'
  55. api 'com.github.smarxpan:NotchScreenTool:0.0.1'
  56. // api "io.coil-kt:coil:2.2.1" //图片加载
  57. api "com.youth.banner:banner:2.1.0"
  58. api 'com.google.android.flexbox:flexbox:3.0.0'
  59. api 'com.yanzhenjie:permission:2.0.3'
  60. api 'io.github.azhon:appupdate:4.2.9'
  61. api 'cn.aigestudio.wheelpicker:WheelPicker:1.1.3'
  62. //------------------------------业务功能库-------------------------------------
  63. api files('libs/android-serialport-2.1.2.aar')
  64. api files('libs/PaintedSkin-release.aar')
  65. api files('libs/commons-lang3-3.12.0.jar')
  66. api files('libs/commons-beanutils-1.9.4.jar')
  67. api files('libs/cofar-cooking-device-sdk-0.0.1-SNAPSHOT.jar')
  68. api 'com.github.princekin-f:EasyFloat:2.0.4'
  69. api 'de.hdodenhof:circleimageview:3.1.0'
  70. api 'com.google.zxing:core:3.3.3'
  71. //屏幕适配
  72. api "me.jessyan:autosize:1.2.1"
  73. api 'com.github.bumptech.glide:glide:4.12.0'
  74. api 'com.google.code.gson:gson:2.9.1'
  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. compile 'com.github.a-voyager:AutoInstaller:v1.0'
  85. api 'net.lingala.zip4j:zip4j:2.11.5'
  86. api 'com.tuya.smart:tuyasmart-iot_sdk:1.0.8-rc.1'
  87. api 'com.tencent.mars:mars-xlog:1.2.3'
  88. // api 'cn.yipianfengye.android:zxing-library:2.2'
  89. }