Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crash on release versions after AGP 7.3 bump (#34797)
Summary: Release versions are currently broken on `main`. This happened once we bumped the AGP version to 7.3. It seems like that the path we used to use for assets has changed. The app build successfully but it fails to start as it can't load the bundle. This is also causing the hermes e2e test to fail: facebook/hermes#821 ## Changelog [Android] [Fixed] - Fix crash on release versions after AGP 7.3 bump Pull Request resolved: #34797 Test Plan: Tested this locally and it works fine with RN Tester (can run a release version of it). Plus, inspecting the zip: ### Before ``` $ unzip -l packages/rn-tester/android/app/build/outputs/apk/hermes/release/app-hermes-arm64-v8a-release.apk | grep android.bundle 1248608 01-01-1981 01:01 assets/mergeHermesReleaseAssets/RNTesterApp.android.bundle ``` ### After ``` $ unzip -l packages/rn-tester/android/app/build/outputs/apk/hermes/release/app-hermes-arm64-v8a-release.apk | grep android.bundle 1248608 01-01-1981 01:01 assets/RNTesterApp.android.bundle ``` Reviewed By: cipolleschi Differential Revision: D39847369 Pulled By: cortinico fbshipit-source-id: 0e21c0b6e58b49ac097c59223649b74b2879b5e5
- Loading branch information