apply plugin: 'com.android.application'
|
|
|
|
android {
|
|
compileSdkVersion 27
|
|
defaultConfig {
|
|
applicationId "com.handset.serialportsensor"
|
|
minSdkVersion 19
|
|
targetSdkVersion 27
|
|
versionCode 1
|
|
versionName "2.3"
|
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
javaCompileOptions { annotationProcessorOptions { includeCompileClasspath = true } }
|
|
multiDexEnabled true
|
|
}
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
lintOptions {
|
|
checkReleaseBuilds false
|
|
abortOnError false
|
|
}
|
|
|
|
applicationVariants.all { variant ->
|
|
variant.outputs.all { output ->
|
|
def outputFile = output.outputFile
|
|
if (outputFile != null && outputFile.name.endsWith('.apk')) {
|
|
//版本名-版本号-发布时间.apk
|
|
def fileName = "检测仪_JE002_EX_V${versionName}_${releaseTime()}.apk"
|
|
outputFileName = fileName
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
|
implementation rootProject.ext.deps.appcompatV7
|
|
implementation rootProject.ext.deps.recyclerviewV7
|
|
implementation rootProject.ext.deps.constraintLayout
|
|
implementation rootProject.ext.deps.rvAdapterHelper
|
|
implementation rootProject.ext.deps.rvDivider
|
|
implementation rootProject.ext.deps.stickyDecoration
|
|
implementation rootProject.ext.deps.utils
|
|
implementation rootProject.ext.deps.jodaTime
|
|
implementation rootProject.ext.deps.rxJava
|
|
implementation rootProject.ext.deps.rxAndroid
|
|
|
|
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
|
|
implementation 'com.android.support:support-v4:27.1.1'
|
|
implementation 'com.android.support:design:27.1.1'
|
|
implementation 'org.projectlombok:lombok:1.16.16'
|
|
annotationProcessor "org.projectlombok:lombok:1.16.16"
|
|
compileOnly 'org.glassfish:javax.annotation:10.0-b28'
|
|
implementation 'com.squareup.retrofit2:converter-gson:2.2.0'
|
|
|
|
implementation project(':serialportlib')
|
|
implementation 'com.github.suntiago:dblib:v1.0-beta'
|
|
implementation 'com.android.support:multidex:1.0.3'
|
|
implementation 'cn.jingzhuan.lib:chart:0.10.17@aar'
|
|
implementation 'com.google.guava:guava:22.0-android'
|
|
}
|
|
|
|
def static releaseTime() {
|
|
return new Date().format("yyyyMMdd", TimeZone.getTimeZone("GMT+8"))
|
|
}
|