plugins { id 'com.android.application' } android { compileSdkVersion 32 defaultConfig { //com.hanghui.facescenic com.telpo.faceSuZhouPark(苏州园林) com.telpo.facenormal(通用单次点击) //无锡机场 com.telpo.faceWuXiAirport//横店包名 com.telpo.faceHengDian applicationId "com.telpo.faceHengDian" minSdkVersion 21 targetSdkVersion 32 versionCode 16 versionName "1.5.28.231031" multiDexEnabled true testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" ndk { abiFilters 'armeabi-v7a' //只生成armv7的so } } lintOptions { checkReleaseBuilds false abortOnError false } dexOptions { javaMaxHeapSize "4g" } signingConfigs { config1 { // keyAlias 'facescenic1' // keyPassword '123456' // storeFile file("facescenic.jks") // storePassword '123456' keyAlias 'telpo' keyPassword '123456' storeFile file("sign.jks") storePassword '123456' } } buildTypes { release { debuggable true //false代表关闭 minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' signingConfig signingConfigs.config1 } debug{ debuggable true //true代表显示 minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' signingConfig signingConfigs.config1 } } repositories { flatDir { dirs 'libs' } } sourceSets { main { jniLibs.srcDirs = ['libs'] } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } } dependencies { implementation fileTree(dir: "libs", include: ["*.jar", "*.aar"]) implementation 'androidx.appcompat:appcompat:1.3.0-alpha02'//1.1.0 implementation 'com.google.android.material:material:1.1.0' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' implementation files('libs\\PosUtil.jar') implementation files('libs\\telpo_api.jar') testImplementation 'junit:junit:4.+' androidTestImplementation 'androidx.test.ext:junit:1.1.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' implementation 'com.squareup.retrofit2:converter-gson:2.3.0' implementation 'com.alibaba:fastjson:1.1.55.android' implementation project(':SeriaApp') //日志拦截器 implementation 'com.squareup.okhttp3:logging-interceptor:3.11.0' //only Retrofit(只用Retrofit联网)!! implementation 'com.facebook.fresco:fresco:2.3.0' implementation 'io.reactivex.rxjava2:rxandroid:2.1.1' implementation 'com.squareup.retrofit2:adapter-rxjava2:2.4.0' implementation 'com.squareup.retrofit2:converter-gson:2.4.0' //Rxjava and Retrofit(Retrofit+Rx需要添加的依赖) implementation 'com.squareup.retrofit2:adapter-rxjava:2.1.0' implementation 'io.reactivex:rxandroid:1.2.1' implementation 'io.reactivex:rxjava:1.2.1' //retrofit implementation 'com.squareup.retrofit2:retrofit:2.3.0' implementation 'com.squareup.retrofit2:adapter-rxjava:2.0.2' implementation 'com.squareup.retrofit2:converter-gson:2.3.0' //Rxjava implementation 'io.reactivex:rxandroid:1.2.1' implementation 'io.reactivex:rxjava:1.3.0' implementation 'com.hwangjr.rxbus:rxbus:1.0.6' //EventBus implementation 'org.greenrobot:eventbus:3.1.1' implementation 'com.android.support:multidex:1.0.3' //串口通信 implementation 'com.github.felHR85:UsbSerial:4.5.2' implementation 'com.alibaba:fastjson:1.1.55.android' // Glide implementation 'com.github.bumptech.glide:glide:4.12.0' annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0' //串口 implementation 'com.github.licheedev:Android-SerialPort-API:2.0.0' //二维码串口 implementation 'com.aill:AndroidSerialPort:1.0.8' //加载gif图 implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.1' }