build.gradle 6.0 KB

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