|
@@ -53,8 +53,8 @@ android { |
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" |
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" |
|
|
ndk { |
|
|
ndk { |
|
|
//选择要添加的对应cpu类型的.so库。 |
|
|
//选择要添加的对应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 46 |
|
|
|
|
|
// dimension "app" |
|
|
|
|
|
// versionName '1.3.4' |
|
|
|
|
|
// // 签名信息 |
|
|
|
|
|
// 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 47 |
|
|
|
|
|
dimension "app" |
|
|
|
|
|
versionName '1.3.5' |
|
|
|
|
|
// 签名信息 |
|
|
|
|
|
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 -> |
|
|