plugins { id 'com.android.application' id 'kotlin-android' id 'kotlin-android-extensions' } android { compileSdkVersion 32 defaultConfig { // 通用包 com.hanghui.senic // 苍南景区 com.telpo.facecangnan // 博物馆景区 com.telpo.hndzmuseum // 龙洞堡机场 com.telpo.face //沈阳博物馆 com.telpo.faceshenyangmuseum applicationId "com.hanghui.senic" minSdkVersion 22 targetSdkVersion 22 versionCode 156 versionName "1.4.1.241230" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" ndk { abiFilters "armeabi-v7a" //armeabi-v7a 'arm64-v8a' } multiDexEnabled true } lintOptions { checkReleaseBuilds false abortOnError false } dexOptions { javaMaxHeapSize "4g" } sourceSets { main { manifest.srcFile 'src/main/AndroidManifest.xml' java.srcDirs = ['src/main/java', 'src/main/aidl'] resources.srcDirs = ['src/main/java', 'src/main/aidl'] aidl.srcDirs = ['src/main/aidl'] res.srcDirs = ['src/main/res'] assets.srcDirs = ['src/main/assets'] } } 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', '../XZXIDCard/libs', '../DXAllInOne/libs' // // dirs project(':XZXIDCard').file('libs') } } sourceSets { main { jniLibs.srcDirs = ['libs'] } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } def appName = "HHLocal" applicationVariants.all { variant -> variant.outputs.all { outputFileName = "${appName}_${defaultConfig.versionName}_${"ScenicCommon"}.apk" } } ndkVersion '21.0.6113669' //解决百度人脸sdk导入后build时报错:More than one file was found with OS independent path 'lib/arm64-v8a/libc++_shared.so' packagingOptions { pickFirst 'lib/arm64-v8a/libc++_shared.so' pickFirst 'lib/armeabi-v7a/libc++_shared.so' } buildFeatures { aidl=true } } 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\\RocoApiManager.jar') implementation 'org.jetbrains:annotations:15.0' testImplementation 'junit:junit:4.+' androidTestImplementation 'androidx.test.ext:junit:1.1.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' implementation 'com.alibaba:fastjson:1.1.55.android' // implementation files('libs\\PosUtil.jar') implementation files('libs\\posutil_sdk_20231016.jar') implementation files('libs\\telpo_api.jar') testImplementation 'junit:junit:4.+' implementation project(':SeriaApp') implementation project(':PassportApp') implementation project(':XZXIDCard') implementation project(':GenerateQRCode') implementation(name: 'communication-release', ext: 'aar') implementation(name: 'MultiReaderLib-release', ext: 'aar') //东信多合一aar文件(阉割版) // implementation(name: 'devices-release', ext: 'aar') //东信多合一aar文件(完整版) // implementation(name: 'DonseeDevice', ext: 'aar') //ER301在线身份证阅读器 implementation files('libs\\IDOCR.jar') //NFC在线身份证阅读器 implementation files('libs/IDOCR.PubSdk.Android.Std.Device.Tcp.NFC.Release-11.0.9.aar') //日志拦截器 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' implementation 'com.blankj:utilcodex:1.31.1' implementation 'cn.hutool:hutool-all:5.7.0' implementation 'org.bouncycastle:bcprov-jdk15to18:1.69' implementation 'org.java-websocket:Java-WebSocket:1.5.3' //xRecyclerview implementation 'com.jcodecraeer:xrecyclerview:1.6.0' //丽江身份证阅读器 implementation project(path: ':lib_idcard') //百度人脸相关 implementation project(':facelibrary') implementation project(':datalibrary') implementation project(':gatelibrary') implementation project(':registerlibrary') implementation project(':settinglibrary') implementation project(':identifylibrary') //日期选择器 implementation project(':DataPicker') //基类 implementation project(':lib_base') //东信手持机 串口上电 implementation project(':lib_localrepo:lib_dx_handheld') }