build.gradle 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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
  11. applicationId "com.telpo.faceSuZhouPark"
  12. minSdkVersion 21
  13. targetSdkVersion 32
  14. versionCode 21
  15. versionName "1.5.44.231117"
  16. multiDexEnabled true
  17. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  18. ndk {
  19. abiFilters 'armeabi-v7a' //只生成armv7的so
  20. }
  21. }
  22. lintOptions {
  23. checkReleaseBuilds false
  24. abortOnError false
  25. }
  26. dexOptions {
  27. javaMaxHeapSize "4g"
  28. }
  29. signingConfigs {
  30. config1 {
  31. // keyAlias 'facescenic1'
  32. // keyPassword '123456'
  33. // storeFile file("facescenic.jks")
  34. // storePassword '123456'
  35. keyAlias 'telpo'
  36. keyPassword '123456'
  37. storeFile file("sign.jks")
  38. storePassword '123456'
  39. }
  40. }
  41. buildTypes {
  42. release {
  43. debuggable true //false代表关闭
  44. minifyEnabled false
  45. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  46. signingConfig signingConfigs.config1
  47. }
  48. debug{
  49. debuggable true //true代表显示
  50. minifyEnabled false
  51. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  52. signingConfig signingConfigs.config1
  53. }
  54. }
  55. repositories {
  56. flatDir {
  57. dirs 'libs'
  58. }
  59. }
  60. sourceSets {
  61. main {
  62. jniLibs.srcDirs = ['libs']
  63. }
  64. }
  65. compileOptions {
  66. sourceCompatibility JavaVersion.VERSION_1_8
  67. targetCompatibility JavaVersion.VERSION_1_8
  68. }
  69. }
  70. dependencies {
  71. implementation fileTree(dir: "libs", include: ["*.jar", "*.aar"])
  72. implementation 'androidx.appcompat:appcompat:1.3.0-alpha02'//1.1.0
  73. implementation 'com.google.android.material:material:1.1.0'
  74. implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  75. implementation files('libs\\PosUtil.jar')
  76. implementation files('libs\\telpo_api.jar')
  77. implementation files('libs\\PosUtil.jar')
  78. testImplementation 'junit:junit:4.+'
  79. androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  80. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  81. implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
  82. implementation 'com.alibaba:fastjson:1.1.55.android'
  83. implementation project(':SeriaApp')
  84. implementation project(':qrCode')
  85. //日志拦截器
  86. implementation 'com.squareup.okhttp3:logging-interceptor:3.11.0'
  87. //only Retrofit(只用Retrofit联网)!!
  88. implementation 'com.facebook.fresco:fresco:2.3.0'
  89. implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
  90. implementation 'com.squareup.retrofit2:adapter-rxjava2:2.4.0'
  91. implementation 'com.squareup.retrofit2:converter-gson:2.4.0'
  92. //Rxjava and Retrofit(Retrofit+Rx需要添加的依赖)
  93. implementation 'com.squareup.retrofit2:adapter-rxjava:2.1.0'
  94. implementation 'io.reactivex:rxandroid:1.2.1'
  95. implementation 'io.reactivex:rxjava:1.2.1'
  96. //retrofit
  97. implementation 'com.squareup.retrofit2:retrofit:2.3.0'
  98. implementation 'com.squareup.retrofit2:adapter-rxjava:2.0.2'
  99. implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
  100. //Rxjava
  101. implementation 'io.reactivex:rxandroid:1.2.1'
  102. implementation 'io.reactivex:rxjava:1.3.0'
  103. implementation 'com.hwangjr.rxbus:rxbus:1.0.6'
  104. //EventBus
  105. implementation 'org.greenrobot:eventbus:3.1.1'
  106. implementation 'com.android.support:multidex:1.0.3'
  107. //串口通信
  108. implementation 'com.github.felHR85:UsbSerial:4.5.2'
  109. implementation 'com.alibaba:fastjson:1.1.55.android'
  110. // Glide
  111. implementation 'com.github.bumptech.glide:glide:4.12.0'
  112. annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
  113. //串口
  114. implementation 'com.github.licheedev:Android-SerialPort-API:2.0.0'
  115. //二维码串口
  116. implementation 'com.aill:AndroidSerialPort:1.0.8'
  117. //加载gif图
  118. implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.1'
  119. }