| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- apply plugin: 'com.android.application'
- android {
- lintOptions {
- checkReleaseBuilds false
- abortOnError false
- }
- signingConfigs {
- pda_storage {
- keyAlias 'pad_storage'
- keyPassword 'pdakeystone'
- storeFile file('C:\\sigin\\pda_storage.jks')
- storePassword 'pdakeystone'
- }
- }
- compileSdkVersion rootProject.ext.android.compileSdkVersion
- buildToolsVersion rootProject.ext.android.buildToolsVersion
- defaultConfig {
- applicationId "com.uas.storage_manage"
- 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'
- lintOptions{
- checkReleaseBuilds false
- abortOnError false
- }
- }
- }
- 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 = "泽天_UAS_STORAGE_RELEASE_${releaseInfo}.apk"
- } else if (variant.buildType.name.equals('debug')) {
- def debugInfo = getVersionName()
- fileName = "UAS_ZT_STORAGE_DEBUG_${debugInfo}.apk"
- }
- outputFileName = fileName
- }
- }
- }
- // configurations.all {
- // resolutionStrategy.eachDependency { DependencyResolveDetails details ->
- // def requested = details.requested
- // if (requested.group == 'com.android.support') {
- // if (!requested.name.startsWith("multidex")) {
- // details.useVersion '28.0.0'
- // }
- // }
- // }
- // }
- 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 deps.permisson
- implementation deps.recyclerview
- implementation deps.basePopup
- implementation deps.smartTable
- implementation deps.BaseRecyclerViewAdapterHelper
- 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 'org.greenrobot:eventbus:3.1.1'
- }
- def getVersionName() {
- return rootProject.ext.android.versionName
- }
|