build.gradle 6.1 KB

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