apply plugin: 'com.android.application' //apply plugin: 'AndResGuard' android { signingConfigs { udapda { keyAlias 'lgsmart_keystone' keyPassword 'pdakeystone' storeFile file('C:\\sigin\\lg_smart_keystone.jks') storePassword 'pdakeystone' } } compileSdkVersion rootProject.ext.android.compileSdkVersion buildToolsVersion rootProject.ext.android.buildToolsVersion defaultConfig { applicationId "com.uas.lg_smart" minSdkVersion rootProject.ext.android.minSdkVersion targetSdkVersion rootProject.ext.android.targetSdkVersion versionCode rootProject.ext.android.versionCode versionName rootProject.ext.android.versionName javaCompileOptions { annotationProcessorOptions { includeCompileClasspath = true } } } 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 = "RD_UAS_PDA_WANLIDA_RELEASE_${releaseInfo}.apk" } else if (variant.buildType.name.equals('debug')) { def debugInfo = getVersionName() fileName = "RD_UAS_PDA_WANLIDA_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') implementation deps.switchView implementation 'org.jetbrains:annotations:15.0' implementation deps.BaseRecyclerViewAdapterHelper implementation deps.smartRefreshLayout implementation deps.smartRefreshHeader implementation deps.recyclerview implementation deps.permisson implementation deps.basePopup implementation deps.smartTable implementation 'com.umeng.umsdk:common:9.4.0'// 必选 implementation 'com.umeng.umsdk:asms:1.2.3'// 必选 implementation 'com.umeng.umsdk:apm:1.4.0' // 错误分析升级为独立SDK,看crash数据请一定集成,可选 implementation 'com.squareup.okhttp3:okhttp:3.10.0' } 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" }*/