打包名称修改

This commit is contained in:
huangjian
2021-12-10 17:23:55 +08:00
parent 376dd3cfd7
commit 72d6125704
3 changed files with 6 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ android {
variant ->
variant.outputs.all {
def date = new Date().format("MMddHHmm", TimeZone.getTimeZone("GMT+08"))
outputFileName = "yinyou_" + buildType.name + "_v${Boolean.parseBoolean(with_jenkins) ? "" : (defaultConfig.versionName + "-" + date)}.apk"
outputFileName = "yinyou_${buildType.name}_${channel}_v${defaultConfig.versionName}-${date}.apk"
}
}
@@ -184,10 +184,12 @@ android {
productFlavors {
accompany {
dimension 'default'
manifestPlaceholders = [CHANNEL_VALUE: channel]
}
oppo {
dimension 'default'
manifestPlaceholders = [CHANNEL_VALUE: channel]
}
}

View File

@@ -93,7 +93,7 @@
<meta-data
android:name="CHANNEL"
android:value="official" />
android:value="${CHANNEL_VALUE}" />
<!-- 刘海屏适配 begin -->
<!-- 小米 -->

View File

@@ -22,3 +22,5 @@ version_code=330
with_flutter_aar=true
with_jenkins=false
channel=official