apply plugin: 'com.android.application'
|
|
android {
|
compileSdkVersion 30
|
defaultConfig {
|
applicationId "com.hdl.sdk.ttl_sdk"
|
minSdkVersion 17
|
targetSdkVersion 30
|
versionCode 3
|
versionName "1.0.3"
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
}
|
buildTypes {
|
release {
|
minifyEnabled false
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
}
|
}
|
buildToolsVersion '30.0.2'
|
|
/**
|
* 打包自动命名
|
*/
|
android.applicationVariants.all { variant ->
|
variant.outputs.all {
|
outputFileName = "Android_HDL_SDK_TTL_DEMO_" + buildType.name + "_V" +
|
defaultConfig.versionName + "_B" + defaultConfig.versionCode + "_" + releaseTime() + ".apk"
|
}
|
}
|
|
|
// configurations {
|
// compile.exclude module: 'gson'
|
// }
|
|
|
}
|
|
|
def releaseTime() {
|
return new Date().format("yyyy-MM-dd")
|
}
|
|
dependencies {
|
// implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs')
|
implementation 'com.android.support:appcompat-v7:28.0.0'
|
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
|
implementation 'androidx.test.ext:junit:1.1.5'
|
testImplementation 'junit:junit:4.12'
|
androidTestImplementation 'com.android.support.test:runner:1.0.2'
|
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
|
|
implementation 'com.android.support:recyclerview-v7:28.0.0'
|
implementation project(':HDL_TTLSDK485')
|
implementation 'org.greenrobot:eventbus:3.0.0'
|
implementation 'pub.devrel:easypermissions:2.0.1'
|
implementation 'com.afollestad.material-dialogs:commons:0.9.6.0'
|
api 'com.google.code.gson:gson:2.8.8'
|
|
// implementation 'com.afollestad.material-dialogs'
|
// implementation 'com.afollestad.material-dialogs:core:3.0.2'
|
// implementation 'com.jakewharton:butterknife:9.0.0'
|
// annotationProcessor 'com.jakewharton:butterknife-compiler:9.0.0'
|
|
|
|
// implementation project(':gson')
|
}
|