|
|
@@ -29,6 +29,7 @@ def releaseTime() { |
|
|
|
} |
|
|
|
|
|
|
|
apply plugin: 'com.android.application' |
|
|
|
apply plugin: 'com.mob.sdk' |
|
|
|
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" |
|
|
|
|
|
|
|
|
|
|
@@ -91,50 +92,50 @@ android { |
|
|
|
|
|
|
|
// |
|
|
|
// // 签名配置 |
|
|
|
// signingConfigs { |
|
|
|
// // 智夜生活 |
|
|
|
// zhiying { |
|
|
|
// storeFile file('zhiying.jks') |
|
|
|
// storePassword 'zhioscom' |
|
|
|
// keyAlias 'zysh' |
|
|
|
// keyPassword 'zhioscom' |
|
|
|
// v1SigningEnabled true |
|
|
|
// v2SigningEnabled true |
|
|
|
// } |
|
|
|
// |
|
|
|
// } |
|
|
|
// |
|
|
|
// flavorDimensions "app" |
|
|
|
// |
|
|
|
// |
|
|
|
// // 应用信息配置 |
|
|
|
// productFlavors { |
|
|
|
// // 智夜生活 |
|
|
|
// zhiying { |
|
|
|
// applicationId "cn.zhios.zhiying" |
|
|
|
// versionCode 1 |
|
|
|
// dimension "app" |
|
|
|
// versionName '1.0.0' |
|
|
|
// // 签名信息 |
|
|
|
// 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 |
|
|
|
// } |
|
|
|
// } |
|
|
|
// } |
|
|
|
signingConfigs { |
|
|
|
// 智夜生活 |
|
|
|
zhiying { |
|
|
|
storeFile file('zhiying.jks') |
|
|
|
storePassword 'zhioscom' |
|
|
|
keyAlias 'zysh' |
|
|
|
keyPassword 'zhioscom' |
|
|
|
v1SigningEnabled true |
|
|
|
v2SigningEnabled true |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
flavorDimensions "app" |
|
|
|
|
|
|
|
|
|
|
|
// 应用信息配置 |
|
|
|
productFlavors { |
|
|
|
// 智夜生活 |
|
|
|
zhiying { |
|
|
|
applicationId "cn.zhios.zhiying" |
|
|
|
versionCode 1 |
|
|
|
dimension "app" |
|
|
|
versionName '1.0.0' |
|
|
|
// 签名信息 |
|
|
|
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 -> |
|
|
@@ -162,6 +163,25 @@ dependencies { |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
MobSDK { |
|
|
|
appKey "30dc33054b635" |
|
|
|
appSecret "396e98c293130c9976fb7428b6b434d6" |
|
|
|
|
|
|
|
ShareSDK { |
|
|
|
|
|
|
|
// platform configuration information |
|
|
|
devInfo { |
|
|
|
QQ { |
|
|
|
appId "1111030588" |
|
|
|
appKey "XoHKlrBybXy7ORBt" |
|
|
|
shareByAppClient true |
|
|
|
bypassApproval false |
|
|
|
enable true |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 注册SecVerify的相关信息 |
|
|
|
//MobSDK { |
|
|
|
//// appKey "2ed488d929488" |
|
|
|