apply plugin: 'com.android.application' apply plugin: 'com.xuexiang.xaop' //引用xaop插件 apply plugin: 'img-optimizer' android { compileSdkVersion 30 defaultConfig { applicationId "com.yijia.handpos" minSdkVersion 19 targetSdkVersion 30 versionCode 12 versionName "2.1" multiDexEnabled true testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" ndk { // 设置支持的SO库架构 abiFilters 'armeabi' ,'x86', 'armeabi-v7a', 'x86_64','arm64-v8a' } } buildTypes { release { // true - 打开混淆 minifyEnabled true // true - 打开资源压缩 shrinkResources true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } } dependencies { implementation fileTree(dir: "libs", include: ["*.jar"]) implementation files('libs/cocoatools.jar') implementation files('libs/PaxEEmv_V1.00.11_20180820.jar') implementation files('libs/NeptuneLiteApi_V3.23.00_20210409.jar') implementation files('libs/Msc.jar') testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.1.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' implementation 'androidx.appcompat:appcompat:1.1.0' implementation 'com.google.android.material:material:1.1.0' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' implementation 'androidx.vectordrawable:vectordrawable:1.1.0' implementation 'androidx.navigation:navigation-fragment:2.2.2' implementation 'androidx.navigation:navigation-ui:2.2.2' implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.2.0' implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0' implementation 'androidx.legacy:legacy-support-v4:1.0.0' implementation 'androidx.annotation:annotation:1.1.0' implementation 'com.android.volley:volley:1.2.0' implementation 'com.github.d-max:spots-dialog:1.1@aar' implementation 'com.google.code.gson:gson:2.8.5' // ButterKnife的sdk implementation 'com.jakewharton:butterknife:10.2.3' annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.3' implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0' implementation 'com.rabbitmq:amqp-client:5.12.0' implementation 'org.projectlombok:lombok:1.18.20' annotationProcessor 'org.projectlombok:lombok:1.18.20' implementation 'com.leon:lsettingviewlibrary:1.7.0' implementation 'de.hdodenhof:circleimageview:3.1.0' implementation 'com.github.xuexiangjys.XUtil:xutil-core:2.0.0' implementation 'com.github.xuexiangjys.XUtil:xutil-sub:2.0.0' implementation 'com.github.xuexiangjys.XAOP:xaop-runtime:1.1.0' //添加依赖 //xupdate-lib implementation project(':xupdate-lib') //daemonlibrary implementation project(':daemonlibrary') // XPage implementation 'com.github.xuexiangjys.XPage:xpage-lib:3.1.1' annotationProcessor 'com.github.xuexiangjys.XPage:xpage-compiler:3.1.1' //如果开启了内存泄漏监测leak,就需要加上这个依赖 // debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.7' //网络请求的实现一 implementation 'com.zhy:okhttputils:2.6.2' //网络请求的实现二 implementation 'com.github.xuexiangjys:XHttp2:2.0.1' implementation 'com.squareup.okhttp3:okhttp:5.0.0-alpha.2' implementation 'io.reactivex.rxjava2:rxjava:2.2.21' implementation 'io.reactivex.rxjava2:rxandroid:2.1.1' implementation 'com.android.support:multidex:1.0.3' //日志框架Logger implementation 'com.orhanobut:logger:2.2.0' //美团日志SDK implementation 'com.dianping.android.sdk:logan:1.2.4' }