build.gradle 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. plugins {
  2. id 'com.android.application'
  3. id 'kotlin-android'
  4. id 'kotlin-android-extensions'
  5. }
  6. android {
  7. compileSdkVersion 32
  8. defaultConfig {
  9. // 通用包 com.hanghui.senic
  10. // 苍南景区 com.telpo.facecangnan
  11. // 博物馆景区 com.telpo.hndzmuseum
  12. // 龙洞堡机场 com.telpo.face
  13. //沈阳博物馆 com.telpo.faceshenyangmuseum
  14. applicationId "com.hanghui.senic"
  15. minSdkVersion 22
  16. targetSdkVersion 22
  17. versionCode 149
  18. versionName "1.4.0.241227"
  19. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  20. ndk {
  21. abiFilters "armeabi-v7a" //armeabi-v7a 'arm64-v8a'
  22. }
  23. multiDexEnabled true
  24. }
  25. lintOptions {
  26. checkReleaseBuilds false
  27. abortOnError false
  28. }
  29. dexOptions {
  30. javaMaxHeapSize "4g"
  31. }
  32. sourceSets {
  33. main {
  34. manifest.srcFile 'src/main/AndroidManifest.xml'
  35. java.srcDirs = ['src/main/java', 'src/main/aidl']
  36. resources.srcDirs = ['src/main/java', 'src/main/aidl']
  37. aidl.srcDirs = ['src/main/aidl']
  38. res.srcDirs = ['src/main/res']
  39. assets.srcDirs = ['src/main/assets']
  40. }
  41. }
  42. signingConfigs {
  43. config1 {
  44. // keyAlias 'facescenic1'
  45. // keyPassword '123456'
  46. // storeFile file("facescenic.jks")
  47. // storePassword '123456'
  48. keyAlias 'telpo'
  49. keyPassword '123456'
  50. storeFile file("sign.jks")
  51. storePassword '123456'
  52. }
  53. }
  54. buildTypes {
  55. release {
  56. debuggable true //false代表关闭
  57. minifyEnabled false
  58. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  59. signingConfig signingConfigs.config1
  60. }
  61. debug {
  62. debuggable true //true代表显示
  63. minifyEnabled false
  64. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  65. signingConfig signingConfigs.config1
  66. }
  67. }
  68. repositories {
  69. flatDir {
  70. dirs 'libs', '../XZXIDCard/libs', '../DXAllInOne/libs'
  71. //
  72. // dirs project(':XZXIDCard').file('libs')
  73. }
  74. }
  75. sourceSets {
  76. main {
  77. jniLibs.srcDirs = ['libs']
  78. }
  79. }
  80. compileOptions {
  81. sourceCompatibility JavaVersion.VERSION_1_8
  82. targetCompatibility JavaVersion.VERSION_1_8
  83. }
  84. def appName = "HHLocal"
  85. applicationVariants.all { variant ->
  86. variant.outputs.all {
  87. outputFileName = "${appName}_${defaultConfig.versionName}_${"ScenicCommon"}.apk"
  88. }
  89. }
  90. ndkVersion '21.0.6113669'
  91. //解决百度人脸sdk导入后build时报错:More than one file was found with OS independent path 'lib/arm64-v8a/libc++_shared.so'
  92. packagingOptions {
  93. pickFirst 'lib/arm64-v8a/libc++_shared.so'
  94. pickFirst 'lib/armeabi-v7a/libc++_shared.so'
  95. }
  96. buildFeatures {
  97. aidl=true
  98. }
  99. }
  100. dependencies {
  101. implementation fileTree(dir: "libs", include: ["*.jar", "*.aar"])
  102. implementation 'androidx.appcompat:appcompat:1.3.0-alpha02'//1.1.0
  103. implementation 'com.google.android.material:material:1.1.0'
  104. implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  105. implementation files('libs\\RocoApiManager.jar')
  106. implementation 'org.jetbrains:annotations:15.0'
  107. testImplementation 'junit:junit:4.+'
  108. androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  109. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  110. implementation 'com.alibaba:fastjson:1.1.55.android'
  111. // implementation files('libs\\PosUtil.jar')
  112. implementation files('libs\\posutil_sdk_20231016.jar')
  113. implementation files('libs\\telpo_api.jar')
  114. testImplementation 'junit:junit:4.+'
  115. implementation project(':SeriaApp')
  116. implementation project(':PassportApp')
  117. implementation project(':XZXIDCard')
  118. implementation project(':GenerateQRCode')
  119. implementation(name: 'communication-release', ext: 'aar')
  120. implementation(name: 'MultiReaderLib-release', ext: 'aar')
  121. //东信多合一aar文件(阉割版)
  122. // implementation(name: 'devices-release', ext: 'aar')
  123. //东信多合一aar文件(完整版)
  124. // implementation(name: 'DonseeDevice', ext: 'aar')
  125. //ER301在线身份证阅读器
  126. implementation files('libs\\IDOCR.jar')
  127. //NFC在线身份证阅读器
  128. implementation files('libs/IDOCR.PubSdk.Android.Std.Device.Tcp.NFC.Release-11.0.9.aar')
  129. //日志拦截器
  130. implementation 'com.squareup.okhttp3:logging-interceptor:3.11.0'
  131. //only Retrofit(只用Retrofit联网)!!
  132. implementation 'com.facebook.fresco:fresco:2.3.0'
  133. implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
  134. implementation 'com.squareup.retrofit2:adapter-rxjava2:2.4.0'
  135. implementation 'com.squareup.retrofit2:converter-gson:2.4.0'
  136. //Rxjava and Retrofit(Retrofit+Rx需要添加的依赖)
  137. implementation 'com.squareup.retrofit2:adapter-rxjava:2.1.0'
  138. implementation 'io.reactivex:rxandroid:1.2.1'
  139. implementation 'io.reactivex:rxjava:1.2.1'
  140. //retrofit
  141. implementation 'com.squareup.retrofit2:retrofit:2.3.0'
  142. implementation 'com.squareup.retrofit2:adapter-rxjava:2.0.2'
  143. implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
  144. //Rxjava
  145. implementation 'io.reactivex:rxandroid:1.2.1'
  146. implementation 'io.reactivex:rxjava:1.3.0'
  147. implementation 'com.hwangjr.rxbus:rxbus:1.0.6'
  148. //EventBus
  149. implementation 'org.greenrobot:eventbus:3.1.1'
  150. implementation 'com.android.support:multidex:1.0.3'
  151. //串口通信
  152. implementation 'com.github.felHR85:UsbSerial:4.5.2'
  153. implementation 'com.alibaba:fastjson:1.1.55.android'
  154. // Glide
  155. implementation 'com.github.bumptech.glide:glide:4.12.0'
  156. annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
  157. //串口
  158. implementation 'com.github.licheedev:Android-SerialPort-API:2.0.0'
  159. //二维码串口
  160. implementation 'com.aill:AndroidSerialPort:1.0.8'
  161. //加载gif图
  162. implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.1'
  163. implementation 'com.blankj:utilcodex:1.31.1'
  164. implementation 'cn.hutool:hutool-all:5.7.0'
  165. implementation 'org.bouncycastle:bcprov-jdk15to18:1.69'
  166. implementation 'org.java-websocket:Java-WebSocket:1.5.3'
  167. //xRecyclerview
  168. implementation 'com.jcodecraeer:xrecyclerview:1.6.0'
  169. //丽江身份证阅读器
  170. implementation project(path: ':lib_idcard')
  171. //百度人脸相关
  172. implementation project(':facelibrary')
  173. implementation project(':datalibrary')
  174. implementation project(':gatelibrary')
  175. implementation project(':registerlibrary')
  176. implementation project(':settinglibrary')
  177. implementation project(':identifylibrary')
  178. //日期选择器
  179. implementation project(':DataPicker')
  180. //基类
  181. implementation project(':lib_base')
  182. //东信手持机 串口上电
  183. implementation project(':lib_localrepo:lib_dx_handheld')
  184. }