Commit 85bf6d84 by amateur

1

1 parent 01ad5adf
...@@ -32,17 +32,17 @@ android { ...@@ -32,17 +32,17 @@ android {
} }
} }
manifestPlaceholders = [ manifestPlaceholders = [
JPUSH_PKGNAME : applicationId, JPUSH_PKGNAME: applicationId,
JPUSH_APPKEY : "ef86f246857d981193987dee",//值来自开发者平台取得的AppKey JPUSH_APPKEY : "ef86f246857d981193987dee",//值来自开发者平台取得的AppKey
JPUSH_CHANNEL : "default_developer", JPUSH_CHANNEL: "default_developer",
//meizu_config_start //meizu_config_start
// MEIZU_APPKEY : "MZ-魅族的APPKEY", // MEIZU_APPKEY : "MZ-魅族的APPKEY",
// MEIZU_APPID : "MZ-魅族的APPID", // MEIZU_APPID : "MZ-魅族的APPID",
//meizu_config_end //meizu_config_end
//xiaomi_config_start //xiaomi_config_start
XIAOMI_APPID : "MI-小米的APPID", XIAOMI_APPID : "MI-小米的APPID",
XIAOMI_APPKEY : "MI-小米的APPKEY", XIAOMI_APPKEY: "MI-小米的APPKEY",
//xiaomi_config_end //xiaomi_config_end
//oppo_config_start //oppo_config_start
// OPPO_APPKEY : "OP-oppo的APPKEY", // OPPO_APPKEY : "OP-oppo的APPKEY",
...@@ -58,7 +58,7 @@ android { ...@@ -58,7 +58,7 @@ android {
] ]
} }
productFlavors{ productFlavors {
} }
buildTypes { buildTypes {
...@@ -66,12 +66,20 @@ android { ...@@ -66,12 +66,20 @@ android {
minifyEnabled true //是否混淆 minifyEnabled true //是否混淆
zipAlignEnabled true //是否设置zip对齐优化 zipAlignEnabled true //是否设置zip对齐优化
shrinkResources true // 移除无用的resource文件 shrinkResources true // 移除无用的resource文件
resValue "string", "app_name", "NAFMII之窗"
signingConfig signingConfigs.debug
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
buildConfigField "boolean", "SHOW_INPUT", "false" buildConfigField "boolean", "SHOW_INPUT", "false"
} }
pro { // 模拟 pro { // 模拟
resValue "string", "app_name", "Nafmii-pro" resValue "string", "app_name", "Nafmii-pro"
applicationIdSuffix "pro" applicationIdSuffix "pro"
signingConfig signingConfigs.debug
manifestPlaceholders = [
JPUSH_PKGNAME: "com.whaty.nafmii.pro",
JPUSH_APPKEY : "ef86f246857d981193987dee",//值来自开发者平台取得的AppKey
JPUSH_CHANNEL: "default_developer"
]
} }
uat { // 测试 uat { // 测试
...@@ -81,13 +89,22 @@ android { ...@@ -81,13 +89,22 @@ android {
buildConfigField "String", "API_HOST", "\"http://10.10.34.155/nafmii/app/\"" buildConfigField "String", "API_HOST", "\"http://10.10.34.155/nafmii/app/\""
buildConfigField "String", "IMG_API", "\"http://10.10.34.155/file/\"" buildConfigField "String", "IMG_API", "\"http://10.10.34.155/file/\""
buildConfigField "String", "ONLINE_URL", "\"http://10.10.34.155/h5/\"" buildConfigField "String", "ONLINE_URL", "\"http://10.10.34.155/h5/\""
debuggable true
signingConfig signingConfigs.debug signingConfig signingConfigs.debug
manifestPlaceholders = [
JPUSH_PKGNAME: "com.whaty.nafmii.uat",
JPUSH_APPKEY : "ef86f246857d981193987dee",//值来自开发者平台取得的AppKey
JPUSH_CHANNEL: "default_developer"
]
} }
debug { dev {
minifyEnabled false minifyEnabled false
resValue "string", "app_name", "Nafmii-dev" resValue "string", "app_name", "Nafmii-dev"
applicationIdSuffix "dev" applicationIdSuffix "dev"
manifestPlaceholders = [
JPUSH_PKGNAME: "com.whaty.nafmii.dev",
JPUSH_APPKEY : "ef86f246857d981193987dee",//值来自开发者平台取得的AppKey
JPUSH_CHANNEL: "default_developer"
]
} }
} }
compileOptions { compileOptions {
...@@ -101,12 +118,6 @@ android { ...@@ -101,12 +118,6 @@ android {
keyPassword 'whaty123' keyPassword 'whaty123'
keyAlias 'whaty' keyAlias 'whaty'
} }
uat {
storeFile file('D:\\studio-workspace\\nafmii\\nafmii.keystore')
keyAlias 'whaty'
storePassword 'whaty123'
keyPassword 'whaty123'
}
} }
ndkVersion '20.0.5594570' ndkVersion '20.0.5594570'
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!