plugins { id 'com.android.application' id 'kotlin-android' id 'kotlin-android-extensions' id 'kotlin-kapt' } android { compileSdkVersion env.compileSdkVersion buildToolsVersion env.buildToolsVersion defaultConfig { applicationId env.applicationId minSdkVersion env.minSdkVersion targetSdkVersion env.targetSdkVersion versionCode env.versionCode versionName env.versionName testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" ndk { abiFilters "armeabi-v7a"/*, "arm64-v8a", "x86"*/ } } signingConfigs { signing { keyAlias 'winds' keyPassword '039468' storeFile file('../config/winds.jks') storePassword '039468' } } buildTypes { debug { minifyEnabled false multiDexEnabled true signingConfig signingConfigs.signing proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } release { minifyEnabled false multiDexEnabled true signingConfig signingConfigs.signing proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility env.jdk_version targetCompatibility env.jdk_version } kotlinOptions { jvmTarget = '1.8' } kotlin { experimental { coroutines 'enable' } } // viewBinding { // enabled = true // } buildFeatures{ viewBinding = true } repositories { flatDir { dirs 'libs' } } androidExtensions { experimental = true } applicationVariants.all { variant -> // variant.getPackageApplication().outputDirectory = new File("${rootDir.absolutePath}/Apk") variant.outputs.all { def buildType = variant.buildType.name def buildTime = new Date().format("yyyyMMddHHmm", TimeZone.getDefault()) outputFileName = "inspection_${buildType}_v${variant.versionCode}_${variant.versionName}_${buildTime}.apk" } } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation(name:'RskApi-release', ext:'aar') implementation project(':HttpCoreLibrary') implementation project(':RcCore') implementation dep.kotlinStdlib implementation dep.androidxCoreKtx implementation dep.androidxAppCompat implementation dep.androidxConstraintlayout implementation dep.androidMaterial implementation dep.androidxLocalbroadcastmanager implementation dep.rxpermissions implementation dep.androidxSwipeRefreshLayout implementation dep.RecyclerViewAdapterHelper implementation dep.glide implementation dep.kotlinxCoroutinesCore implementation dep.kotlinxCoroutinesAndroid implementation dep.androidMultidex implementation dep.buglySDK implementation dep.buglyNDK implementation dep.mqttv3 implementation dep.eventbus implementation dep.bgaZxing // implementation files('libs\\arcsoft_face.jar') implementation 'me.jessyan:autosize:1.2.1' implementation(name: 'facedetector-1.0.0', ext: 'aar') implementation 'io.fotoapparat:fotoapparat:2.7.0' implementation(name: 'flowlayout-1.0.0', ext: 'aar') implementation 'com.huawei.hms:scanplus:1.1.1.301' implementation 'androidx.legacy:legacy-support-v4:1.0.0' implementation 'com.github.bumptech.glide:glide:4.12.0' implementation 'io.github.scwang90:refresh-layout-kernel:2.0.5' //核心必须依赖 implementation 'io.github.scwang90:refresh-header-classics:2.0.5' //经典刷新头 implementation 'io.github.scwang90:refresh-footer-classics:2.0.5' //经典加载 //AndroidX 版本 implementation 'com.king.zxing:zxing-lite:1.1.7-androidx' implementation 'com.vip:search:1.0.0' implementation 'com.hjq:titlebar:5.0' implementation 'com.makeramen:roundedimageview:2.3.0' implementation 'com.github.codbking:PickTime:v1.0.1' implementation 'com.yayaG.iosSwitchButton:iosswitchbutton:1.0.3' implementation 'com.github.bmelnychuk:atv:1.2.+' implementation 'com.google.android:flexbox:2.0.1' implementation 'com.nex3z:flow-layout:1.2.3' implementation 'q.rorbin:badgeview:1.1.2' implementation 'com.blankj:utilcodex:1.31.0' //room // def room_version = "2.2.5" def room_version = "2.3.0" implementation "androidx.room:room-runtime:$room_version" kapt "androidx.room:room-compiler:$room_version" // room针对kotlin协程功能的扩展库 implementation "androidx.room:room-ktx:$room_version" // implementation 'org.apache.poi:poi:5.1.0' // implementation 'org.apache.poi:poi-ooxml:5.1.0' implementation 'com.github.barteksc:android-pdf-viewer:3.2.0-beta.1' }