JLChen
2021-08-10 c4b015770e8a29f18e19cc44b3df46c20a4762f4
hdl_core/build.gradle
@@ -6,8 +6,8 @@
    defaultConfig {
        minSdkVersion 17
        targetSdkVersion 28
        versionCode 1
        versionName "1.0.6"
        versionCode 11
        versionName "1.7.2"
        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+'