Sfoglia il codice sorgente

[编译][修改]:release编译问题解决

tags/jenkins-front-end-screenad-109-v3
hupeng 6 anni fa
parent
commit
97f7fb1184
1 ha cambiato i file con 11 aggiunte e 4 eliminazioni
  1. +11
    -4
      android/app/build.gradle

+ 11
- 4
android/app/build.gradle Vedi File

@@ -128,6 +128,16 @@ android {
include "armeabi-v7a", "x86", "arm64-v8a" include "armeabi-v7a", "x86", "arm64-v8a"
} }
} }
signingConfigs {
release {
if (project.hasProperty('MYAPP_RELEASE_STORE_FILE')) {
storeFile file(MYAPP_RELEASE_STORE_FILE)
storePassword MYAPP_RELEASE_STORE_PASSWORD
keyAlias MYAPP_RELEASE_KEY_ALIAS
keyPassword MYAPP_RELEASE_KEY_PASSWORD
}
}
}
buildTypes { buildTypes {
debug { debug {
buildConfigField "String", "API_HOST", "\"https://mall.youlane.cn/\"" buildConfigField "String", "API_HOST", "\"https://mall.youlane.cn/\""
@@ -140,10 +150,7 @@ android {
buildConfigField "String", "CODEPUSH_KEY", "\"9rYZYySFD0ryN5wCD9YmjJkT55Kf4ksvOXqog\"" buildConfigField "String", "CODEPUSH_KEY", "\"9rYZYySFD0ryN5wCD9YmjJkT55Kf4ksvOXqog\""
minifyEnabled enableProguardInReleaseBuilds minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
storeFile file(MYAPP_RELEASE_STORE_FILE)
storePassword MYAPP_RELEASE_STORE_PASSWORD
keyAlias MYAPP_RELEASE_KEY_ALIAS
keyPassword MYAPP_RELEASE_KEY_PASSWORD
signingConfig signingConfigs.release
} }
product.initWith(release) product.initWith(release)
product { product {


Caricamento…
Annulla
Salva