build.gradle 4.2 KB

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