build.gradle 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. plugins {
  2. id 'com.android.application'
  3. id 'kotlin-android'
  4. id 'kotlin-android-extensions'
  5. id 'kotlin-kapt'
  6. }
  7. android {
  8. compileSdkVersion env.compileSdkVersion
  9. buildToolsVersion env.buildToolsVersion
  10. defaultConfig {
  11. applicationId env.applicationId
  12. minSdkVersion env.minSdkVersion
  13. targetSdkVersion env.targetSdkVersion
  14. versionCode env.versionCode
  15. versionName env.versionName
  16. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  17. ndk {
  18. abiFilters "armeabi-v7a"/*, "arm64-v8a", "x86"*/
  19. }
  20. }
  21. signingConfigs {
  22. signing {
  23. keyAlias 'winds'
  24. keyPassword '039468'
  25. storeFile file('../config/winds.jks')
  26. storePassword '039468'
  27. }
  28. }
  29. buildTypes {
  30. debug {
  31. minifyEnabled false
  32. multiDexEnabled true
  33. signingConfig signingConfigs.signing
  34. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  35. }
  36. release {
  37. minifyEnabled false
  38. multiDexEnabled true
  39. signingConfig signingConfigs.signing
  40. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  41. }
  42. }
  43. compileOptions {
  44. sourceCompatibility env.jdk_version
  45. targetCompatibility env.jdk_version
  46. }
  47. kotlinOptions {
  48. jvmTarget = '1.8'
  49. }
  50. kotlin {
  51. experimental {
  52. coroutines 'enable'
  53. }
  54. }
  55. // viewBinding {
  56. // enabled = true
  57. // }
  58. buildFeatures{
  59. viewBinding = true
  60. }
  61. repositories {
  62. flatDir {
  63. dirs 'libs'
  64. }
  65. }
  66. androidExtensions {
  67. experimental = true
  68. }
  69. applicationVariants.all { variant ->
  70. // variant.getPackageApplication().outputDirectory = new File("${rootDir.absolutePath}/Apk")
  71. variant.outputs.all {
  72. def buildType = variant.buildType.name
  73. def buildTime = new Date().format("yyyyMMddHHmm", TimeZone.getDefault())
  74. outputFileName = "inspection_${buildType}_v${variant.versionCode}_${variant.versionName}_${buildTime}.apk"
  75. }
  76. }
  77. }
  78. dependencies {
  79. implementation fileTree(dir: 'libs', include: ['*.jar'])
  80. implementation(name:'RskApi-release', ext:'aar')
  81. implementation project(':HttpCoreLibrary')
  82. implementation project(':RcCore')
  83. implementation dep.kotlinStdlib
  84. implementation dep.androidxCoreKtx
  85. implementation dep.androidxAppCompat
  86. implementation dep.androidxConstraintlayout
  87. implementation dep.androidMaterial
  88. implementation dep.androidxLocalbroadcastmanager
  89. implementation dep.rxpermissions
  90. implementation dep.androidxSwipeRefreshLayout
  91. implementation dep.RecyclerViewAdapterHelper
  92. implementation dep.glide
  93. implementation dep.kotlinxCoroutinesCore
  94. implementation dep.kotlinxCoroutinesAndroid
  95. implementation dep.androidMultidex
  96. implementation dep.buglySDK
  97. implementation dep.buglyNDK
  98. implementation dep.mqttv3
  99. implementation dep.eventbus
  100. implementation dep.bgaZxing
  101. // implementation files('libs\\arcsoft_face.jar')
  102. implementation 'me.jessyan:autosize:1.2.1'
  103. implementation(name: 'facedetector-1.0.0', ext: 'aar')
  104. implementation 'io.fotoapparat:fotoapparat:2.7.0'
  105. implementation(name: 'flowlayout-1.0.0', ext: 'aar')
  106. implementation 'com.huawei.hms:scanplus:1.1.1.301'
  107. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  108. implementation 'com.github.bumptech.glide:glide:4.12.0'
  109. implementation 'io.github.scwang90:refresh-layout-kernel:2.0.5' //核心必须依赖
  110. implementation 'io.github.scwang90:refresh-header-classics:2.0.5' //经典刷新头
  111. implementation 'io.github.scwang90:refresh-footer-classics:2.0.5' //经典加载
  112. //AndroidX 版本
  113. implementation 'com.king.zxing:zxing-lite:1.1.7-androidx'
  114. implementation 'com.vip:search:1.0.0'
  115. implementation 'com.hjq:titlebar:5.0'
  116. implementation 'com.makeramen:roundedimageview:2.3.0'
  117. implementation 'com.github.codbking:PickTime:v1.0.1'
  118. implementation 'com.yayaG.iosSwitchButton:iosswitchbutton:1.0.3'
  119. implementation 'com.github.bmelnychuk:atv:1.2.+'
  120. implementation 'com.google.android:flexbox:2.0.1'
  121. implementation 'com.nex3z:flow-layout:1.2.3'
  122. implementation 'q.rorbin:badgeview:1.1.2'
  123. implementation 'com.blankj:utilcodex:1.31.0'
  124. //room
  125. // def room_version = "2.2.5"
  126. def room_version = "2.3.0"
  127. implementation "androidx.room:room-runtime:$room_version"
  128. kapt "androidx.room:room-compiler:$room_version"
  129. // room针对kotlin协程功能的扩展库
  130. implementation "androidx.room:room-ktx:$room_version"
  131. // implementation 'org.apache.poi:poi:5.1.0'
  132. // implementation 'org.apache.poi:poi-ooxml:5.1.0'
  133. implementation 'com.github.barteksc:android-pdf-viewer:3.2.0-beta.1'
  134. }