build.gradle 3.8 KB

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