build.gradle 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'com.xuexiang.xaop' //引用xaop插件
  3. apply plugin: 'img-optimizer'
  4. android {
  5. compileSdkVersion 30
  6. defaultConfig {
  7. applicationId "com.yijia.handpos"
  8. minSdkVersion 19
  9. targetSdkVersion 30
  10. versionCode 12
  11. versionName "2.1"
  12. multiDexEnabled true
  13. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  14. ndk {
  15. // 设置支持的SO库架构
  16. abiFilters 'armeabi' ,'x86', 'armeabi-v7a', 'x86_64','arm64-v8a'
  17. }
  18. }
  19. buildTypes {
  20. release {
  21. // true - 打开混淆
  22. minifyEnabled true
  23. // true - 打开资源压缩
  24. shrinkResources true
  25. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  26. }
  27. }
  28. compileOptions {
  29. sourceCompatibility JavaVersion.VERSION_1_8
  30. targetCompatibility JavaVersion.VERSION_1_8
  31. }
  32. }
  33. dependencies {
  34. implementation fileTree(dir: "libs", include: ["*.jar"])
  35. implementation files('libs/cocoatools.jar')
  36. implementation files('libs/PaxEEmv_V1.00.11_20180820.jar')
  37. implementation files('libs/NeptuneLiteApi_V3.23.00_20210409.jar')
  38. implementation files('libs/Msc.jar')
  39. testImplementation 'junit:junit:4.13.2'
  40. androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  41. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  42. implementation 'androidx.appcompat:appcompat:1.1.0'
  43. implementation 'com.google.android.material:material:1.1.0'
  44. implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  45. implementation 'androidx.vectordrawable:vectordrawable:1.1.0'
  46. implementation 'androidx.navigation:navigation-fragment:2.2.2'
  47. implementation 'androidx.navigation:navigation-ui:2.2.2'
  48. implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.2.0'
  49. implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0'
  50. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  51. implementation 'androidx.annotation:annotation:1.1.0'
  52. implementation 'com.android.volley:volley:1.2.0'
  53. implementation 'com.github.d-max:spots-dialog:1.1@aar'
  54. implementation 'com.google.code.gson:gson:2.8.5'
  55. // ButterKnife的sdk
  56. implementation 'com.jakewharton:butterknife:10.2.3'
  57. annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.3'
  58. implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'
  59. implementation 'com.rabbitmq:amqp-client:5.12.0'
  60. implementation 'org.projectlombok:lombok:1.18.20'
  61. annotationProcessor 'org.projectlombok:lombok:1.18.20'
  62. implementation 'com.leon:lsettingviewlibrary:1.7.0'
  63. implementation 'de.hdodenhof:circleimageview:3.1.0'
  64. implementation 'com.github.xuexiangjys.XUtil:xutil-core:2.0.0'
  65. implementation 'com.github.xuexiangjys.XUtil:xutil-sub:2.0.0'
  66. implementation 'com.github.xuexiangjys.XAOP:xaop-runtime:1.1.0' //添加依赖
  67. //xupdate-lib
  68. implementation project(':xupdate-lib')
  69. //daemonlibrary
  70. implementation project(':daemonlibrary')
  71. // XPage
  72. implementation 'com.github.xuexiangjys.XPage:xpage-lib:3.1.1'
  73. annotationProcessor 'com.github.xuexiangjys.XPage:xpage-compiler:3.1.1'
  74. //如果开启了内存泄漏监测leak,就需要加上这个依赖
  75. // debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.7'
  76. //网络请求的实现一
  77. implementation 'com.zhy:okhttputils:2.6.2'
  78. //网络请求的实现二
  79. implementation 'com.github.xuexiangjys:XHttp2:2.0.1'
  80. implementation 'com.squareup.okhttp3:okhttp:5.0.0-alpha.2'
  81. implementation 'io.reactivex.rxjava2:rxjava:2.2.21'
  82. implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
  83. implementation 'com.android.support:multidex:1.0.3'
  84. //日志框架Logger
  85. implementation 'com.orhanobut:logger:2.2.0'
  86. //美团日志SDK
  87. implementation 'com.dianping.android.sdk:logan:1.2.4'
  88. }