build.gradle 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. plugins {
  2. id 'com.android.application'
  3. }
  4. android {
  5. compileSdkVersion 32
  6. defaultConfig {
  7. //com.hanghui.facescenic com.telpo.faceSuZhouPark(苏州园林) com.telpo.facenormal(通用单次点击)
  8. //无锡机场 com.telpo.faceWuXiAirport//横店包名 com.telpo.faceHengDian
  9. //滕王阁 com.telpo.faceTengWangGe // 瑞金博物馆 com.telpo.faceRJMuseum
  10. //百年智慧文博 com.telpo.facebainianwenbo //八一博物馆 com.telpo.facebymuseum
  11. //横店-越龙山景区 com.telpo.faceyuelongshan //湖北图书馆 com.telpo.facehubeilibrary
  12. applicationId "com.telpo.facenormal"
  13. minSdkVersion 21
  14. targetSdkVersion 22
  15. versionCode 44
  16. versionName "1.6.27.240701"
  17. multiDexEnabled true
  18. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  19. ndk {
  20. abiFilters 'armeabi-v7a' //只生成armv7的so
  21. }
  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'
  69. }
  70. }
  71. sourceSets {
  72. main {
  73. jniLibs.srcDirs = ['libs']
  74. }
  75. }
  76. compileOptions {
  77. sourceCompatibility JavaVersion.VERSION_1_8
  78. targetCompatibility JavaVersion.VERSION_1_8
  79. }
  80. }
  81. dependencies {
  82. implementation fileTree(dir: "libs", include: ["*.jar", "*.aar"])
  83. implementation 'androidx.appcompat:appcompat:1.3.0-alpha02'//1.1.0
  84. implementation 'com.google.android.material:material:1.1.0'
  85. implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  86. implementation files('libs\\PosUtil.jar')
  87. // implementation files('libs\\telpo_sdk_20231110.jar')
  88. implementation files('libs\\RocoApiManager.jar')
  89. implementation 'com.google.android:support-v4:r7'
  90. implementation files('libs\\telpo_api.jar')
  91. testImplementation 'junit:junit:4.+'
  92. androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  93. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  94. implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
  95. implementation 'com.alibaba:fastjson:1.1.55.android'
  96. implementation project(':SeriaApp')
  97. implementation project(':qrCode')
  98. implementation project(':MultiReaderLib')
  99. implementation project(':idCard')
  100. //日志拦截器
  101. implementation 'com.squareup.okhttp3:logging-interceptor:3.11.0'
  102. //only Retrofit(只用Retrofit联网)!!
  103. implementation 'com.facebook.fresco:fresco:2.3.0'
  104. implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
  105. implementation 'com.squareup.retrofit2:adapter-rxjava2:2.4.0'
  106. implementation 'com.squareup.retrofit2:converter-gson:2.4.0'
  107. //Rxjava and Retrofit(Retrofit+Rx需要添加的依赖)
  108. implementation 'com.squareup.retrofit2:adapter-rxjava:2.1.0'
  109. implementation 'io.reactivex:rxandroid:1.2.1'
  110. implementation 'io.reactivex:rxjava:1.2.1'
  111. //retrofit
  112. implementation 'com.squareup.retrofit2:retrofit:2.3.0'
  113. implementation 'com.squareup.retrofit2:adapter-rxjava:2.0.2'
  114. implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
  115. //Rxjava
  116. implementation 'io.reactivex:rxandroid:1.2.1'
  117. implementation 'io.reactivex:rxjava:1.3.0'
  118. implementation 'com.hwangjr.rxbus:rxbus:1.0.6'
  119. //EventBus
  120. implementation 'org.greenrobot:eventbus:3.1.1'
  121. implementation 'com.android.support:multidex:1.0.3'
  122. //串口通信
  123. implementation 'com.github.felHR85:UsbSerial:4.5.2'
  124. implementation 'com.alibaba:fastjson:1.1.55.android'
  125. // Glide
  126. implementation 'com.github.bumptech.glide:glide:4.12.0'
  127. annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
  128. //串口
  129. implementation 'com.github.licheedev:Android-SerialPort-API:2.0.0'
  130. //二维码串口
  131. implementation 'com.aill:AndroidSerialPort:1.0.8'
  132. //加载gif图
  133. implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.1'
  134. implementation 'com.blankj:utilcodex:1.31.1'
  135. }