123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165 |
- apply plugin: 'com.android.application'
- //apply plugin: 'AndResGuard'
- android {
- signingConfigs {
- udapda {
- keyAlias 'pda_smart_com_lg_key'
- keyPassword 'pdakeystone'
- storeFile file('C:\\sigin\\pda_smart_com_lgkeystone.jks')
- storePassword 'pdakeystone'
- }
- }
- compileSdkVersion rootProject.ext.android.compileSdkVersion
- buildToolsVersion rootProject.ext.android.buildToolsVersion
- defaultConfig {
- applicationId "com.uas.pda_smart_com_lg"
- 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 = "LG_UAS_PDA_SMART_COM_LGRELEASE_${releaseInfo}.apk"
- } else if (variant.buildType.name.equals('debug')) {
- def debugInfo = getVersionName()
- fileName = "LG_UAS_PDA_SMART_COM_LGDEBUG_${debugInfo}.apk"
- }
- outputFileName = fileName
- }
- }
- }
- compileOptions {
- targetCompatibility 1.8
- sourceCompatibility 1.8
- }
- }
- dependencies {
- implementation fileTree(include: ['*.jar'], dir: 'libs')
- implementation 'com.android.support:appcompat-v7:28.0.0'
- implementation 'com.android.support.constraint:constraint-layout:2.0.1'
- 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 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.tbruyelle.rxpermissions:rxpermissions:0.9.3'
- }
- 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"
- }*/
|