CodePush Standalone Integration
Opened this issue · 0 comments
yagarwal commented
Describe the bug
Image assets fail to load with manual bundle and release command. I'm having trouble getting the code-push-standalone pipeline to work with the reNative framework, especially, bundling images with the update.
To Reproduce
Steps to reproduce the behavior:
- Install react-native-code-push in any existing reNative (1.9.0) project. Follow this guide.
- The deployment key can be generated with a free account at deploypulse.io. This needs to be added to the
strings.xml - Install the CLI for code-push-standalone. Follow this guide
- Copy index.js file -> index.android.js file in the project root. (This is required because code push JS bundle will look for this bundle counterpart file when updating on the client)
- In appConfigs/app/renative.json, add
"entryFile": "index.android"under androidtv platform - CodePush-ify your app with wrapping your index.tsx export as
export default codePush(Root); - The default release-react command looks for the android files as per a vanilla react native project. Thus, cannot be used. Alternative is to send the bundle file directly. The
npx rnv bundle -p androidtv -s releasegenerated an emptyindex.android.bundlefile. So I had to runnpx rnv run -p androidtv -s releaseand use that bundle file to send to the code push server. Here is the commandcode-push-standalone release YourAppName ./platformBuilds/app_androidtv/app/src/main/assets "0.5.12" -d Production. - Check your client app and install the update. Any image assets will be missing, therefore, not rendering. The JS changes are applied correctly.
Expected behavior
The code push install should have maintained the existing assets as per the build src.
Desktop (please complete the following information):
- OS: MacOS 15.3.2 (24D81)
- Node Version v18.20.7
- RNV Version 1.9.0
Additional context
Sorry for the long, contrived issue but I'm absolutely at my wits end here. Been at it for 6 hours trying to work through the issues. Any guidance is appreciated!