build.gradle 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. plugins {
  2. id 'com.android.application'
  3. id 'kotlin-android'
  4. }
  5. android {
  6. compileSdkVersion env.compileSdkVersion
  7. buildToolsVersion env.buildToolsVersion
  8. defaultConfig {
  9. applicationId env.applicationId
  10. minSdkVersion env.minSdkVersion
  11. targetSdkVersion env.targetSdkVersion
  12. versionCode env.versionCode
  13. versionName env.versionName
  14. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  15. ndk {
  16. abiFilters "armeabi-v7a"/*, "arm64-v8a", "x86"*/
  17. }
  18. }
  19. // sourceSets {
  20. // main {
  21. // jniLibs.srcDirs = ['libs']
  22. // }
  23. // }
  24. signingConfigs {
  25. signing {
  26. keyAlias 'winds'
  27. keyPassword '039468'
  28. storeFile file('../config/winds.jks')
  29. storePassword '039468'
  30. }
  31. }
  32. // buildTypes {
  33. // debug {
  34. // minifyEnabled false
  35. // multiDexEnabled true
  36. // signingConfig signingConfigs.signing
  37. // proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  38. // }
  39. // release {
  40. // minifyEnabled false
  41. // multiDexEnabled true
  42. // signingConfig signingConfigs.signing
  43. // proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  44. // }
  45. // }
  46. compileOptions {
  47. sourceCompatibility env.jdk_version
  48. targetCompatibility env.jdk_version
  49. }
  50. kotlinOptions {
  51. jvmTarget = '1.8'
  52. }
  53. kotlin {
  54. experimental {
  55. coroutines 'enable'
  56. }
  57. }
  58. viewBinding {
  59. enabled = true
  60. }
  61. repositories {
  62. flatDir {
  63. dirs 'libs'
  64. }
  65. }
  66. applicationVariants.all { variant ->
  67. // variant.getPackageApplication().outputDirectory = new File("${rootDir.absolutePath}/Apk")
  68. variant.outputs.all {
  69. def buildType = variant.buildType.name
  70. // def buildTime = new Date().format("yyyyMMddHHmm", TimeZone.getDefault())
  71. outputFileName = "Chemical_Xibei_" + android.defaultConfig.versionName + ".apk"
  72. }
  73. }
  74. }
  75. dependencies {
  76. implementation fileTree(dir: 'libs', include: ['*.jar'])
  77. implementation dep.kotlinStdlib
  78. implementation dep.androidxCoreKtx
  79. implementation dep.androidxAppCompat
  80. implementation dep.androidxConstraintlayout
  81. implementation dep.androidMaterial
  82. implementation dep.androidxLocalbroadcastmanager
  83. implementation dep.rxpermissions
  84. implementation dep.androidxSwipeRefreshLayout
  85. implementation dep.RecyclerViewAdapterHelper
  86. implementation dep.glide
  87. implementation dep.kotlinxCoroutinesCore
  88. implementation dep.kotlinxCoroutinesAndroid
  89. implementation dep.androidMultidex
  90. implementation dep.mqttv3
  91. implementation dep.eventbus
  92. implementation dep.bgaZxing
  93. implementation dep.runtimektx
  94. implementation dep.livedataktx
  95. implementation files('libs\\sdkapi.jar')
  96. implementation project(':HttpCoreLibrary')
  97. implementation project(':RcCore')
  98. implementation project(':serialport')
  99. implementation 'com.joanzapata.pdfview:android-pdfview:1.0.4@aar'
  100. implementation 'com.github.mik3y:usb-serial-for-android:3.4.3'
  101. implementation 'cn.jzvd:jiaozivideoplayer:7.7.0'
  102. // implementation 'com.squareup.leakcanary:leakcanary-android:1.5.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.vise.xiaoyaoyou:baseble:2.0.6'
  107. // implementation project(path: ':basiclibrary')
  108. // implementation project(path: ':bluetoothlibrary')
  109. // implementation files('libs\\whotherlib1.2.jar')
  110. implementation files('libs\\commons-codec-1.4.jar')
  111. implementation files('libs\\whdrawlabel1.1.jar')
  112. implementation(name: 'autoreplyprint', ext: 'aar')
  113. implementation 'com.github.Tobeyr1:DialogLoading:1.0.4'
  114. //AndroidX 版本
  115. implementation 'com.king.zxing:zxing-lite:1.1.7-androidx'
  116. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  117. implementation 'com.github.codbking:PickTime:v1.0.1'
  118. implementation 'com.github.getActivity:XXPermissions:20.0'
  119. implementation "com.kongzue.dialogx:DialogX:0.0.49"
  120. implementation 'com.blankj:utilcodex:1.31.1'
  121. }