@onekeyfe/react-native-bundle-update 1.1.21

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 (130) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +36 -0
  3. package/ReactNativeBundleUpdate.podspec +34 -0
  4. package/android/CMakeLists.txt +24 -0
  5. package/android/build.gradle +139 -0
  6. package/android/gradle.properties +4 -0
  7. package/android/src/main/AndroidManifest.xml +1 -0
  8. package/android/src/main/cpp/cpp-adapter.cpp +6 -0
  9. package/android/src/main/java/com/margelo/nitro/reactnativebundleupdate/ReactNativeBundleUpdate.kt +1409 -0
  10. package/android/src/main/java/com/margelo/nitro/reactnativebundleupdate/ReactNativeBundleUpdatePackage.kt +24 -0
  11. package/ios/Frameworks/Gopenpgp.xcframework/Info.plist +52 -0
  12. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64/Gopenpgp.framework/Gopenpgp +0 -0
  13. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64/Gopenpgp.framework/Headers/Armor.objc.h +96 -0
  14. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64/Gopenpgp.framework/Headers/Constants.objc.h +197 -0
  15. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64/Gopenpgp.framework/Headers/Crypto.objc.h +1963 -0
  16. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64/Gopenpgp.framework/Headers/Gopenpgp.h +23 -0
  17. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64/Gopenpgp.framework/Headers/Mime.objc.h +59 -0
  18. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64/Gopenpgp.framework/Headers/Mobile.objc.h +252 -0
  19. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64/Gopenpgp.framework/Headers/Profile.objc.h +107 -0
  20. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64/Gopenpgp.framework/Headers/Universe.objc.h +29 -0
  21. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64/Gopenpgp.framework/Headers/ref.h +35 -0
  22. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64/Gopenpgp.framework/Info.plist +20 -0
  23. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64/Gopenpgp.framework/Modules/module.modulemap +13 -0
  24. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64_x86_64-simulator/Gopenpgp.framework/Gopenpgp +0 -0
  25. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64_x86_64-simulator/Gopenpgp.framework/Headers/Armor.objc.h +96 -0
  26. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64_x86_64-simulator/Gopenpgp.framework/Headers/Constants.objc.h +197 -0
  27. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64_x86_64-simulator/Gopenpgp.framework/Headers/Crypto.objc.h +1963 -0
  28. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64_x86_64-simulator/Gopenpgp.framework/Headers/Gopenpgp.h +23 -0
  29. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64_x86_64-simulator/Gopenpgp.framework/Headers/Mime.objc.h +59 -0
  30. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64_x86_64-simulator/Gopenpgp.framework/Headers/Mobile.objc.h +252 -0
  31. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64_x86_64-simulator/Gopenpgp.framework/Headers/Profile.objc.h +107 -0
  32. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64_x86_64-simulator/Gopenpgp.framework/Headers/Universe.objc.h +29 -0
  33. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64_x86_64-simulator/Gopenpgp.framework/Headers/ref.h +35 -0
  34. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64_x86_64-simulator/Gopenpgp.framework/Info.plist +20 -0
  35. package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64_x86_64-simulator/Gopenpgp.framework/Modules/module.modulemap +13 -0
  36. package/ios/ReactNativeBundleUpdate.swift +1338 -0
  37. package/lib/module/ReactNativeBundleUpdate.nitro.js +4 -0
  38. package/lib/module/ReactNativeBundleUpdate.nitro.js.map +1 -0
  39. package/lib/module/index.js +6 -0
  40. package/lib/module/index.js.map +1 -0
  41. package/lib/module/package.json +1 -0
  42. package/lib/typescript/package.json +1 -0
  43. package/lib/typescript/src/ReactNativeBundleUpdate.nitro.d.ts +101 -0
  44. package/lib/typescript/src/ReactNativeBundleUpdate.nitro.d.ts.map +1 -0
  45. package/lib/typescript/src/index.d.ts +4 -0
  46. package/lib/typescript/src/index.d.ts.map +1 -0
  47. package/nitro.json +17 -0
  48. package/nitrogen/generated/android/c++/JAscFileInfo.hpp +65 -0
  49. package/nitrogen/generated/android/c++/JBundleDownloadASCParams.hpp +77 -0
  50. package/nitrogen/generated/android/c++/JBundleDownloadEvent.hpp +65 -0
  51. package/nitrogen/generated/android/c++/JBundleDownloadParams.hpp +73 -0
  52. package/nitrogen/generated/android/c++/JBundleDownloadResult.hpp +73 -0
  53. package/nitrogen/generated/android/c++/JBundleInstallParams.hpp +69 -0
  54. package/nitrogen/generated/android/c++/JBundleSwitchParams.hpp +65 -0
  55. package/nitrogen/generated/android/c++/JBundleVerifyASCParams.hpp +73 -0
  56. package/nitrogen/generated/android/c++/JBundleVerifyParams.hpp +69 -0
  57. package/nitrogen/generated/android/c++/JFallbackBundleInfo.hpp +65 -0
  58. package/nitrogen/generated/android/c++/JFunc_void_BundleDownloadEvent.hpp +78 -0
  59. package/nitrogen/generated/android/c++/JHybridReactNativeBundleUpdateSpec.cpp +486 -0
  60. package/nitrogen/generated/android/c++/JHybridReactNativeBundleUpdateSpec.hpp +89 -0
  61. package/nitrogen/generated/android/c++/JLocalBundleInfo.hpp +61 -0
  62. package/nitrogen/generated/android/c++/JTestResult.hpp +61 -0
  63. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/AscFileInfo.kt +44 -0
  64. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/BundleDownloadASCParams.kt +53 -0
  65. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/BundleDownloadEvent.kt +44 -0
  66. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/BundleDownloadParams.kt +50 -0
  67. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/BundleDownloadResult.kt +50 -0
  68. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/BundleInstallParams.kt +47 -0
  69. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/BundleSwitchParams.kt +44 -0
  70. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/BundleVerifyASCParams.kt +50 -0
  71. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/BundleVerifyParams.kt +47 -0
  72. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/FallbackBundleInfo.kt +44 -0
  73. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/Func_void_BundleDownloadEvent.kt +80 -0
  74. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/HybridReactNativeBundleUpdateSpec.kt +159 -0
  75. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/LocalBundleInfo.kt +41 -0
  76. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/TestResult.kt +41 -0
  77. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/reactnativebundleupdateOnLoad.kt +35 -0
  78. package/nitrogen/generated/android/reactnativebundleupdate+autolinking.cmake +81 -0
  79. package/nitrogen/generated/android/reactnativebundleupdate+autolinking.gradle +27 -0
  80. package/nitrogen/generated/android/reactnativebundleupdateOnLoad.cpp +46 -0
  81. package/nitrogen/generated/android/reactnativebundleupdateOnLoad.hpp +25 -0
  82. package/nitrogen/generated/ios/ReactNativeBundleUpdate+autolinking.rb +60 -0
  83. package/nitrogen/generated/ios/ReactNativeBundleUpdate-Swift-Cxx-Bridge.cpp +113 -0
  84. package/nitrogen/generated/ios/ReactNativeBundleUpdate-Swift-Cxx-Bridge.hpp +513 -0
  85. package/nitrogen/generated/ios/ReactNativeBundleUpdate-Swift-Cxx-Umbrella.hpp +83 -0
  86. package/nitrogen/generated/ios/ReactNativeBundleUpdateAutolinking.mm +33 -0
  87. package/nitrogen/generated/ios/ReactNativeBundleUpdateAutolinking.swift +25 -0
  88. package/nitrogen/generated/ios/c++/HybridReactNativeBundleUpdateSpecSwift.cpp +11 -0
  89. package/nitrogen/generated/ios/c++/HybridReactNativeBundleUpdateSpecSwift.hpp +304 -0
  90. package/nitrogen/generated/ios/swift/AscFileInfo.swift +58 -0
  91. package/nitrogen/generated/ios/swift/BundleDownloadASCParams.swift +91 -0
  92. package/nitrogen/generated/ios/swift/BundleDownloadEvent.swift +58 -0
  93. package/nitrogen/generated/ios/swift/BundleDownloadParams.swift +80 -0
  94. package/nitrogen/generated/ios/swift/BundleDownloadResult.swift +80 -0
  95. package/nitrogen/generated/ios/swift/BundleInstallParams.swift +69 -0
  96. package/nitrogen/generated/ios/swift/BundleSwitchParams.swift +58 -0
  97. package/nitrogen/generated/ios/swift/BundleVerifyASCParams.swift +80 -0
  98. package/nitrogen/generated/ios/swift/BundleVerifyParams.swift +69 -0
  99. package/nitrogen/generated/ios/swift/FallbackBundleInfo.swift +58 -0
  100. package/nitrogen/generated/ios/swift/Func_void.swift +47 -0
  101. package/nitrogen/generated/ios/swift/Func_void_BundleDownloadEvent.swift +47 -0
  102. package/nitrogen/generated/ios/swift/Func_void_BundleDownloadResult.swift +47 -0
  103. package/nitrogen/generated/ios/swift/Func_void_TestResult.swift +47 -0
  104. package/nitrogen/generated/ios/swift/Func_void_bool.swift +47 -0
  105. package/nitrogen/generated/ios/swift/Func_void_std__exception_ptr.swift +47 -0
  106. package/nitrogen/generated/ios/swift/Func_void_std__string.swift +47 -0
  107. package/nitrogen/generated/ios/swift/Func_void_std__vector_AscFileInfo_.swift +47 -0
  108. package/nitrogen/generated/ios/swift/Func_void_std__vector_FallbackBundleInfo_.swift +47 -0
  109. package/nitrogen/generated/ios/swift/Func_void_std__vector_LocalBundleInfo_.swift +47 -0
  110. package/nitrogen/generated/ios/swift/HybridReactNativeBundleUpdateSpec.swift +80 -0
  111. package/nitrogen/generated/ios/swift/HybridReactNativeBundleUpdateSpec_cxx.swift +595 -0
  112. package/nitrogen/generated/ios/swift/LocalBundleInfo.swift +47 -0
  113. package/nitrogen/generated/ios/swift/TestResult.swift +47 -0
  114. package/nitrogen/generated/shared/c++/AscFileInfo.hpp +83 -0
  115. package/nitrogen/generated/shared/c++/BundleDownloadASCParams.hpp +95 -0
  116. package/nitrogen/generated/shared/c++/BundleDownloadEvent.hpp +83 -0
  117. package/nitrogen/generated/shared/c++/BundleDownloadParams.hpp +91 -0
  118. package/nitrogen/generated/shared/c++/BundleDownloadResult.hpp +91 -0
  119. package/nitrogen/generated/shared/c++/BundleInstallParams.hpp +87 -0
  120. package/nitrogen/generated/shared/c++/BundleSwitchParams.hpp +83 -0
  121. package/nitrogen/generated/shared/c++/BundleVerifyASCParams.hpp +91 -0
  122. package/nitrogen/generated/shared/c++/BundleVerifyParams.hpp +87 -0
  123. package/nitrogen/generated/shared/c++/FallbackBundleInfo.hpp +83 -0
  124. package/nitrogen/generated/shared/c++/HybridReactNativeBundleUpdateSpec.cpp +45 -0
  125. package/nitrogen/generated/shared/c++/HybridReactNativeBundleUpdateSpec.hpp +124 -0
  126. package/nitrogen/generated/shared/c++/LocalBundleInfo.hpp +79 -0
  127. package/nitrogen/generated/shared/c++/TestResult.hpp +79 -0
  128. package/package.json +169 -0
  129. package/src/ReactNativeBundleUpdate.nitro.ts +143 -0
  130. package/src/index.tsx +8 -0
@@ -0,0 +1,513 @@
1
+ ///
2
+ /// ReactNativeBundleUpdate-Swift-Cxx-Bridge.hpp
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © 2026 Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ #pragma once
9
+
10
+ // Forward declarations of C++ defined types
11
+ // Forward declaration of `AscFileInfo` to properly resolve imports.
12
+ namespace margelo::nitro::reactnativebundleupdate { struct AscFileInfo; }
13
+ // Forward declaration of `BundleDownloadEvent` to properly resolve imports.
14
+ namespace margelo::nitro::reactnativebundleupdate { struct BundleDownloadEvent; }
15
+ // Forward declaration of `BundleDownloadResult` to properly resolve imports.
16
+ namespace margelo::nitro::reactnativebundleupdate { struct BundleDownloadResult; }
17
+ // Forward declaration of `FallbackBundleInfo` to properly resolve imports.
18
+ namespace margelo::nitro::reactnativebundleupdate { struct FallbackBundleInfo; }
19
+ // Forward declaration of `HybridReactNativeBundleUpdateSpec` to properly resolve imports.
20
+ namespace margelo::nitro::reactnativebundleupdate { class HybridReactNativeBundleUpdateSpec; }
21
+ // Forward declaration of `LocalBundleInfo` to properly resolve imports.
22
+ namespace margelo::nitro::reactnativebundleupdate { struct LocalBundleInfo; }
23
+ // Forward declaration of `TestResult` to properly resolve imports.
24
+ namespace margelo::nitro::reactnativebundleupdate { struct TestResult; }
25
+
26
+ // Forward declarations of Swift defined types
27
+ // Forward declaration of `HybridReactNativeBundleUpdateSpec_cxx` to properly resolve imports.
28
+ namespace ReactNativeBundleUpdate { class HybridReactNativeBundleUpdateSpec_cxx; }
29
+
30
+ // Include C++ defined types
31
+ #include "AscFileInfo.hpp"
32
+ #include "BundleDownloadEvent.hpp"
33
+ #include "BundleDownloadResult.hpp"
34
+ #include "FallbackBundleInfo.hpp"
35
+ #include "HybridReactNativeBundleUpdateSpec.hpp"
36
+ #include "LocalBundleInfo.hpp"
37
+ #include "TestResult.hpp"
38
+ #include <NitroModules/Promise.hpp>
39
+ #include <NitroModules/PromiseHolder.hpp>
40
+ #include <NitroModules/Result.hpp>
41
+ #include <exception>
42
+ #include <functional>
43
+ #include <memory>
44
+ #include <string>
45
+ #include <vector>
46
+
47
+ /**
48
+ * Contains specialized versions of C++ templated types so they can be accessed from Swift,
49
+ * as well as helper functions to interact with those C++ types from Swift.
50
+ */
51
+ namespace margelo::nitro::reactnativebundleupdate::bridge::swift {
52
+
53
+ // pragma MARK: std::shared_ptr<Promise<BundleDownloadResult>>
54
+ /**
55
+ * Specialized version of `std::shared_ptr<Promise<BundleDownloadResult>>`.
56
+ */
57
+ using std__shared_ptr_Promise_BundleDownloadResult__ = std::shared_ptr<Promise<BundleDownloadResult>>;
58
+ inline std::shared_ptr<Promise<BundleDownloadResult>> create_std__shared_ptr_Promise_BundleDownloadResult__() noexcept {
59
+ return Promise<BundleDownloadResult>::create();
60
+ }
61
+ inline PromiseHolder<BundleDownloadResult> wrap_std__shared_ptr_Promise_BundleDownloadResult__(std::shared_ptr<Promise<BundleDownloadResult>> promise) noexcept {
62
+ return PromiseHolder<BundleDownloadResult>(std::move(promise));
63
+ }
64
+
65
+ // pragma MARK: std::function<void(const BundleDownloadResult& /* result */)>
66
+ /**
67
+ * Specialized version of `std::function<void(const BundleDownloadResult&)>`.
68
+ */
69
+ using Func_void_BundleDownloadResult = std::function<void(const BundleDownloadResult& /* result */)>;
70
+ /**
71
+ * Wrapper class for a `std::function<void(const BundleDownloadResult& / * result * /)>`, this can be used from Swift.
72
+ */
73
+ class Func_void_BundleDownloadResult_Wrapper final {
74
+ public:
75
+ explicit Func_void_BundleDownloadResult_Wrapper(std::function<void(const BundleDownloadResult& /* result */)>&& func): _function(std::make_unique<std::function<void(const BundleDownloadResult& /* result */)>>(std::move(func))) {}
76
+ inline void call(BundleDownloadResult result) const noexcept {
77
+ _function->operator()(result);
78
+ }
79
+ private:
80
+ std::unique_ptr<std::function<void(const BundleDownloadResult& /* result */)>> _function;
81
+ } SWIFT_NONCOPYABLE;
82
+ Func_void_BundleDownloadResult create_Func_void_BundleDownloadResult(void* NON_NULL swiftClosureWrapper) noexcept;
83
+ inline Func_void_BundleDownloadResult_Wrapper wrap_Func_void_BundleDownloadResult(Func_void_BundleDownloadResult value) noexcept {
84
+ return Func_void_BundleDownloadResult_Wrapper(std::move(value));
85
+ }
86
+
87
+ // pragma MARK: std::function<void(const std::exception_ptr& /* error */)>
88
+ /**
89
+ * Specialized version of `std::function<void(const std::exception_ptr&)>`.
90
+ */
91
+ using Func_void_std__exception_ptr = std::function<void(const std::exception_ptr& /* error */)>;
92
+ /**
93
+ * Wrapper class for a `std::function<void(const std::exception_ptr& / * error * /)>`, this can be used from Swift.
94
+ */
95
+ class Func_void_std__exception_ptr_Wrapper final {
96
+ public:
97
+ explicit Func_void_std__exception_ptr_Wrapper(std::function<void(const std::exception_ptr& /* error */)>&& func): _function(std::make_unique<std::function<void(const std::exception_ptr& /* error */)>>(std::move(func))) {}
98
+ inline void call(std::exception_ptr error) const noexcept {
99
+ _function->operator()(error);
100
+ }
101
+ private:
102
+ std::unique_ptr<std::function<void(const std::exception_ptr& /* error */)>> _function;
103
+ } SWIFT_NONCOPYABLE;
104
+ Func_void_std__exception_ptr create_Func_void_std__exception_ptr(void* NON_NULL swiftClosureWrapper) noexcept;
105
+ inline Func_void_std__exception_ptr_Wrapper wrap_Func_void_std__exception_ptr(Func_void_std__exception_ptr value) noexcept {
106
+ return Func_void_std__exception_ptr_Wrapper(std::move(value));
107
+ }
108
+
109
+ // pragma MARK: std::shared_ptr<Promise<void>>
110
+ /**
111
+ * Specialized version of `std::shared_ptr<Promise<void>>`.
112
+ */
113
+ using std__shared_ptr_Promise_void__ = std::shared_ptr<Promise<void>>;
114
+ inline std::shared_ptr<Promise<void>> create_std__shared_ptr_Promise_void__() noexcept {
115
+ return Promise<void>::create();
116
+ }
117
+ inline PromiseHolder<void> wrap_std__shared_ptr_Promise_void__(std::shared_ptr<Promise<void>> promise) noexcept {
118
+ return PromiseHolder<void>(std::move(promise));
119
+ }
120
+
121
+ // pragma MARK: std::function<void()>
122
+ /**
123
+ * Specialized version of `std::function<void()>`.
124
+ */
125
+ using Func_void = std::function<void()>;
126
+ /**
127
+ * Wrapper class for a `std::function<void()>`, this can be used from Swift.
128
+ */
129
+ class Func_void_Wrapper final {
130
+ public:
131
+ explicit Func_void_Wrapper(std::function<void()>&& func): _function(std::make_unique<std::function<void()>>(std::move(func))) {}
132
+ inline void call() const noexcept {
133
+ _function->operator()();
134
+ }
135
+ private:
136
+ std::unique_ptr<std::function<void()>> _function;
137
+ } SWIFT_NONCOPYABLE;
138
+ Func_void create_Func_void(void* NON_NULL swiftClosureWrapper) noexcept;
139
+ inline Func_void_Wrapper wrap_Func_void(Func_void value) noexcept {
140
+ return Func_void_Wrapper(std::move(value));
141
+ }
142
+
143
+ // pragma MARK: std::shared_ptr<Promise<TestResult>>
144
+ /**
145
+ * Specialized version of `std::shared_ptr<Promise<TestResult>>`.
146
+ */
147
+ using std__shared_ptr_Promise_TestResult__ = std::shared_ptr<Promise<TestResult>>;
148
+ inline std::shared_ptr<Promise<TestResult>> create_std__shared_ptr_Promise_TestResult__() noexcept {
149
+ return Promise<TestResult>::create();
150
+ }
151
+ inline PromiseHolder<TestResult> wrap_std__shared_ptr_Promise_TestResult__(std::shared_ptr<Promise<TestResult>> promise) noexcept {
152
+ return PromiseHolder<TestResult>(std::move(promise));
153
+ }
154
+
155
+ // pragma MARK: std::function<void(const TestResult& /* result */)>
156
+ /**
157
+ * Specialized version of `std::function<void(const TestResult&)>`.
158
+ */
159
+ using Func_void_TestResult = std::function<void(const TestResult& /* result */)>;
160
+ /**
161
+ * Wrapper class for a `std::function<void(const TestResult& / * result * /)>`, this can be used from Swift.
162
+ */
163
+ class Func_void_TestResult_Wrapper final {
164
+ public:
165
+ explicit Func_void_TestResult_Wrapper(std::function<void(const TestResult& /* result */)>&& func): _function(std::make_unique<std::function<void(const TestResult& /* result */)>>(std::move(func))) {}
166
+ inline void call(TestResult result) const noexcept {
167
+ _function->operator()(result);
168
+ }
169
+ private:
170
+ std::unique_ptr<std::function<void(const TestResult& /* result */)>> _function;
171
+ } SWIFT_NONCOPYABLE;
172
+ Func_void_TestResult create_Func_void_TestResult(void* NON_NULL swiftClosureWrapper) noexcept;
173
+ inline Func_void_TestResult_Wrapper wrap_Func_void_TestResult(Func_void_TestResult value) noexcept {
174
+ return Func_void_TestResult_Wrapper(std::move(value));
175
+ }
176
+
177
+ // pragma MARK: std::vector<FallbackBundleInfo>
178
+ /**
179
+ * Specialized version of `std::vector<FallbackBundleInfo>`.
180
+ */
181
+ using std__vector_FallbackBundleInfo_ = std::vector<FallbackBundleInfo>;
182
+ inline std::vector<FallbackBundleInfo> create_std__vector_FallbackBundleInfo_(size_t size) noexcept {
183
+ std::vector<FallbackBundleInfo> vector;
184
+ vector.reserve(size);
185
+ return vector;
186
+ }
187
+
188
+ // pragma MARK: std::shared_ptr<Promise<std::vector<FallbackBundleInfo>>>
189
+ /**
190
+ * Specialized version of `std::shared_ptr<Promise<std::vector<FallbackBundleInfo>>>`.
191
+ */
192
+ using std__shared_ptr_Promise_std__vector_FallbackBundleInfo___ = std::shared_ptr<Promise<std::vector<FallbackBundleInfo>>>;
193
+ inline std::shared_ptr<Promise<std::vector<FallbackBundleInfo>>> create_std__shared_ptr_Promise_std__vector_FallbackBundleInfo___() noexcept {
194
+ return Promise<std::vector<FallbackBundleInfo>>::create();
195
+ }
196
+ inline PromiseHolder<std::vector<FallbackBundleInfo>> wrap_std__shared_ptr_Promise_std__vector_FallbackBundleInfo___(std::shared_ptr<Promise<std::vector<FallbackBundleInfo>>> promise) noexcept {
197
+ return PromiseHolder<std::vector<FallbackBundleInfo>>(std::move(promise));
198
+ }
199
+
200
+ // pragma MARK: std::function<void(const std::vector<FallbackBundleInfo>& /* result */)>
201
+ /**
202
+ * Specialized version of `std::function<void(const std::vector<FallbackBundleInfo>&)>`.
203
+ */
204
+ using Func_void_std__vector_FallbackBundleInfo_ = std::function<void(const std::vector<FallbackBundleInfo>& /* result */)>;
205
+ /**
206
+ * Wrapper class for a `std::function<void(const std::vector<FallbackBundleInfo>& / * result * /)>`, this can be used from Swift.
207
+ */
208
+ class Func_void_std__vector_FallbackBundleInfo__Wrapper final {
209
+ public:
210
+ explicit Func_void_std__vector_FallbackBundleInfo__Wrapper(std::function<void(const std::vector<FallbackBundleInfo>& /* result */)>&& func): _function(std::make_unique<std::function<void(const std::vector<FallbackBundleInfo>& /* result */)>>(std::move(func))) {}
211
+ inline void call(std::vector<FallbackBundleInfo> result) const noexcept {
212
+ _function->operator()(result);
213
+ }
214
+ private:
215
+ std::unique_ptr<std::function<void(const std::vector<FallbackBundleInfo>& /* result */)>> _function;
216
+ } SWIFT_NONCOPYABLE;
217
+ Func_void_std__vector_FallbackBundleInfo_ create_Func_void_std__vector_FallbackBundleInfo_(void* NON_NULL swiftClosureWrapper) noexcept;
218
+ inline Func_void_std__vector_FallbackBundleInfo__Wrapper wrap_Func_void_std__vector_FallbackBundleInfo_(Func_void_std__vector_FallbackBundleInfo_ value) noexcept {
219
+ return Func_void_std__vector_FallbackBundleInfo__Wrapper(std::move(value));
220
+ }
221
+
222
+ // pragma MARK: std::shared_ptr<Promise<std::string>>
223
+ /**
224
+ * Specialized version of `std::shared_ptr<Promise<std::string>>`.
225
+ */
226
+ using std__shared_ptr_Promise_std__string__ = std::shared_ptr<Promise<std::string>>;
227
+ inline std::shared_ptr<Promise<std::string>> create_std__shared_ptr_Promise_std__string__() noexcept {
228
+ return Promise<std::string>::create();
229
+ }
230
+ inline PromiseHolder<std::string> wrap_std__shared_ptr_Promise_std__string__(std::shared_ptr<Promise<std::string>> promise) noexcept {
231
+ return PromiseHolder<std::string>(std::move(promise));
232
+ }
233
+
234
+ // pragma MARK: std::function<void(const std::string& /* result */)>
235
+ /**
236
+ * Specialized version of `std::function<void(const std::string&)>`.
237
+ */
238
+ using Func_void_std__string = std::function<void(const std::string& /* result */)>;
239
+ /**
240
+ * Wrapper class for a `std::function<void(const std::string& / * result * /)>`, this can be used from Swift.
241
+ */
242
+ class Func_void_std__string_Wrapper final {
243
+ public:
244
+ explicit Func_void_std__string_Wrapper(std::function<void(const std::string& /* result */)>&& func): _function(std::make_unique<std::function<void(const std::string& /* result */)>>(std::move(func))) {}
245
+ inline void call(std::string result) const noexcept {
246
+ _function->operator()(result);
247
+ }
248
+ private:
249
+ std::unique_ptr<std::function<void(const std::string& /* result */)>> _function;
250
+ } SWIFT_NONCOPYABLE;
251
+ Func_void_std__string create_Func_void_std__string(void* NON_NULL swiftClosureWrapper) noexcept;
252
+ inline Func_void_std__string_Wrapper wrap_Func_void_std__string(Func_void_std__string value) noexcept {
253
+ return Func_void_std__string_Wrapper(std::move(value));
254
+ }
255
+
256
+ // pragma MARK: std::shared_ptr<Promise<bool>>
257
+ /**
258
+ * Specialized version of `std::shared_ptr<Promise<bool>>`.
259
+ */
260
+ using std__shared_ptr_Promise_bool__ = std::shared_ptr<Promise<bool>>;
261
+ inline std::shared_ptr<Promise<bool>> create_std__shared_ptr_Promise_bool__() noexcept {
262
+ return Promise<bool>::create();
263
+ }
264
+ inline PromiseHolder<bool> wrap_std__shared_ptr_Promise_bool__(std::shared_ptr<Promise<bool>> promise) noexcept {
265
+ return PromiseHolder<bool>(std::move(promise));
266
+ }
267
+
268
+ // pragma MARK: std::function<void(bool /* result */)>
269
+ /**
270
+ * Specialized version of `std::function<void(bool)>`.
271
+ */
272
+ using Func_void_bool = std::function<void(bool /* result */)>;
273
+ /**
274
+ * Wrapper class for a `std::function<void(bool / * result * /)>`, this can be used from Swift.
275
+ */
276
+ class Func_void_bool_Wrapper final {
277
+ public:
278
+ explicit Func_void_bool_Wrapper(std::function<void(bool /* result */)>&& func): _function(std::make_unique<std::function<void(bool /* result */)>>(std::move(func))) {}
279
+ inline void call(bool result) const noexcept {
280
+ _function->operator()(result);
281
+ }
282
+ private:
283
+ std::unique_ptr<std::function<void(bool /* result */)>> _function;
284
+ } SWIFT_NONCOPYABLE;
285
+ Func_void_bool create_Func_void_bool(void* NON_NULL swiftClosureWrapper) noexcept;
286
+ inline Func_void_bool_Wrapper wrap_Func_void_bool(Func_void_bool value) noexcept {
287
+ return Func_void_bool_Wrapper(std::move(value));
288
+ }
289
+
290
+ // pragma MARK: std::vector<LocalBundleInfo>
291
+ /**
292
+ * Specialized version of `std::vector<LocalBundleInfo>`.
293
+ */
294
+ using std__vector_LocalBundleInfo_ = std::vector<LocalBundleInfo>;
295
+ inline std::vector<LocalBundleInfo> create_std__vector_LocalBundleInfo_(size_t size) noexcept {
296
+ std::vector<LocalBundleInfo> vector;
297
+ vector.reserve(size);
298
+ return vector;
299
+ }
300
+
301
+ // pragma MARK: std::shared_ptr<Promise<std::vector<LocalBundleInfo>>>
302
+ /**
303
+ * Specialized version of `std::shared_ptr<Promise<std::vector<LocalBundleInfo>>>`.
304
+ */
305
+ using std__shared_ptr_Promise_std__vector_LocalBundleInfo___ = std::shared_ptr<Promise<std::vector<LocalBundleInfo>>>;
306
+ inline std::shared_ptr<Promise<std::vector<LocalBundleInfo>>> create_std__shared_ptr_Promise_std__vector_LocalBundleInfo___() noexcept {
307
+ return Promise<std::vector<LocalBundleInfo>>::create();
308
+ }
309
+ inline PromiseHolder<std::vector<LocalBundleInfo>> wrap_std__shared_ptr_Promise_std__vector_LocalBundleInfo___(std::shared_ptr<Promise<std::vector<LocalBundleInfo>>> promise) noexcept {
310
+ return PromiseHolder<std::vector<LocalBundleInfo>>(std::move(promise));
311
+ }
312
+
313
+ // pragma MARK: std::function<void(const std::vector<LocalBundleInfo>& /* result */)>
314
+ /**
315
+ * Specialized version of `std::function<void(const std::vector<LocalBundleInfo>&)>`.
316
+ */
317
+ using Func_void_std__vector_LocalBundleInfo_ = std::function<void(const std::vector<LocalBundleInfo>& /* result */)>;
318
+ /**
319
+ * Wrapper class for a `std::function<void(const std::vector<LocalBundleInfo>& / * result * /)>`, this can be used from Swift.
320
+ */
321
+ class Func_void_std__vector_LocalBundleInfo__Wrapper final {
322
+ public:
323
+ explicit Func_void_std__vector_LocalBundleInfo__Wrapper(std::function<void(const std::vector<LocalBundleInfo>& /* result */)>&& func): _function(std::make_unique<std::function<void(const std::vector<LocalBundleInfo>& /* result */)>>(std::move(func))) {}
324
+ inline void call(std::vector<LocalBundleInfo> result) const noexcept {
325
+ _function->operator()(result);
326
+ }
327
+ private:
328
+ std::unique_ptr<std::function<void(const std::vector<LocalBundleInfo>& /* result */)>> _function;
329
+ } SWIFT_NONCOPYABLE;
330
+ Func_void_std__vector_LocalBundleInfo_ create_Func_void_std__vector_LocalBundleInfo_(void* NON_NULL swiftClosureWrapper) noexcept;
331
+ inline Func_void_std__vector_LocalBundleInfo__Wrapper wrap_Func_void_std__vector_LocalBundleInfo_(Func_void_std__vector_LocalBundleInfo_ value) noexcept {
332
+ return Func_void_std__vector_LocalBundleInfo__Wrapper(std::move(value));
333
+ }
334
+
335
+ // pragma MARK: std::vector<AscFileInfo>
336
+ /**
337
+ * Specialized version of `std::vector<AscFileInfo>`.
338
+ */
339
+ using std__vector_AscFileInfo_ = std::vector<AscFileInfo>;
340
+ inline std::vector<AscFileInfo> create_std__vector_AscFileInfo_(size_t size) noexcept {
341
+ std::vector<AscFileInfo> vector;
342
+ vector.reserve(size);
343
+ return vector;
344
+ }
345
+
346
+ // pragma MARK: std::shared_ptr<Promise<std::vector<AscFileInfo>>>
347
+ /**
348
+ * Specialized version of `std::shared_ptr<Promise<std::vector<AscFileInfo>>>`.
349
+ */
350
+ using std__shared_ptr_Promise_std__vector_AscFileInfo___ = std::shared_ptr<Promise<std::vector<AscFileInfo>>>;
351
+ inline std::shared_ptr<Promise<std::vector<AscFileInfo>>> create_std__shared_ptr_Promise_std__vector_AscFileInfo___() noexcept {
352
+ return Promise<std::vector<AscFileInfo>>::create();
353
+ }
354
+ inline PromiseHolder<std::vector<AscFileInfo>> wrap_std__shared_ptr_Promise_std__vector_AscFileInfo___(std::shared_ptr<Promise<std::vector<AscFileInfo>>> promise) noexcept {
355
+ return PromiseHolder<std::vector<AscFileInfo>>(std::move(promise));
356
+ }
357
+
358
+ // pragma MARK: std::function<void(const std::vector<AscFileInfo>& /* result */)>
359
+ /**
360
+ * Specialized version of `std::function<void(const std::vector<AscFileInfo>&)>`.
361
+ */
362
+ using Func_void_std__vector_AscFileInfo_ = std::function<void(const std::vector<AscFileInfo>& /* result */)>;
363
+ /**
364
+ * Wrapper class for a `std::function<void(const std::vector<AscFileInfo>& / * result * /)>`, this can be used from Swift.
365
+ */
366
+ class Func_void_std__vector_AscFileInfo__Wrapper final {
367
+ public:
368
+ explicit Func_void_std__vector_AscFileInfo__Wrapper(std::function<void(const std::vector<AscFileInfo>& /* result */)>&& func): _function(std::make_unique<std::function<void(const std::vector<AscFileInfo>& /* result */)>>(std::move(func))) {}
369
+ inline void call(std::vector<AscFileInfo> result) const noexcept {
370
+ _function->operator()(result);
371
+ }
372
+ private:
373
+ std::unique_ptr<std::function<void(const std::vector<AscFileInfo>& /* result */)>> _function;
374
+ } SWIFT_NONCOPYABLE;
375
+ Func_void_std__vector_AscFileInfo_ create_Func_void_std__vector_AscFileInfo_(void* NON_NULL swiftClosureWrapper) noexcept;
376
+ inline Func_void_std__vector_AscFileInfo__Wrapper wrap_Func_void_std__vector_AscFileInfo_(Func_void_std__vector_AscFileInfo_ value) noexcept {
377
+ return Func_void_std__vector_AscFileInfo__Wrapper(std::move(value));
378
+ }
379
+
380
+ // pragma MARK: std::function<void(const BundleDownloadEvent& /* event */)>
381
+ /**
382
+ * Specialized version of `std::function<void(const BundleDownloadEvent&)>`.
383
+ */
384
+ using Func_void_BundleDownloadEvent = std::function<void(const BundleDownloadEvent& /* event */)>;
385
+ /**
386
+ * Wrapper class for a `std::function<void(const BundleDownloadEvent& / * event * /)>`, this can be used from Swift.
387
+ */
388
+ class Func_void_BundleDownloadEvent_Wrapper final {
389
+ public:
390
+ explicit Func_void_BundleDownloadEvent_Wrapper(std::function<void(const BundleDownloadEvent& /* event */)>&& func): _function(std::make_unique<std::function<void(const BundleDownloadEvent& /* event */)>>(std::move(func))) {}
391
+ inline void call(BundleDownloadEvent event) const noexcept {
392
+ _function->operator()(event);
393
+ }
394
+ private:
395
+ std::unique_ptr<std::function<void(const BundleDownloadEvent& /* event */)>> _function;
396
+ } SWIFT_NONCOPYABLE;
397
+ Func_void_BundleDownloadEvent create_Func_void_BundleDownloadEvent(void* NON_NULL swiftClosureWrapper) noexcept;
398
+ inline Func_void_BundleDownloadEvent_Wrapper wrap_Func_void_BundleDownloadEvent(Func_void_BundleDownloadEvent value) noexcept {
399
+ return Func_void_BundleDownloadEvent_Wrapper(std::move(value));
400
+ }
401
+
402
+ // pragma MARK: std::shared_ptr<HybridReactNativeBundleUpdateSpec>
403
+ /**
404
+ * Specialized version of `std::shared_ptr<HybridReactNativeBundleUpdateSpec>`.
405
+ */
406
+ using std__shared_ptr_HybridReactNativeBundleUpdateSpec_ = std::shared_ptr<HybridReactNativeBundleUpdateSpec>;
407
+ std::shared_ptr<HybridReactNativeBundleUpdateSpec> create_std__shared_ptr_HybridReactNativeBundleUpdateSpec_(void* NON_NULL swiftUnsafePointer) noexcept;
408
+ void* NON_NULL get_std__shared_ptr_HybridReactNativeBundleUpdateSpec_(std__shared_ptr_HybridReactNativeBundleUpdateSpec_ cppType);
409
+
410
+ // pragma MARK: std::weak_ptr<HybridReactNativeBundleUpdateSpec>
411
+ using std__weak_ptr_HybridReactNativeBundleUpdateSpec_ = std::weak_ptr<HybridReactNativeBundleUpdateSpec>;
412
+ inline std__weak_ptr_HybridReactNativeBundleUpdateSpec_ weakify_std__shared_ptr_HybridReactNativeBundleUpdateSpec_(const std::shared_ptr<HybridReactNativeBundleUpdateSpec>& strong) noexcept { return strong; }
413
+
414
+ // pragma MARK: Result<std::shared_ptr<Promise<BundleDownloadResult>>>
415
+ using Result_std__shared_ptr_Promise_BundleDownloadResult___ = Result<std::shared_ptr<Promise<BundleDownloadResult>>>;
416
+ inline Result_std__shared_ptr_Promise_BundleDownloadResult___ create_Result_std__shared_ptr_Promise_BundleDownloadResult___(const std::shared_ptr<Promise<BundleDownloadResult>>& value) noexcept {
417
+ return Result<std::shared_ptr<Promise<BundleDownloadResult>>>::withValue(value);
418
+ }
419
+ inline Result_std__shared_ptr_Promise_BundleDownloadResult___ create_Result_std__shared_ptr_Promise_BundleDownloadResult___(const std::exception_ptr& error) noexcept {
420
+ return Result<std::shared_ptr<Promise<BundleDownloadResult>>>::withError(error);
421
+ }
422
+
423
+ // pragma MARK: Result<std::shared_ptr<Promise<void>>>
424
+ using Result_std__shared_ptr_Promise_void___ = Result<std::shared_ptr<Promise<void>>>;
425
+ inline Result_std__shared_ptr_Promise_void___ create_Result_std__shared_ptr_Promise_void___(const std::shared_ptr<Promise<void>>& value) noexcept {
426
+ return Result<std::shared_ptr<Promise<void>>>::withValue(value);
427
+ }
428
+ inline Result_std__shared_ptr_Promise_void___ create_Result_std__shared_ptr_Promise_void___(const std::exception_ptr& error) noexcept {
429
+ return Result<std::shared_ptr<Promise<void>>>::withError(error);
430
+ }
431
+
432
+ // pragma MARK: Result<std::shared_ptr<Promise<TestResult>>>
433
+ using Result_std__shared_ptr_Promise_TestResult___ = Result<std::shared_ptr<Promise<TestResult>>>;
434
+ inline Result_std__shared_ptr_Promise_TestResult___ create_Result_std__shared_ptr_Promise_TestResult___(const std::shared_ptr<Promise<TestResult>>& value) noexcept {
435
+ return Result<std::shared_ptr<Promise<TestResult>>>::withValue(value);
436
+ }
437
+ inline Result_std__shared_ptr_Promise_TestResult___ create_Result_std__shared_ptr_Promise_TestResult___(const std::exception_ptr& error) noexcept {
438
+ return Result<std::shared_ptr<Promise<TestResult>>>::withError(error);
439
+ }
440
+
441
+ // pragma MARK: Result<std::shared_ptr<Promise<std::vector<FallbackBundleInfo>>>>
442
+ using Result_std__shared_ptr_Promise_std__vector_FallbackBundleInfo____ = Result<std::shared_ptr<Promise<std::vector<FallbackBundleInfo>>>>;
443
+ inline Result_std__shared_ptr_Promise_std__vector_FallbackBundleInfo____ create_Result_std__shared_ptr_Promise_std__vector_FallbackBundleInfo____(const std::shared_ptr<Promise<std::vector<FallbackBundleInfo>>>& value) noexcept {
444
+ return Result<std::shared_ptr<Promise<std::vector<FallbackBundleInfo>>>>::withValue(value);
445
+ }
446
+ inline Result_std__shared_ptr_Promise_std__vector_FallbackBundleInfo____ create_Result_std__shared_ptr_Promise_std__vector_FallbackBundleInfo____(const std::exception_ptr& error) noexcept {
447
+ return Result<std::shared_ptr<Promise<std::vector<FallbackBundleInfo>>>>::withError(error);
448
+ }
449
+
450
+ // pragma MARK: Result<std::string>
451
+ using Result_std__string_ = Result<std::string>;
452
+ inline Result_std__string_ create_Result_std__string_(const std::string& value) noexcept {
453
+ return Result<std::string>::withValue(value);
454
+ }
455
+ inline Result_std__string_ create_Result_std__string_(const std::exception_ptr& error) noexcept {
456
+ return Result<std::string>::withError(error);
457
+ }
458
+
459
+ // pragma MARK: Result<std::shared_ptr<Promise<std::string>>>
460
+ using Result_std__shared_ptr_Promise_std__string___ = Result<std::shared_ptr<Promise<std::string>>>;
461
+ inline Result_std__shared_ptr_Promise_std__string___ create_Result_std__shared_ptr_Promise_std__string___(const std::shared_ptr<Promise<std::string>>& value) noexcept {
462
+ return Result<std::shared_ptr<Promise<std::string>>>::withValue(value);
463
+ }
464
+ inline Result_std__shared_ptr_Promise_std__string___ create_Result_std__shared_ptr_Promise_std__string___(const std::exception_ptr& error) noexcept {
465
+ return Result<std::shared_ptr<Promise<std::string>>>::withError(error);
466
+ }
467
+
468
+ // pragma MARK: Result<std::shared_ptr<Promise<bool>>>
469
+ using Result_std__shared_ptr_Promise_bool___ = Result<std::shared_ptr<Promise<bool>>>;
470
+ inline Result_std__shared_ptr_Promise_bool___ create_Result_std__shared_ptr_Promise_bool___(const std::shared_ptr<Promise<bool>>& value) noexcept {
471
+ return Result<std::shared_ptr<Promise<bool>>>::withValue(value);
472
+ }
473
+ inline Result_std__shared_ptr_Promise_bool___ create_Result_std__shared_ptr_Promise_bool___(const std::exception_ptr& error) noexcept {
474
+ return Result<std::shared_ptr<Promise<bool>>>::withError(error);
475
+ }
476
+
477
+ // pragma MARK: Result<std::shared_ptr<Promise<std::vector<LocalBundleInfo>>>>
478
+ using Result_std__shared_ptr_Promise_std__vector_LocalBundleInfo____ = Result<std::shared_ptr<Promise<std::vector<LocalBundleInfo>>>>;
479
+ inline Result_std__shared_ptr_Promise_std__vector_LocalBundleInfo____ create_Result_std__shared_ptr_Promise_std__vector_LocalBundleInfo____(const std::shared_ptr<Promise<std::vector<LocalBundleInfo>>>& value) noexcept {
480
+ return Result<std::shared_ptr<Promise<std::vector<LocalBundleInfo>>>>::withValue(value);
481
+ }
482
+ inline Result_std__shared_ptr_Promise_std__vector_LocalBundleInfo____ create_Result_std__shared_ptr_Promise_std__vector_LocalBundleInfo____(const std::exception_ptr& error) noexcept {
483
+ return Result<std::shared_ptr<Promise<std::vector<LocalBundleInfo>>>>::withError(error);
484
+ }
485
+
486
+ // pragma MARK: Result<std::shared_ptr<Promise<std::vector<AscFileInfo>>>>
487
+ using Result_std__shared_ptr_Promise_std__vector_AscFileInfo____ = Result<std::shared_ptr<Promise<std::vector<AscFileInfo>>>>;
488
+ inline Result_std__shared_ptr_Promise_std__vector_AscFileInfo____ create_Result_std__shared_ptr_Promise_std__vector_AscFileInfo____(const std::shared_ptr<Promise<std::vector<AscFileInfo>>>& value) noexcept {
489
+ return Result<std::shared_ptr<Promise<std::vector<AscFileInfo>>>>::withValue(value);
490
+ }
491
+ inline Result_std__shared_ptr_Promise_std__vector_AscFileInfo____ create_Result_std__shared_ptr_Promise_std__vector_AscFileInfo____(const std::exception_ptr& error) noexcept {
492
+ return Result<std::shared_ptr<Promise<std::vector<AscFileInfo>>>>::withError(error);
493
+ }
494
+
495
+ // pragma MARK: Result<double>
496
+ using Result_double_ = Result<double>;
497
+ inline Result_double_ create_Result_double_(double value) noexcept {
498
+ return Result<double>::withValue(std::move(value));
499
+ }
500
+ inline Result_double_ create_Result_double_(const std::exception_ptr& error) noexcept {
501
+ return Result<double>::withError(error);
502
+ }
503
+
504
+ // pragma MARK: Result<void>
505
+ using Result_void_ = Result<void>;
506
+ inline Result_void_ create_Result_void_() noexcept {
507
+ return Result<void>::withValue();
508
+ }
509
+ inline Result_void_ create_Result_void_(const std::exception_ptr& error) noexcept {
510
+ return Result<void>::withError(error);
511
+ }
512
+
513
+ } // namespace margelo::nitro::reactnativebundleupdate::bridge::swift
@@ -0,0 +1,83 @@
1
+ ///
2
+ /// ReactNativeBundleUpdate-Swift-Cxx-Umbrella.hpp
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © 2026 Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ #pragma once
9
+
10
+ // Forward declarations of C++ defined types
11
+ // Forward declaration of `AscFileInfo` to properly resolve imports.
12
+ namespace margelo::nitro::reactnativebundleupdate { struct AscFileInfo; }
13
+ // Forward declaration of `BundleDownloadASCParams` to properly resolve imports.
14
+ namespace margelo::nitro::reactnativebundleupdate { struct BundleDownloadASCParams; }
15
+ // Forward declaration of `BundleDownloadEvent` to properly resolve imports.
16
+ namespace margelo::nitro::reactnativebundleupdate { struct BundleDownloadEvent; }
17
+ // Forward declaration of `BundleDownloadParams` to properly resolve imports.
18
+ namespace margelo::nitro::reactnativebundleupdate { struct BundleDownloadParams; }
19
+ // Forward declaration of `BundleDownloadResult` to properly resolve imports.
20
+ namespace margelo::nitro::reactnativebundleupdate { struct BundleDownloadResult; }
21
+ // Forward declaration of `BundleInstallParams` to properly resolve imports.
22
+ namespace margelo::nitro::reactnativebundleupdate { struct BundleInstallParams; }
23
+ // Forward declaration of `BundleSwitchParams` to properly resolve imports.
24
+ namespace margelo::nitro::reactnativebundleupdate { struct BundleSwitchParams; }
25
+ // Forward declaration of `BundleVerifyASCParams` to properly resolve imports.
26
+ namespace margelo::nitro::reactnativebundleupdate { struct BundleVerifyASCParams; }
27
+ // Forward declaration of `BundleVerifyParams` to properly resolve imports.
28
+ namespace margelo::nitro::reactnativebundleupdate { struct BundleVerifyParams; }
29
+ // Forward declaration of `FallbackBundleInfo` to properly resolve imports.
30
+ namespace margelo::nitro::reactnativebundleupdate { struct FallbackBundleInfo; }
31
+ // Forward declaration of `HybridReactNativeBundleUpdateSpec` to properly resolve imports.
32
+ namespace margelo::nitro::reactnativebundleupdate { class HybridReactNativeBundleUpdateSpec; }
33
+ // Forward declaration of `LocalBundleInfo` to properly resolve imports.
34
+ namespace margelo::nitro::reactnativebundleupdate { struct LocalBundleInfo; }
35
+ // Forward declaration of `TestResult` to properly resolve imports.
36
+ namespace margelo::nitro::reactnativebundleupdate { struct TestResult; }
37
+
38
+ // Include C++ defined types
39
+ #include "AscFileInfo.hpp"
40
+ #include "BundleDownloadASCParams.hpp"
41
+ #include "BundleDownloadEvent.hpp"
42
+ #include "BundleDownloadParams.hpp"
43
+ #include "BundleDownloadResult.hpp"
44
+ #include "BundleInstallParams.hpp"
45
+ #include "BundleSwitchParams.hpp"
46
+ #include "BundleVerifyASCParams.hpp"
47
+ #include "BundleVerifyParams.hpp"
48
+ #include "FallbackBundleInfo.hpp"
49
+ #include "HybridReactNativeBundleUpdateSpec.hpp"
50
+ #include "LocalBundleInfo.hpp"
51
+ #include "TestResult.hpp"
52
+ #include <NitroModules/Promise.hpp>
53
+ #include <NitroModules/Result.hpp>
54
+ #include <exception>
55
+ #include <functional>
56
+ #include <memory>
57
+ #include <string>
58
+ #include <vector>
59
+
60
+ // C++ helpers for Swift
61
+ #include "ReactNativeBundleUpdate-Swift-Cxx-Bridge.hpp"
62
+
63
+ // Common C++ types used in Swift
64
+ #include <NitroModules/ArrayBufferHolder.hpp>
65
+ #include <NitroModules/AnyMapUtils.hpp>
66
+ #include <NitroModules/RuntimeError.hpp>
67
+ #include <NitroModules/DateToChronoDate.hpp>
68
+
69
+ // Forward declarations of Swift defined types
70
+ // Forward declaration of `HybridReactNativeBundleUpdateSpec_cxx` to properly resolve imports.
71
+ namespace ReactNativeBundleUpdate { class HybridReactNativeBundleUpdateSpec_cxx; }
72
+
73
+ // Include Swift defined types
74
+ #if __has_include("ReactNativeBundleUpdate-Swift.h")
75
+ // This header is generated by Xcode/Swift on every app build.
76
+ // If it cannot be found, make sure the Swift module's name (= podspec name) is actually "ReactNativeBundleUpdate".
77
+ #include "ReactNativeBundleUpdate-Swift.h"
78
+ // Same as above, but used when building with frameworks (`use_frameworks`)
79
+ #elif __has_include(<ReactNativeBundleUpdate/ReactNativeBundleUpdate-Swift.h>)
80
+ #include <ReactNativeBundleUpdate/ReactNativeBundleUpdate-Swift.h>
81
+ #else
82
+ #error ReactNativeBundleUpdate's autogenerated Swift header cannot be found! Make sure the Swift module's name (= podspec name) is actually "ReactNativeBundleUpdate", and try building the app first.
83
+ #endif
@@ -0,0 +1,33 @@
1
+ ///
2
+ /// ReactNativeBundleUpdateAutolinking.mm
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © 2026 Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ #import <Foundation/Foundation.h>
9
+ #import <NitroModules/HybridObjectRegistry.hpp>
10
+ #import "ReactNativeBundleUpdate-Swift-Cxx-Umbrella.hpp"
11
+ #import <type_traits>
12
+
13
+ #include "HybridReactNativeBundleUpdateSpecSwift.hpp"
14
+
15
+ @interface ReactNativeBundleUpdateAutolinking : NSObject
16
+ @end
17
+
18
+ @implementation ReactNativeBundleUpdateAutolinking
19
+
20
+ + (void) load {
21
+ using namespace margelo::nitro;
22
+ using namespace margelo::nitro::reactnativebundleupdate;
23
+
24
+ HybridObjectRegistry::registerHybridObjectConstructor(
25
+ "ReactNativeBundleUpdate",
26
+ []() -> std::shared_ptr<HybridObject> {
27
+ std::shared_ptr<HybridReactNativeBundleUpdateSpec> hybridObject = ReactNativeBundleUpdate::ReactNativeBundleUpdateAutolinking::createReactNativeBundleUpdate();
28
+ return hybridObject;
29
+ }
30
+ );
31
+ }
32
+
33
+ @end
@@ -0,0 +1,25 @@
1
+ ///
2
+ /// ReactNativeBundleUpdateAutolinking.swift
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © 2026 Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ public final class ReactNativeBundleUpdateAutolinking {
9
+ public typealias bridge = margelo.nitro.reactnativebundleupdate.bridge.swift
10
+
11
+ /**
12
+ * Creates an instance of a Swift class that implements `HybridReactNativeBundleUpdateSpec`,
13
+ * and wraps it in a Swift class that can directly interop with C++ (`HybridReactNativeBundleUpdateSpec_cxx`)
14
+ *
15
+ * This is generated by Nitrogen and will initialize the class specified
16
+ * in the `"autolinking"` property of `nitro.json` (in this case, `ReactNativeBundleUpdate`).
17
+ */
18
+ public static func createReactNativeBundleUpdate() -> bridge.std__shared_ptr_HybridReactNativeBundleUpdateSpec_ {
19
+ let hybridObject = ReactNativeBundleUpdate()
20
+ return { () -> bridge.std__shared_ptr_HybridReactNativeBundleUpdateSpec_ in
21
+ let __cxxWrapped = hybridObject.getCxxWrapper()
22
+ return __cxxWrapped.getCxxPart()
23
+ }()
24
+ }
25
+ }