JLChen
2020-06-01 f7133566c6608ec831734590e508c70bad95ffe8
hdl_core/build.gradle
@@ -6,8 +6,8 @@
    defaultConfig {
        minSdkVersion 17
        targetSdkVersion 28
        versionCode 1
        versionName "1.0.7"
        versionCode 10
        versionName "1.7.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
@@ -20,12 +20,26 @@
    }
    buildToolsVersion '28.0.3'
    /**
     * 打包自动命名
     */
    android.libraryVariants.all { variant ->
        variant.outputs.all {
            outputFileName = "hdl_lib_V" +
                    defaultConfig.versionName + ".B" + defaultConfig.versionCode + "." + releaseTime() + "_beta.aar"
        }
    }
//    lintOptions {
//        abortOnError false
//        warning 'InvalidPackage'
//    }
}
def releaseTime() {
    return new Date().format("yyyyMMdd")
}
dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'com.android.support:appcompat-v7:28+'