build.gradle 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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. api files('libs\\jna-5.15.0.jar')
  41. kapt "androidx.room:room-compiler:2.4.3"
  42. // ------------------------------优化策略-------------------------------------
  43. //bugLy日志收集
  44. api 'com.tencent.bugly:crashreport:latest.release'
  45. //内存泄露检测
  46. api 'com.github.bzcoder:blockcanarycompat-android:0.0.4'
  47. // ------------------------------模块化框架-------------------------------------
  48. api 'com.alibaba:arouter-api:1.5.2'
  49. // ------------------------------其他库-------------------------------------
  50. api "com.android.support:multidex:1.0.3"
  51. //EventBus
  52. api 'org.greenrobot:eventbus:3.2.0'
  53. api 'com.github.liangjingkanji:StatusBar:2.0.2' // 透明状态栏
  54. api 'com.tencent:mmkv-static:1.2.10'
  55. api 'com.blankj:utilcodex:1.31.0'
  56. api 'com.github.smarxpan:NotchScreenTool:0.0.1'
  57. // api "io.coil-kt:coil:2.2.1" //图片加载
  58. api "com.youth.banner:banner:2.1.0"
  59. api 'com.google.android.flexbox:flexbox:3.0.0'
  60. api 'com.yanzhenjie:permission:2.0.3'
  61. api 'io.github.azhon:appupdate:4.2.9'
  62. api 'cn.aigestudio.wheelpicker:WheelPicker:1.1.3'
  63. //------------------------------业务功能库-------------------------------------
  64. api files('libs/android-serialport-2.1.2.aar')
  65. api files('libs/PaintedSkin-release.aar')
  66. api files('libs/commons-lang3-3.12.0.jar')
  67. api files('libs/commons-beanutils-1.9.4.jar')
  68. api files('libs/cofar-cooking-device-sdk-0.0.1-SNAPSHOT.jar')
  69. api 'com.github.princekin-f:EasyFloat:2.0.4'
  70. api 'de.hdodenhof:circleimageview:3.1.0'
  71. api 'com.google.zxing:core:3.3.3'
  72. //屏幕适配
  73. api "me.jessyan:autosize:1.2.1"
  74. api 'com.github.bumptech.glide:glide:4.12.0'
  75. api 'com.google.code.gson:gson:2.9.1'
  76. //换肤
  77. // 依赖的反射库
  78. api 'com.github.CoderAlee:Reflex:1.2.0'
  79. // 核心库
  80. api 'com.github.CoderAlee.PaintedSkin:standard-plugin:3.5.2.1'
  81. //如果项目中的ConstraintLayout需要换肤则引入
  82. api 'com.github.CoderAlee.PaintedSkin:constraintlayout-compat:3.5.2.1'
  83. // 需要替换字体库时引入
  84. api 'com.github.CoderAlee.PaintedSkin:typeface-plugin:3.5.2.1'
  85. compile 'com.github.a-voyager:AutoInstaller:v1.0'
  86. api 'net.lingala.zip4j:zip4j:2.6.1'
  87. api 'com.tuya.smart:tuyasmart-iot_sdk:1.0.8-rc.1'
  88. api 'com.tencent.mars:mars-xlog:1.2.3'
  89. // api 'cn.yipianfengye.android:zxing-library:2.2'
  90. // api 'org.apache.commons:commons-compress:1.23.0'
  91. // api 'com.github.junrar:junrar:7.5.4'//解压rar
  92. // api 'org.tukaani:xz:1.9'//解压.7z文件需要
  93. }