Skip to content

Commit

Permalink
fix: rn build android (#785)
Browse files Browse the repository at this point in the history
* fix: disable broken minification with proguard

* revert: cat in ci
  • Loading branch information
Slesarew authored Jul 16, 2021
1 parent 05fe8d7 commit e018b63
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ android-build-release:
paths:
- signer-app-release-signed.apk
script:
- echo "$KEYSTORE_DATA" | base64 -d > /tmp/gitlab-ci.keystore
- cat "$KEYSTORE_DATA" | base64 -d > /tmp/gitlab-ci.keystore
- wc /tmp/gitlab-ci.keystore
- ./scripts/build-release.sh /tmp/gitlab-ci.keystore "$KEYSTORE_ALIAS" "$KEYSTORE_PASS"
tags:
Expand Down
6 changes: 3 additions & 3 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,10 @@ android {
// Caution! In production, you need to generate your own keystore file.
// see https://facebook.github.io/react-native/docs/signed-apk-android.
// signingConfig signingConfigs.debug
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
// minifyEnabled enableProguardInReleaseBuilds
// proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
// Detox-specific additions to pro-guard, uncomment following line if pro-guard is enabled.
proguardFile "${rootProject.projectDir}/../node_modules/detox/android/detox/proguard-rules-app.pro"
// proguardFile "${rootProject.projectDir}/../node_modules/detox/android/detox/proguard-rules-app.pro"
}
}
splits {
Expand Down
1 change: 0 additions & 1 deletion android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,5 @@ MYAPP_RELEASE_STORE_FILE=apk.keystore
MYAPP_RELEASE_KEY_ALIAS=testing
MYAPP_RELEASE_STORE_PASSWORD=testing
MYAPP_RELEASE_KEY_PASSWORD=testing
android.enableR8=false
android.useAndroidX=true
android.enableJetifier=true

0 comments on commit e018b63

Please sign in to comment.