@onekeyfe/react-native-bundle-update 3.0.81 → 3.0.82

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/nitrogen/generated/android/c++/JAscFileInfo.hpp +2 -2
  2. package/nitrogen/generated/android/c++/JBundleDownloadASCParams.hpp +2 -2
  3. package/nitrogen/generated/android/c++/JBundleDownloadEvent.hpp +2 -2
  4. package/nitrogen/generated/android/c++/JBundleDownloadParams.hpp +2 -2
  5. package/nitrogen/generated/android/c++/JBundleDownloadResult.hpp +2 -2
  6. package/nitrogen/generated/android/c++/JBundleInstallParams.hpp +2 -2
  7. package/nitrogen/generated/android/c++/JBundleSwitchParams.hpp +2 -2
  8. package/nitrogen/generated/android/c++/JBundleVerifyASCParams.hpp +2 -2
  9. package/nitrogen/generated/android/c++/JBundleVerifyParams.hpp +2 -2
  10. package/nitrogen/generated/android/c++/JFallbackBundleInfo.hpp +2 -2
  11. package/nitrogen/generated/android/c++/JFunc_void_BundleDownloadEvent.hpp +3 -3
  12. package/nitrogen/generated/android/c++/JHybridReactNativeBundleUpdateSpec.cpp +56 -54
  13. package/nitrogen/generated/android/c++/JHybridReactNativeBundleUpdateSpec.hpp +20 -22
  14. package/nitrogen/generated/android/c++/JLocalBundleInfo.hpp +2 -2
  15. package/nitrogen/generated/android/c++/JTestResult.hpp +2 -2
  16. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/AscFileInfo.kt +2 -2
  17. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/BundleDownloadASCParams.kt +2 -2
  18. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/BundleDownloadEvent.kt +2 -2
  19. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/BundleDownloadParams.kt +2 -2
  20. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/BundleDownloadResult.kt +2 -2
  21. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/BundleInstallParams.kt +2 -2
  22. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/BundleSwitchParams.kt +2 -2
  23. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/BundleVerifyASCParams.kt +2 -2
  24. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/BundleVerifyParams.kt +2 -2
  25. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/FallbackBundleInfo.kt +2 -2
  26. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/Func_void_BundleDownloadEvent.kt +1 -1
  27. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/HybridReactNativeBundleUpdateSpec.kt +16 -19
  28. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/LocalBundleInfo.kt +2 -2
  29. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/TestResult.kt +2 -2
  30. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/reactnativebundleupdateOnLoad.kt +1 -1
  31. package/nitrogen/generated/android/reactnativebundleupdate+autolinking.cmake +1 -1
  32. package/nitrogen/generated/android/reactnativebundleupdate+autolinking.gradle +1 -1
  33. package/nitrogen/generated/android/reactnativebundleupdateOnLoad.cpp +28 -18
  34. package/nitrogen/generated/android/reactnativebundleupdateOnLoad.hpp +14 -5
  35. package/nitrogen/generated/ios/ReactNativeBundleUpdate+autolinking.rb +2 -2
  36. package/nitrogen/generated/ios/ReactNativeBundleUpdate-Swift-Cxx-Bridge.cpp +1 -1
  37. package/nitrogen/generated/ios/ReactNativeBundleUpdate-Swift-Cxx-Bridge.hpp +1 -1
  38. package/nitrogen/generated/ios/ReactNativeBundleUpdate-Swift-Cxx-Umbrella.hpp +1 -1
  39. package/nitrogen/generated/ios/ReactNativeBundleUpdateAutolinking.mm +1 -1
  40. package/nitrogen/generated/ios/ReactNativeBundleUpdateAutolinking.swift +9 -8
  41. package/nitrogen/generated/ios/c++/HybridReactNativeBundleUpdateSpecSwift.cpp +1 -1
  42. package/nitrogen/generated/ios/c++/HybridReactNativeBundleUpdateSpecSwift.hpp +7 -1
  43. package/nitrogen/generated/ios/swift/AscFileInfo.swift +7 -26
  44. package/nitrogen/generated/ios/swift/BundleDownloadASCParams.swift +13 -50
  45. package/nitrogen/generated/ios/swift/BundleDownloadEvent.swift +7 -26
  46. package/nitrogen/generated/ios/swift/BundleDownloadParams.swift +11 -42
  47. package/nitrogen/generated/ios/swift/BundleDownloadResult.swift +11 -42
  48. package/nitrogen/generated/ios/swift/BundleInstallParams.swift +9 -34
  49. package/nitrogen/generated/ios/swift/BundleSwitchParams.swift +7 -26
  50. package/nitrogen/generated/ios/swift/BundleVerifyASCParams.swift +11 -42
  51. package/nitrogen/generated/ios/swift/BundleVerifyParams.swift +9 -34
  52. package/nitrogen/generated/ios/swift/FallbackBundleInfo.swift +7 -26
  53. package/nitrogen/generated/ios/swift/Func_void.swift +1 -2
  54. package/nitrogen/generated/ios/swift/Func_void_BundleDownloadEvent.swift +1 -2
  55. package/nitrogen/generated/ios/swift/Func_void_BundleDownloadResult.swift +1 -2
  56. package/nitrogen/generated/ios/swift/Func_void_TestResult.swift +1 -2
  57. package/nitrogen/generated/ios/swift/Func_void_bool.swift +1 -2
  58. package/nitrogen/generated/ios/swift/Func_void_double.swift +1 -2
  59. package/nitrogen/generated/ios/swift/Func_void_std__exception_ptr.swift +1 -2
  60. package/nitrogen/generated/ios/swift/Func_void_std__string.swift +1 -2
  61. package/nitrogen/generated/ios/swift/Func_void_std__vector_AscFileInfo_.swift +1 -2
  62. package/nitrogen/generated/ios/swift/Func_void_std__vector_FallbackBundleInfo_.swift +1 -2
  63. package/nitrogen/generated/ios/swift/Func_void_std__vector_LocalBundleInfo_.swift +1 -2
  64. package/nitrogen/generated/ios/swift/HybridReactNativeBundleUpdateSpec.swift +3 -4
  65. package/nitrogen/generated/ios/swift/HybridReactNativeBundleUpdateSpec_cxx.swift +9 -2
  66. package/nitrogen/generated/ios/swift/LocalBundleInfo.swift +5 -18
  67. package/nitrogen/generated/ios/swift/TestResult.swift +5 -18
  68. package/nitrogen/generated/shared/c++/AscFileInfo.hpp +19 -11
  69. package/nitrogen/generated/shared/c++/BundleDownloadASCParams.hpp +28 -20
  70. package/nitrogen/generated/shared/c++/BundleDownloadEvent.hpp +19 -11
  71. package/nitrogen/generated/shared/c++/BundleDownloadParams.hpp +25 -17
  72. package/nitrogen/generated/shared/c++/BundleDownloadResult.hpp +25 -17
  73. package/nitrogen/generated/shared/c++/BundleInstallParams.hpp +22 -14
  74. package/nitrogen/generated/shared/c++/BundleSwitchParams.hpp +19 -11
  75. package/nitrogen/generated/shared/c++/BundleVerifyASCParams.hpp +25 -17
  76. package/nitrogen/generated/shared/c++/BundleVerifyParams.hpp +22 -14
  77. package/nitrogen/generated/shared/c++/FallbackBundleInfo.hpp +19 -11
  78. package/nitrogen/generated/shared/c++/HybridReactNativeBundleUpdateSpec.cpp +1 -1
  79. package/nitrogen/generated/shared/c++/HybridReactNativeBundleUpdateSpec.hpp +1 -1
  80. package/nitrogen/generated/shared/c++/LocalBundleInfo.hpp +16 -8
  81. package/nitrogen/generated/shared/c++/TestResult.hpp +16 -8
  82. package/package.json +4 -4
@@ -2,7 +2,7 @@
2
2
  /// LocalBundleInfo.hpp
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2026 Marc Rousavy @ Margelo
5
+ /// Copyright © Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
8
  #pragma once
@@ -22,6 +22,11 @@
22
22
  #else
23
23
  #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
24
24
  #endif
25
+ #if __has_include(<NitroModules/PropNameIDCache.hpp>)
26
+ #include <NitroModules/PropNameIDCache.hpp>
27
+ #else
28
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
29
+ #endif
25
30
 
26
31
 
27
32
 
@@ -32,7 +37,7 @@ namespace margelo::nitro::reactnativebundleupdate {
32
37
  /**
33
38
  * A struct which can be represented as a JavaScript object (LocalBundleInfo).
34
39
  */
35
- struct LocalBundleInfo {
40
+ struct LocalBundleInfo final {
36
41
  public:
37
42
  std::string appVersion SWIFT_PRIVATE;
38
43
  std::string bundleVersion SWIFT_PRIVATE;
@@ -40,6 +45,9 @@ namespace margelo::nitro::reactnativebundleupdate {
40
45
  public:
41
46
  LocalBundleInfo() = default;
42
47
  explicit LocalBundleInfo(std::string appVersion, std::string bundleVersion): appVersion(appVersion), bundleVersion(bundleVersion) {}
48
+
49
+ public:
50
+ friend bool operator==(const LocalBundleInfo& lhs, const LocalBundleInfo& rhs) = default;
43
51
  };
44
52
 
45
53
  } // namespace margelo::nitro::reactnativebundleupdate
@@ -52,14 +60,14 @@ namespace margelo::nitro {
52
60
  static inline margelo::nitro::reactnativebundleupdate::LocalBundleInfo fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
53
61
  jsi::Object obj = arg.asObject(runtime);
54
62
  return margelo::nitro::reactnativebundleupdate::LocalBundleInfo(
55
- JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "appVersion")),
56
- JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "bundleVersion"))
63
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "appVersion"))),
64
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "bundleVersion")))
57
65
  );
58
66
  }
59
67
  static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::reactnativebundleupdate::LocalBundleInfo& arg) {
60
68
  jsi::Object obj(runtime);
61
- obj.setProperty(runtime, "appVersion", JSIConverter<std::string>::toJSI(runtime, arg.appVersion));
62
- obj.setProperty(runtime, "bundleVersion", JSIConverter<std::string>::toJSI(runtime, arg.bundleVersion));
69
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "appVersion"), JSIConverter<std::string>::toJSI(runtime, arg.appVersion));
70
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "bundleVersion"), JSIConverter<std::string>::toJSI(runtime, arg.bundleVersion));
63
71
  return obj;
64
72
  }
65
73
  static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
@@ -70,8 +78,8 @@ namespace margelo::nitro {
70
78
  if (!nitro::isPlainObject(runtime, obj)) {
71
79
  return false;
72
80
  }
73
- if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "appVersion"))) return false;
74
- if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "bundleVersion"))) return false;
81
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "appVersion")))) return false;
82
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "bundleVersion")))) return false;
75
83
  return true;
76
84
  }
77
85
  };
@@ -2,7 +2,7 @@
2
2
  /// TestResult.hpp
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2026 Marc Rousavy @ Margelo
5
+ /// Copyright © Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
8
  #pragma once
@@ -22,6 +22,11 @@
22
22
  #else
23
23
  #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
24
24
  #endif
25
+ #if __has_include(<NitroModules/PropNameIDCache.hpp>)
26
+ #include <NitroModules/PropNameIDCache.hpp>
27
+ #else
28
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
29
+ #endif
25
30
 
26
31
 
27
32
 
@@ -32,7 +37,7 @@ namespace margelo::nitro::reactnativebundleupdate {
32
37
  /**
33
38
  * A struct which can be represented as a JavaScript object (TestResult).
34
39
  */
35
- struct TestResult {
40
+ struct TestResult final {
36
41
  public:
37
42
  bool success SWIFT_PRIVATE;
38
43
  std::string message SWIFT_PRIVATE;
@@ -40,6 +45,9 @@ namespace margelo::nitro::reactnativebundleupdate {
40
45
  public:
41
46
  TestResult() = default;
42
47
  explicit TestResult(bool success, std::string message): success(success), message(message) {}
48
+
49
+ public:
50
+ friend bool operator==(const TestResult& lhs, const TestResult& rhs) = default;
43
51
  };
44
52
 
45
53
  } // namespace margelo::nitro::reactnativebundleupdate
@@ -52,14 +60,14 @@ namespace margelo::nitro {
52
60
  static inline margelo::nitro::reactnativebundleupdate::TestResult fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
53
61
  jsi::Object obj = arg.asObject(runtime);
54
62
  return margelo::nitro::reactnativebundleupdate::TestResult(
55
- JSIConverter<bool>::fromJSI(runtime, obj.getProperty(runtime, "success")),
56
- JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "message"))
63
+ JSIConverter<bool>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "success"))),
64
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "message")))
57
65
  );
58
66
  }
59
67
  static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::reactnativebundleupdate::TestResult& arg) {
60
68
  jsi::Object obj(runtime);
61
- obj.setProperty(runtime, "success", JSIConverter<bool>::toJSI(runtime, arg.success));
62
- obj.setProperty(runtime, "message", JSIConverter<std::string>::toJSI(runtime, arg.message));
69
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "success"), JSIConverter<bool>::toJSI(runtime, arg.success));
70
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "message"), JSIConverter<std::string>::toJSI(runtime, arg.message));
63
71
  return obj;
64
72
  }
65
73
  static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
@@ -70,8 +78,8 @@ namespace margelo::nitro {
70
78
  if (!nitro::isPlainObject(runtime, obj)) {
71
79
  return false;
72
80
  }
73
- if (!JSIConverter<bool>::canConvert(runtime, obj.getProperty(runtime, "success"))) return false;
74
- if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "message"))) return false;
81
+ if (!JSIConverter<bool>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "success")))) return false;
82
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "message")))) return false;
75
83
  return true;
76
84
  }
77
85
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/react-native-bundle-update",
3
- "version": "3.0.81",
3
+ "version": "3.0.82",
4
4
  "description": "react-native-bundle-update",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",
@@ -78,12 +78,12 @@
78
78
  "eslint-plugin-prettier": "^5.5.4",
79
79
  "jest": "^29.7.0",
80
80
  "lefthook": "^2.0.3",
81
- "nitrogen": "0.31.10",
81
+ "nitrogen": "0.35.2",
82
82
  "prettier": "^2.8.8",
83
83
  "react": "19.2.0",
84
84
  "react-native": "patch:react-native@npm%3A0.83.0#~/.yarn/patches/react-native-npm-0.83.0-577d0f2d83.patch",
85
85
  "react-native-builder-bob": "^0.40.13",
86
- "react-native-nitro-modules": "0.33.2",
86
+ "react-native-nitro-modules": "0.35.2",
87
87
  "release-it": "^19.0.4",
88
88
  "turbo": "^2.5.6",
89
89
  "typescript": "^5.9.2"
@@ -91,7 +91,7 @@
91
91
  "peerDependencies": {
92
92
  "react": "*",
93
93
  "react-native": "*",
94
- "react-native-nitro-modules": "0.33.2"
94
+ "react-native-nitro-modules": "0.35.2"
95
95
  },
96
96
  "react-native-builder-bob": {
97
97
  "source": "src",