1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- apply plugin: 'com.android.application'
- apply plugin: 'kotlin-android'
- apply plugin: 'kotlin-android-extensions'
- android {
- signingConfigs {
- pda_storage {
- keyAlias 'yt_yuejiahong_alias'
- keyPassword 'pdakeystone'
- storeFile file('C:/sigin/yt_yuejiahong.jks')
- storePassword 'pdakeystone'
- }
- }
- compileSdkVersion rootProject.ext.android.compileSdkVersion
- buildToolsVersion rootProject.ext.android.buildToolsVersion
- defaultConfig {
- applicationId "com.uas.yuejiahong"
- 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 true
- 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 = "UAS_YUEJIAHONGE_RELEASE_${releaseInfo}.apk"
- } else if (variant.buildType.name.equals('debug')) {
- def debugInfo = getVersionName()
- fileName = "UAS_YUEJIAHONG_DEBUG_${debugInfo}.apk"
- }
- outputFileName = fileName
- }
- }
- }
- compileOptions {
- targetCompatibility 1.8
- sourceCompatibility 1.8
- }
- }
- dependencies {
- implementation fileTree(include: ['*.jar'], dir: 'libs')
- implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
- 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')
- api deps.appcompatV7
- api deps.stetho
- api deps.fastjson
- api deps.xUtils
- api deps.okhttp
- implementation deps.recyclerview
- implementation deps.BaseRecyclerViewAdapterHelper
- implementation deps.smartRefreshLayout
- implementation deps.smartRefreshHeader
- implementation deps.permisson
- implementation deps.smartTable
- implementation deps.basePopup
- 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
- }
|