提交 6a321d9d authored 作者: vipcxj's avatar vipcxj

fix: broken build.gradle

上级 a4cca65d
...@@ -122,12 +122,6 @@ android { ...@@ -122,12 +122,6 @@ android {
dexOptions { dexOptions {
javaMaxHeapSize "2G" javaMaxHeapSize "2G"
} }
releaseStaging {
buildConfigField "String", "CODEPUSH_KEY", '"' + properties.getProperty("code_push.key_staging") + '"'
}
release {
buildConfigField "String", "CODEPUSH_KEY", '"' + properties.getProperty("code_push.key_production") + '"'
}
signingConfigs { signingConfigs {
release { release {
storeFile file("app.jks") storeFile file("app.jks")
...@@ -145,10 +139,15 @@ android { ...@@ -145,10 +139,15 @@ android {
} }
} }
buildTypes { buildTypes {
releaseStaging {
signingConfig signingConfigs.release
buildConfigField "String", "CODEPUSH_KEY", '"' + properties.getProperty("code_push.key_staging") + '"'
}
release { release {
minifyEnabled enableProguardInReleaseBuilds minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
signingConfig signingConfigs.release signingConfig signingConfigs.release
buildConfigField "String", "CODEPUSH_KEY", '"' + properties.getProperty("code_push.key_production") + '"'
} }
} }
// applicationVariants are e.g. debug, release // applicationVariants are e.g. debug, release
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论