build.gradle 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'kotlin-android'
  3. android {
  4. compileSdkVersion 30
  5. buildToolsVersion "30.0.3"
  6. defaultConfig {
  7. applicationId "com.shuoyue.dysaleticketwindow"
  8. minSdkVersion 21
  9. targetSdkVersion 30
  10. versionCode 4
  11. versionName "1.0"
  12. multiDexEnabled true
  13. javaCompileOptions {
  14. annotationProcessorOptions { includeCompileClasspath = true }
  15. }
  16. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  17. ndk {
  18. abiFilter "armeabi-v7a"
  19. }
  20. }
  21. buildTypes {
  22. release {
  23. minifyEnabled false
  24. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  25. }
  26. }
  27. dataBinding {
  28. enabled = true
  29. }
  30. compileOptions {
  31. sourceCompatibility JavaVersion.VERSION_1_8
  32. targetCompatibility JavaVersion.VERSION_1_8
  33. }
  34. signingConfigs {
  35. sign {
  36. storeFile file('key.jks')
  37. storePassword "123456"
  38. keyAlias "window"
  39. keyPassword "123456"
  40. }
  41. debug {
  42. storeFile file('key.jks')
  43. storePassword "123456"
  44. keyAlias "window"
  45. keyPassword "123456"
  46. }
  47. }
  48. lintOptions {
  49. checkReleaseBuilds false
  50. // Or, if you prefer, you can continue to check for errors in release builds,
  51. // but continue the build even when errors are found:
  52. abortOnError false
  53. }
  54. packagingOptions {
  55. exclude 'assets/HKZ.bmp'
  56. exclude 'assets/base.dat'
  57. exclude 'assets/HKB.bmp'
  58. pickFirst 'lib/armeabi-v7a/libc++_shared.so'
  59. pickFirst 'lib/arm64-v8a/libc++_shared.so'
  60. }
  61. }
  62. repositories {
  63. flatDir {
  64. dirs 'libs'
  65. }
  66. }
  67. dependencies {
  68. // implementation fileTree(include: ['*.aar'], dir: 'aar')
  69. // implementation (include: ['*.jar'], dir: 'aars')
  70. compile(name: 'externalprinterlibrary-release', ext: 'aar')
  71. compile(name:'logansdk-utils-3.1.00',ext:'aar')
  72. compile(name:'xcrash-lib-0.0.3',ext:'aar')
  73. implementation fileTree(include: ['*.jar'], dir: 'libs')
  74. implementation 'androidx.appcompat:appcompat:1.0.2'
  75. implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  76. implementation 'com.google.android.material:material:1.2.1'
  77. implementation project(path: ':date_time_picker')
  78. implementation project(path: ':scan_box_vbar')
  79. testImplementation 'junit:junit:4.12'
  80. androidTestImplementation 'androidx.test.ext:junit:1.1.0'
  81. androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
  82. implementation project(path: ':autosize')
  83. implementation project(path: ':appbase')
  84. implementation project(path: ':commonutils')
  85. implementation project(path: ':appnetwork')
  86. annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.3'
  87. implementation 'com.google.zxing:core:3.3.3'
  88. implementation 'com.sunmi:printerlibrary:1.0.13'
  89. // implementation 'com.decard.mobile:logansdk-utils:3.1.00'
  90. implementation project(path: ':Camera')
  91. implementation project(path: ':faceplatform-ui')//
  92. // implementation project(path: ':tscprinter')
  93. implementation project(path: ':posprintersdk')
  94. implementation 'com.tencent.bugly:crashreport:latest.release'
  95. //为了防止不必要的依赖冲突,0.0.3开始需要自行依赖google material库
  96. implementation 'com.google.android.material:material:1.1.0'
  97. //查看最新版本请前往github,仅支持androidx
  98. // implementation 'com.github.loperSeven:DateTimePicker:0.1.0'
  99. annotationProcessor 'org.projectlombok:lombok:1.18.16'
  100. implementation 'org.greenrobot:eventbus:3.1.1'//
  101. }