You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add buildNumber change detection and getBuiltinBundleVersion API (#38)
* feat: add buildNumber change detection, getBuiltinBundleVersion API, and bump to 1.1.40
- Detect native buildNumber changes and clear hot-update bundle data to fall back to builtin bundle
- Add getNativeBuildNumber() and getBuiltinBundleVersion() TS interfaces with iOS/Android implementations
- Clear both nativeVersion and nativeBuildNumber prefs on version or buildNumber change
- Extract clearNativeVersionPrefs helper to avoid hardcoded strings
- Add BUNDLE_VERSION env var injection in example app (Android meta-data + iOS Info.plist)
- Add example buttons for new APIs in BundleUpdateTestPage
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* 1.1.40
* fix(ios): guard against empty stored buildNumber to match Android behavior
* chore: bump all @onekeyfe native packages to 1.1.41
* fix(android): use get().toString() for numeric meta-data in getBuiltinBundleVersion
* docs: update CHANGELOG for 1.1.41
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,19 @@
2
2
3
3
All notable changes to this project will be documented in this file.
4
4
5
+
## [1.1.41] - 2026-03-17
6
+
7
+
### Features
8
+
-**bundle-update**: Add buildNumber change detection in `getJsBundlePath()` — clears hot-update bundle data and falls back to builtin JS bundle when native buildNumber changes
9
+
-**bundle-update**: Add `getNativeBuildNumber()` and `getBuiltinBundleVersion()` APIs on both iOS and Android
10
+
11
+
### Bug Fixes
12
+
-**bundle-update (iOS)**: Guard against empty stored buildNumber to match Android behavior in build number change detection
13
+
-**bundle-update (Android)**: Use `get().toString()` instead of `getString()` in `getBuiltinBundleVersion()` to handle numeric meta-data values that AAPT2 stores as Integer
Copy file name to clipboardExpand all lines: native-modules/react-native-bundle-update/android/src/main/java/com/margelo/nitro/reactnativebundleupdate/ReactNativeBundleUpdate.kt
0 commit comments