ext {
    version = '4.5.17.7'

    compileSdkVersion = 28
    buildToolsVersion = '28.0.3'

    minSdkVersion = 14
    targetSdkVersion = 31

    sourceJavaVersion = JavaVersion.VERSION_1_8
    targetJavaVersion = JavaVersion.VERSION_1_8

    release = "${project.rootDir}" + '/ans-sdk/release/aar/'

    buildClass = 'build/intermediates/javac/release/classes'
    pushName = release + 'analysys_push_' + "${version}_${releaseTime()}" + '.jar'
    paasName = release + 'analysys_core_' + "${version}_${releaseTime()}" + '.jar'
    zipName = 'analysys_paas_android_java_' + "${version}_${releaseTime()}"
    visualName = release + 'analysys_visual_' + "${version}_${releaseTime()}" + '.jar'
    mpaasName = release + 'analysys_mpaas_' + "${version}_${releaseTime()}" + '.jar'
    reactNativeName = release + 'analysys_react_native_' + "${version}_${releaseTime()}" + '.jar'
    cmbName = release + 'analysys_CMB_' + "${version}_${releaseTime()}" + '.jar'
    encryptName = release + 'analysys_encrypt_' + "${version}_${releaseTime()}" + '.jar'

    moduleName = ['analysys_core_' + "${version}",
                  'analysys_encryption_' + "${version}",
                  'analysys_push_' + "${version}",
                  'analysys_visual_' + "${version}",
                  'analysys_mpaas_' + "${version}",
                  'analysys_react_native_' + "${version}",
                  'analysys_allgro_' + "${version}"
    ]
    releaseTimeVariable = "${releaseTime()}"
}
/** 获取东八区时间 */
def releaseTime() {
    return new Date().format("yyyyMMdd", TimeZone.getTimeZone("UTC +8"))
}