|
@@ -108,33 +108,33 @@ android { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 应用信息配置 |
|
|
// 应用信息配置 |
|
|
// productFlavors { |
|
|
|
|
|
// // 智夜生活 |
|
|
|
|
|
// zhiying { |
|
|
|
|
|
// applicationId "cn.zhios.zhiying" |
|
|
|
|
|
// versionCode 28 |
|
|
|
|
|
// dimension "app" |
|
|
|
|
|
// versionName '1.2.28' |
|
|
|
|
|
// // 签名信息 |
|
|
|
|
|
// signingConfig signingConfigs.zhiying |
|
|
|
|
|
// } |
|
|
|
|
|
// } |
|
|
|
|
|
// |
|
|
|
|
|
// // 打包脚本 |
|
|
|
|
|
// android.applicationVariants.all { variant -> |
|
|
|
|
|
// if (variant.buildType.name != "debug") { |
|
|
|
|
|
// variant.getPackageApplicationProvider().get().outputDirectory = new File(project.rootDir.absolutePath + "/app/build/outputs/apk") |
|
|
|
|
|
// } |
|
|
|
|
|
// |
|
|
|
|
|
// variant.outputs.all { output -> |
|
|
|
|
|
// def outputFile = output.outputFile |
|
|
|
|
|
// if (outputFile != null && outputFile.name.endsWith('.apk')) { |
|
|
|
|
|
// //这里修改apk文件名 |
|
|
|
|
|
// def fileName = "${variant.productFlavors[0].name}_${releaseTime()}01_&V${variant.productFlavors[0].versionCode}.apk" |
|
|
|
|
|
// outputFileName = fileName |
|
|
|
|
|
// } |
|
|
|
|
|
// } |
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
productFlavors { |
|
|
|
|
|
// 智夜生活 |
|
|
|
|
|
zhiying { |
|
|
|
|
|
applicationId "cn.zhios.zhiying" |
|
|
|
|
|
versionCode 28 |
|
|
|
|
|
dimension "app" |
|
|
|
|
|
versionName '1.2.28' |
|
|
|
|
|
// 签名信息 |
|
|
|
|
|
signingConfig signingConfigs.zhiying |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 打包脚本 |
|
|
|
|
|
android.applicationVariants.all { variant -> |
|
|
|
|
|
if (variant.buildType.name != "debug") { |
|
|
|
|
|
variant.getPackageApplicationProvider().get().outputDirectory = new File(project.rootDir.absolutePath + "/app/build/outputs/apk") |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
variant.outputs.all { output -> |
|
|
|
|
|
def outputFile = output.outputFile |
|
|
|
|
|
if (outputFile != null && outputFile.name.endsWith('.apk')) { |
|
|
|
|
|
//这里修改apk文件名 |
|
|
|
|
|
def fileName = "${variant.productFlavors[0].name}_${releaseTime()}01_&V${variant.productFlavors[0].versionCode}.apk" |
|
|
|
|
|
outputFileName = fileName |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
configurations.all { |
|
|
configurations.all { |
|
|
resolutionStrategy.eachDependency { DependencyResolveDetails details -> |
|
|
resolutionStrategy.eachDependency { DependencyResolveDetails details -> |
|
|