diff --git a/app/build.gradle b/app/build.gradle index ae69465..593aa2d 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -25,6 +25,19 @@ versionName "1.0.8" manifestPlaceholders = [GETUI_APPID: "HKv8K9qARd6WckZ1o2Vbu4"] + + // 版本名后面添加一句话,意思就是flavor dimension 它的维度就是该版本号,多渠道打包很重要 + flavorDimensions "versionCode" + } + + /** + * 多渠道打包 + * 1、applicationId = 软件-包名 + * */ + productFlavors { + zq { + applicationId "com.casic.zq.smartwell" + } } buildTypes { @@ -50,7 +63,7 @@ applicationVariants.all { variant -> variant.outputs.all { - outputFileName = getBuildDate() + "_" + defaultConfig.versionName + ".apk" + outputFileName = "ZQ_" + getBuildDate() + "_" + defaultConfig.versionName + ".apk" } }