Releases: Soomgo-Mobile/react-native-code-push
v12.2.0
Add --hash-calc option to the release command
When generating a CodePush bundle manually instead of using npx code-push bundle, the bundle hash needs to be computed so it can be stored in the ReleaseHistory metadata.
The new --hash-calc option performs this calculation.
For example, The command below uploads the CodePush bundle located in build/BundleOutput and includes the corresponding packageHash value in the ReleaseHistory metadata :
npx code-push release -b 1.0.0 -v 1.1.0 --skip-bundle true --hash-calc true \
--output-path build \
--output-bundle-dir bundleOutputWhat's Changed
Full Changelog: v12.1.5...v12.2.0
v12.1.5
Important Fix for Android Apps 🙏
This release addresses the following issues:
- After downloading a new update, the bundle was not loaded by calling the
reloadmethod. The app had to be restarted for the update to take effect. - When the bundle was removed by calling the
clearUpdatesmethod and then thereloadmethod was invoked, the app would crash.
This release breaks Android builds for React Native 0.76 or lower.
If you are using React Native 0.76 or lower, please use version 12.0.2 of this library.
Testing will be strengthened to prevent similar issues in the future.
Apologies for the inconvenience caused.
What's Changed
Full Changelog: v12.1.4...v12.1.5
v12.1.4
v12.1.2
v12.1.1
v12.1.0
🚀 Support React Native 0.82
Fixed issues with bundle restart and update not working properly on Android.
What's Changed
- chore(Example): Updated the example app to use the local package source by @floydkim in #90
- refactor: migrate cli tools code to TypeScript by @floydkim in #91
- chore: move source files to 'src' directory by @floydkim in #92
- chore(Example): Add Firebase configuration example by @jogiking in #93
- fix(Android): Support RN 0.82 by @floydkim in #95
New Contributors
Full Changelog: v12.0.2...v12.1.0
v12.0.2
v12.0.1
What’s New ✨
- Easier native setup with
npx code-push initcommand for iOS/Android code changes. - Updates now run an integrity check after download and unzip to detect tampering or missing data.
Breaking Changes
- You should remove the line
apply from: "...../codepush.gradle"fromandroid/app/build.gradlefile. - Minimum iOS version is now 15.5.
ignoreFailedUpdatesis no longer supported inCodePushOptionstype. #84
What's Changed
- mod(android)!: remove codepush.gradle and related native code by @floydkim in #78
- Sync to upstream (react-native-code-push@9.0.1) by @changwoolab in #15
- mod(expo)!: Remove codepush.gradle related logic from Expo plugin by @floydkim in #79
- feat(CLI): add initialization command for CodePush setup by @floydkim in #82
- fix: clarify usage of ignoreFailedUpdates in CodePushOptions by @floydkim in #84
- mod(Runtime): Prevent corrupted updates by verifying package hash by @floydkim in #86
Full Changelog: v11.0.0...v12.0.1
v11.1.0
🚀 Client-side Rollout Percentage Support
When running the release or update-history commands of the npx code-push tool, you can use the --rollout option to specify a rollout percentage between 0 and 100.
Until the app is deleted or storage is cleared, users remain in the same rollout group.
Also, if the rollout percentage is reduced, users who fall outside the new target will have their rollout canceled and rollback to the previous latest version.
What's Changed
- feat(Runtime): Add Rollout Percentage functionality by @chiraag918 in #81
- feat(Runtime): Allow rollout cancellation and simplify decision logic by @floydkim in #83
New Contributors
- @chiraag918 made their first contribution in #81
Full Changelog: v11.0.0...v11.1.0
v11.0.0
- React Native 0.80 support
- [BREAKING] Drop support for React Native 0.73
What's Changed
- fix(Native): Android build error with React Native 0.80 by @gag0712 in #75
- mod!: simplify and remove legacy code for RN 0.73 by @floydkim in #77
New Contributors
Full Changelog: v10.0.0...v11.0.0