|
|
@@ -53,8 +53,8 @@ android { |
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" |
|
|
|
ndk { |
|
|
|
//选择要添加的对应cpu类型的.so库。 |
|
|
|
//abiFilters 'armeabi', 'armeabi-v7a', 'x86', 'x86_64', 'mips', 'mips64', 'arm64-v8a' |
|
|
|
abiFilters 'armeabi-v7a','x86_64' |
|
|
|
abiFilters 'armeabi', 'armeabi-v7a', 'x86', 'x86_64', 'mips', 'mips64', 'arm64-v8a' |
|
|
|
// abiFilters 'armeabi-v7a','x86_64' |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@@ -109,33 +109,33 @@ android { |
|
|
|
|
|
|
|
|
|
|
|
// 应用信息配置 |
|
|
|
productFlavors { |
|
|
|
// 智夜生活 |
|
|
|
zhiying { |
|
|
|
applicationId "cn.zhios.zhiying" |
|
|
|
versionCode 52 |
|
|
|
dimension "app" |
|
|
|
versionName '1.3.12' |
|
|
|
// 签名信息 |
|
|
|
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 52 |
|
|
|
// dimension "app" |
|
|
|
// versionName '1.3.12' |
|
|
|
// // 签名信息 |
|
|
|
// 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 { |
|
|
|
resolutionStrategy.eachDependency { DependencyResolveDetails details -> |
|
|
|