build.gradle 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. plugins {
  2. id 'com.android.application'
  3. }
  4. android {
  5. compileSdkVersion 30
  6. buildToolsVersion "30.0.3"
  7. defaultConfig {
  8. applicationId "com.capinfo.orderingsystem"
  9. minSdkVersion 24
  10. targetSdkVersion 29
  11. versionCode 17
  12. versionName "1.17"
  13. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  14. ndk {
  15. moduleName "facesdk"
  16. ldLibs "log"
  17. abiFilters "armeabi-v7a" // "armeabi", "x86", "arm64-v8a"
  18. }
  19. }
  20. signingConfigs {
  21. release {
  22. keyAlias 'orderSystem'
  23. keyPassword 'capinfo@123'
  24. storeFile file('hollysmart.keystore')
  25. storePassword 'cai880314'
  26. }
  27. debug {
  28. keyAlias 'orderSystem'
  29. keyPassword 'capinfo@123'
  30. storeFile file('hollysmart.keystore')
  31. storePassword 'cai880314'
  32. }
  33. }
  34. buildTypes {
  35. release {
  36. minifyEnabled false
  37. signingConfig signingConfigs.release
  38. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  39. }
  40. debug {
  41. minifyEnabled false
  42. signingConfig signingConfigs.debug
  43. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  44. }
  45. }
  46. android.applicationVariants.all { variant ->
  47. variant.outputs.all { output ->
  48. outputFileName = "OrderSystem-QCG" + "-v" + defaultConfig.versionName + "-" + defaultConfig.versionCode + ".apk"
  49. }
  50. }
  51. compileOptions {
  52. sourceCompatibility JavaVersion.VERSION_1_8
  53. targetCompatibility JavaVersion.VERSION_1_8
  54. }
  55. sourceSets {
  56. main {
  57. jniLibs.srcDirs = ['libs']
  58. }
  59. }
  60. }
  61. dependencies {
  62. implementation fileTree(include: ['*.jar'], dir: 'libs')
  63. implementation 'androidx.appcompat:appcompat:1.2.0'
  64. implementation 'com.google.android.material:material:1.2.1'
  65. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  66. testImplementation 'junit:junit:4.+'
  67. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  68. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  69. implementation 'com.google.code.gson:gson:2.8.6'
  70. //cai 新增okGo
  71. api 'com.lzy.net:okgo:3.0.4'
  72. implementation 'com.zhy:okhttputils:2.6.2'
  73. //glide图片处理
  74. implementation 'com.github.bumptech.glide:glide:4.8.0'
  75. annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'
  76. //工具类
  77. api 'com.blankj:utilcodex:1.31.1'
  78. implementation 'com.elvishew:xlog:1.11.0'
  79. //eventBus
  80. implementation 'org.greenrobot:eventbus:3.1.1'
  81. //分包
  82. implementation 'com.android.support:multidex:1.0.3'
  83. //百度人脸识别核心库
  84. implementation project(':facelibrary')
  85. //百度人脸识别人脸管理库
  86. implementation project(':datalibrary')
  87. //串口
  88. implementation 'com.github.licheedev:Android-SerialPort-API:2.0.0'
  89. }
  90. configurations {
  91. cleanedAnnotations
  92. compile.exclude group: 'org.jetbrains', module: 'annotations'
  93. }