|
|
|
@ -6,6 +6,7 @@ plugins {
|
|
|
|
|
def AppMajorVersion = 1
|
|
|
|
|
def AppMinorVersion = 0
|
|
|
|
|
def AppBuildNumber = 0
|
|
|
|
|
def ConfigProjectOwner = "HENAN_2024"
|
|
|
|
|
|
|
|
|
|
def AppVersionName = AppMajorVersion + "." + AppMinorVersion + "." + AppBuildNumber
|
|
|
|
|
def AppVersionCode = AppMajorVersion * 100000 + AppMinorVersion * 1000 + AppBuildNumber
|
|
|
|
@ -43,6 +44,16 @@ android {
|
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
android.applicationVariants.all { variant ->
|
|
|
|
|
variant.outputs.all { output ->
|
|
|
|
|
if (outputFileName.endsWith('.apk')) {
|
|
|
|
|
def fileName = "MpRes_v${defaultConfig.versionName}_${ConfigProjectOwner}_${new Date(System.currentTimeMillis()).format("yyyyMMdd")}.apk"
|
|
|
|
|
outputFileName = fileName
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
|