Open itgoyo opened 1 year ago
//打包自动生成名字 android.applicationVariants.all { variant -> variant.outputs.all { if (variant.getFlavorName().equals("abc")) { outputFileName = "${variant.getFlavorName()}_${variant.versionName}_${variant.buildType.name}_${releaseTime()}.apk" } else { outputFileName = "${variant.getFlavorName()}_${variant.versionName}_${variant.buildType.name}_${releaseTime()}.apk" } } }