apply plugin: 'com.android.application' android { compileSdkVersion 29 buildToolsVersion "29.0.3" defaultConfig { applicationId "com.techscan.wk" minSdkVersion 21 //noinspection ExpiredTargetSdkVersion targetSdkVersion 29 versionCode 1 versionName "1.0.8" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" ndk { abiFilters 'armeabi', 'x86', 'armeabi-v7a', 'x86_64', 'arm64-v8a' } multiDexEnabled true } signingConfigs { release { keyAlias 'key0' keyPassword '123321' storeFile file('vico.jks') storePassword '123321' } } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' signingConfig signingConfigs.release } debug { signingConfig signingConfigs.release } } android.applicationVariants.all { variant -> variant.outputs.all { outputFileName = "维科上料报工系统_v${defaultConfig.versionName}.apk" } } compileOptions { targetCompatibility JavaVersion.VERSION_1_8 sourceCompatibility JavaVersion.VERSION_1_8 } // // 避免 lint 检测出错时停止构建 // lintOptions { // abortOnError false // } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar']) implementation 'androidx.appcompat:appcompat:1.0.0-beta01' implementation "androidx.annotation:annotation:1.0.0-beta01" implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta2' testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test:runner:1.1.0-alpha4' androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0-alpha4' //material implementation "com.google.android.material:material:1.1.0-alpha08" //litepal implementation 'org.litepal.android:java:3.0.0' //butterkinfe implementation "com.jakewharton:butterknife:10.1.0" annotationProcessor "com.jakewharton:butterknife-compiler:10.1.0" //rxjava implementation 'io.reactivex.rxjava2:rxjava:2.2.8' implementation 'io.reactivex.rxjava2:rxandroid:2.1.1' //retrofit2 implementation 'com.squareup.retrofit2:retrofit:2.4.0' implementation 'com.squareup.retrofit2:converter-gson:2.4.0' implementation 'com.squareup.retrofit2:converter-scalars:2.3.0' implementation 'com.squareup.retrofit2:adapter-rxjava2:2.3.0' //引入rxJava适配器,方便rxJava与retrofit的结合 implementation 'com.jakewharton.retrofit:retrofit2-rxjava2-adapter:1.0.0' //引入J神的rxrelay2,出现异常仍然可以处理 implementation 'com.jakewharton.rxrelay2:rxrelay:2.0.0' //非必要依赖, log依赖,如果需要打印OkHttpLog需要添加 implementation 'com.squareup.okhttp3:logging-interceptor:3.10.0' //腾讯QMUI implementation 'com.qmuiteam:arch:0.3.1' implementation 'com.qmuiteam:qmui:2.0.0-alpha10' //搜索框 implementation 'boxresin.android:materialsearchview:2.0.0' //时间选择器 implementation 'com.github.codbking:PickTime:v1.0.1' //二维码扫描 implementation 'com.king.zxing:zxing-lite:1.1.9-androidx' //transitionseverywhere implementation "com.andkulikov:transitionseverywhere:2.0.0-beta01" //smartTable implementation 'com.github.huangyanbin:SmartTable:2.2.0' //自定义弹出框 for androidx. implementation 'com.lxj:xpopup:1.8.17' //日志打印 implementation 'com.orhanobut:logger:2.2.0' //multidex implementation 'com.android.support:multidex:1.0.3' //通用adapter implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.4' //工具类集合 implementation 'com.blankj:utilcode:1.22.1' //角标 implementation 'q.rorbin:badgeview:1.1.3' // implementation 'com.iqiyi.xcrash:xcrash-android-lib:3.0.0' //百度ocr implementation files('libs/ocr-sdk.jar') implementation project(path: ':ocr_ui') //apk更新 implementation 'com.github.maning0303:MNUpdateAPK:V2.0.3' }