apply plugin: 'com.android.application' //apply plugin: 'AndResGuard' android { signingConfigs { udapda { keyAlias 'huiyan_workshop_alias' keyPassword 'pdakeystone' storeFile file('C:\\sigin\\huiyan_workshop.jks') storePassword 'pdakeystone' } } compileSdkVersion rootProject.ext.android.compileSdkVersion buildToolsVersion rootProject.ext.android.buildToolsVersion defaultConfig { applicationId "com.uas.huiyan_workshop" minSdkVersion rootProject.ext.android.minSdkVersion targetSdkVersion rootProject.ext.android.targetSdkVersion versionCode rootProject.ext.android.versionCode versionName rootProject.ext.android.versionName javaCompileOptions { annotationProcessorOptions { includeCompileClasspath = true } } multiDexEnabled true ndk { //设置支持的SO库架构(开发者可以根据需要,选择一个或多个平台的so) abiFilters "armeabi", "armeabi-v7a", "arm64-v8a", "x86", "x86_64" } } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } packagingOptions { exclude 'META-INF/LICENSE.txt' exclude 'META-INF/NOTICE.txt' } applicationVariants.all { variant -> variant.outputs.all { output -> def outputFile = output.outputFile def fileName if (outputFile != null && outputFile.name.endsWith('.apk')) { if (variant.buildType.name.equals('release')) { def releaseInfo = getVersionName() fileName = "慧眼_车间工作站_RELEASE_${releaseInfo}.apk" } else if (variant.buildType.name.equals('debug')) { def debugInfo = getVersionName() fileName = "UAS_PDA_YITAO_PRODUCTIONLINE_DEBUG_${debugInfo}.apk" } outputFileName = fileName } } } compileOptions { targetCompatibility 1.8 sourceCompatibility 1.8 } } dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') testImplementation 'junit:junit:4.12' api files('libs/volley.jar') api files('libs/gson-2.2.4.jar') api project(':pulltoreflashlibrary') api project(':progresslitelibrary') api project(':lib-zxing') implementation deps.appcompatV7 implementation deps.stetho implementation deps.fastjson implementation deps.xUtils implementation deps.okhttp implementation project(':bluetooth') api deps.smartTable implementation deps.switchView implementation deps.BaseRecyclerViewAdapterHelper implementation deps.smartRefreshLayout implementation deps.smartRefreshHeader implementation deps.recyclerview implementation deps.permisson implementation deps.basePopup implementation 'org.greenrobot:eventbus:3.2.0' implementation 'com.contrarywind:Android-PickerView:4.1.9' //OKGO implementation 'com.lzy.net:okgo:3.0.4' implementation 'com.lzy.net:okrx2:2.0.2' implementation 'com.lzy.net:okserver:2.0.5' implementation 'com.contrarywind:Android-PickerView:4.1.9' implementation 'com.android.support:design:28.0.0' // 友盟基础组件库(所有友盟业务SDK都依赖基础组件库) implementation 'com.umeng.umsdk:common:9.4.4' //(必选) implementation 'com.umeng.umsdk:asms:1.4.1' // asms包依赖(必选) implementation 'com.umeng.umsdk:apm:1.5.2' // U-APM包依赖(必选) 错误分析升级为独立SDK,看crash数据请一定集成 } def getVersionName() { return rootProject.ext.android.versionName } /*andResGuard { // mappingFile = file("./resource_mapping.txt") mappingFile = null use7zip = true useSign = true // 打开这个开关,会keep住所有资源的原始路径,只混淆资源的名字 keepRoot = false whiteList = [ // for your icon "R.mipmap.icon", // for fabric "R.string.com.crashlytics.*", // for google-services "R.string.google_app_id", "R.string.gcm_defaultSenderId", "R.string.default_web_client_id", "R.string.ga_trackingId", "R.string.firebase_database_url", "R.string.google_api_key", "R.string.google_crash_reporting_api_key", //for umeng "R.anim.umeng*", "R.string.umeng*", "R.string.UM*", "R.string.tb_*", "R.layout.umeng*", "R.layout.socialize_*", "R.layout.*messager*", "R.layout.tb_*", "R.color.umeng*", "R.color.tb_*", "R.style.*UM*", "R.style.umeng*", "R.drawable.umeng*", "R.drawable.tb_*", "R.drawable.sina*", "R.drawable.qq_*", "R.drawable.tb_*", "R.id.umeng*", "R.id.*messager*", "R.id.progress_bar_parent", "R.id.socialize_*", "R.id.webView", //for jpush "R.drawable.jpush_notification_icon" ] compressFilePattern = [ "*.png", "*.jpg", "*.jpeg", "*.gif", ] sevenzip { artifact = 'com.tencent.mm:SevenZip:1.2.13' //path = "/usr/local/bin/7za" } *//** * 可选: 如果不设置则会默认覆盖assemble输出的apk **//* // finalApkBackupPath = "${project.rootDir}/final.apk" *//** * 可选: 指定v1签名时生成jar文件的摘要算法 * 默认值为“SHA-1” **//* // digestalg = "SHA-256" }*/