Skip to content

Commit b509310

Browse files
committed
test(expo): enable R8 in Android release tests
1 parent 2ee976b commit b509310

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

‎.github/workflows/expo-native-build.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ jobs:
104104
with:
105105
path: ${{ steps.native-build-key.outputs.artifact }}
106106
# Bump the version when native build commands change.
107-
key: expo-native-build-v1-${{ runner.os }}-${{ matrix.expo-sdk }}-${{ matrix.platform }}-${{ matrix.run-e2e == true && 'e2e' || 'build' }}-${{ env.E2E_INSTANCE_NAME }}-${{ steps.native-build-key.outputs.hash }}
107+
key: expo-native-build-minified-v2-${{ runner.os }}-${{ matrix.expo-sdk }}-${{ matrix.platform }}-${{ matrix.run-e2e == true && 'e2e' || 'build' }}-${{ env.E2E_INSTANCE_NAME }}-${{ steps.native-build-key.outputs.hash }}
108108

109109
- if: steps.native-build-cache.outputs.cache-hit != 'true'
110110
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
@@ -207,7 +207,9 @@ jobs:
207207
- name: Build Android fixture
208208
if: matrix.platform == 'android' && steps.native-build-cache.outputs.cache-hit != 'true'
209209
working-directory: ${{ env.FIXTURE_DIR }}
210-
run: pnpm build:android
210+
run: |
211+
pnpm build:android -Pandroid.enableMinifyInReleaseBuilds=true -Pandroid.enableShrinkResourcesInReleaseBuilds=true
212+
test -s android/app/build/outputs/mapping/release/mapping.txt
211213
212214
- name: Prebuild iOS fixture
213215
if: matrix.platform == 'ios' && steps.native-build-cache.outputs.cache-hit != 'true'

0 commit comments

Comments
 (0)