build.gradle 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. plugins {
  2. id 'com.android.application'
  3. id 'kotlin-android'
  4. }
  5. android {
  6. compileSdkVersion 30
  7. buildToolsVersion "30.0.3"
  8. aaptOptions.cruncherEnabled = false
  9. aaptOptions.useNewCruncher = false
  10. defaultConfig {
  11. applicationId "com.dy.sy.handlesale"
  12. minSdkVersion 21
  13. targetSdkVersion 30
  14. versionCode 3
  15. versionName "1.3"
  16. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  17. }
  18. lintOptions {
  19. checkReleaseBuilds false
  20. }
  21. signingConfigs {
  22. release {
  23. keyAlias 'window'
  24. keyPassword '123456'
  25. storeFile file('key.jks')
  26. storePassword '123456'
  27. v2SigningEnabled true
  28. }
  29. debug {
  30. keyAlias 'window'
  31. keyPassword '123456'
  32. storeFile file('key.jks')
  33. storePassword '123456'
  34. v2SigningEnabled true
  35. }
  36. }
  37. buildTypes {
  38. release {
  39. signingConfig signingConfigs.release
  40. minifyEnabled false
  41. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  42. }
  43. }
  44. // compileOptions {
  45. // sourceCompatibility JavaVersion.VERSION_1_8
  46. // targetCompatibility JavaVersion.VERSION_1_8
  47. // }
  48. kotlinOptions {
  49. jvmTarget = '1.8'
  50. }
  51. // viewBinding {
  52. // enabled = true
  53. // }
  54. buildFeatures {
  55. viewBinding = true
  56. }
  57. // android.enableBuildCache=false
  58. }
  59. dependencies {
  60. implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  61. implementation 'androidx.core:core-ktx:1.5.0'
  62. implementation 'androidx.appcompat:appcompat:1.3.0'
  63. implementation 'com.google.android.material:material:1.3.0'
  64. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  65. implementation project(path: ':core_lib')
  66. implementation project(path: ':Camera')
  67. // implementation project(path: ':faceplatform-ui')
  68. implementation 'androidx.lifecycle:lifecycle-common-java8:2.3.1'
  69. testImplementation 'junit:junit:4.+'
  70. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  71. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  72. // RecyclerView适配器
  73. implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.0-andx-15'
  74. // 图片加载
  75. implementation 'com.github.bumptech.glide:glide:4.12.0'
  76. annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
  77. //条码二维码扫描
  78. //AndroidX 版本
  79. implementation 'com.github.jenly1314:zxing-lite:2.1.0'
  80. //商米打印程序
  81. implementation 'com.sunmi:printerlibrary:1.0.13'
  82. implementation 'com.google.code.gson:gson:2.8.6'
  83. implementation 'com.tencent.bugly:crashreport:latest.release'
  84. implementation project(':cameraui')
  85. implementation files('libs/baidu_idcard.jar')
  86. implementation files('libs/baidu_easymobile_license.jar')
  87. implementation files('libs/bd_unifylicense.jar')
  88. implementation files('libs/liantian.jar')
  89. //chuck 抓包
  90. debugImplementation 'com.readystatesoftware.chuck:library:1.1.0'
  91. releaseImplementation 'com.readystatesoftware.chuck:library-no-op:1.1.0'
  92. // api 'com.readystatesoftware.chuck:library:1.1.0'
  93. }