@shamilovtim/react-native-nitro-sse 2.3.0

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 (98) hide show
  1. package/LICENSE +21 -0
  2. package/NitroSse.podspec +37 -0
  3. package/README.md +144 -0
  4. package/android/CMakeLists.txt +24 -0
  5. package/android/build.gradle +124 -0
  6. package/android/src/main/AndroidManifest.xml +4 -0
  7. package/android/src/main/cpp/cpp-adapter.cpp +10 -0
  8. package/android/src/main/java/com/margelo/nitro/nitrosse/NetworkInspector.kt +94 -0
  9. package/android/src/main/java/com/margelo/nitro/nitrosse/NitroSse.kt +889 -0
  10. package/android/src/main/java/com/margelo/nitro/nitrosse/NitroSsePackage.kt +22 -0
  11. package/ios/NitroSse.swift +760 -0
  12. package/ios/NitroSseNetworkInspector.h +24 -0
  13. package/ios/NitroSseNetworkInspector.mm +68 -0
  14. package/lib/module/NitroSse.nitro.js +4 -0
  15. package/lib/module/NitroSse.nitro.js.map +1 -0
  16. package/lib/module/NitroSseClient.js +244 -0
  17. package/lib/module/NitroSseClient.js.map +1 -0
  18. package/lib/module/SseInterface.js +4 -0
  19. package/lib/module/SseInterface.js.map +1 -0
  20. package/lib/module/index.js +26 -0
  21. package/lib/module/index.js.map +1 -0
  22. package/lib/module/package.json +1 -0
  23. package/lib/typescript/package.json +1 -0
  24. package/lib/typescript/src/NitroSse.nitro.d.ts +48 -0
  25. package/lib/typescript/src/NitroSse.nitro.d.ts.map +1 -0
  26. package/lib/typescript/src/NitroSseClient.d.ts +26 -0
  27. package/lib/typescript/src/NitroSseClient.d.ts.map +1 -0
  28. package/lib/typescript/src/SseInterface.d.ts +237 -0
  29. package/lib/typescript/src/SseInterface.d.ts.map +1 -0
  30. package/lib/typescript/src/index.d.ts +11 -0
  31. package/lib/typescript/src/index.d.ts.map +1 -0
  32. package/nitro.json +23 -0
  33. package/nitrogen/generated/android/c++/JFunc_std__shared_ptr_Promise_std__shared_ptr_Promise_std__unordered_map_std__string__std__string_____.hpp +138 -0
  34. package/nitrogen/generated/android/c++/JFunc_void_std__vector_SseEvent_.hpp +102 -0
  35. package/nitrogen/generated/android/c++/JHttpMethod.hpp +58 -0
  36. package/nitrogen/generated/android/c++/JHybridNitroSseSpec.cpp +134 -0
  37. package/nitrogen/generated/android/c++/JHybridNitroSseSpec.hpp +71 -0
  38. package/nitrogen/generated/android/c++/JSseConfig.hpp +162 -0
  39. package/nitrogen/generated/android/c++/JSseEvent.hpp +90 -0
  40. package/nitrogen/generated/android/c++/JSseEventType.hpp +67 -0
  41. package/nitrogen/generated/android/c++/JSseMockConfig.hpp +101 -0
  42. package/nitrogen/generated/android/c++/JSseMockEvent.hpp +94 -0
  43. package/nitrogen/generated/android/c++/JSseMockMode.hpp +58 -0
  44. package/nitrogen/generated/android/c++/JSseStats.hpp +70 -0
  45. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrosse/Func_std__shared_ptr_Promise_std__shared_ptr_Promise_std__unordered_map_std__string__std__string_____.kt +80 -0
  46. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrosse/Func_void_std__vector_SseEvent_.kt +80 -0
  47. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrosse/HttpMethod.kt +23 -0
  48. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrosse/HybridNitroSseSpec.kt +91 -0
  49. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrosse/SseConfig.kt +135 -0
  50. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrosse/SseEvent.kt +86 -0
  51. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrosse/SseEventType.kt +26 -0
  52. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrosse/SseMockConfig.kt +71 -0
  53. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrosse/SseMockEvent.kt +91 -0
  54. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrosse/SseMockMode.kt +23 -0
  55. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrosse/SseStats.kt +66 -0
  56. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrosse/nitrosseOnLoad.kt +35 -0
  57. package/nitrogen/generated/android/nitrosse+autolinking.cmake +81 -0
  58. package/nitrogen/generated/android/nitrosse+autolinking.gradle +27 -0
  59. package/nitrogen/generated/android/nitrosseOnLoad.cpp +58 -0
  60. package/nitrogen/generated/android/nitrosseOnLoad.hpp +34 -0
  61. package/nitrogen/generated/ios/NitroSse+autolinking.rb +62 -0
  62. package/nitrogen/generated/ios/NitroSse-Swift-Cxx-Bridge.cpp +74 -0
  63. package/nitrogen/generated/ios/NitroSse-Swift-Cxx-Bridge.hpp +415 -0
  64. package/nitrogen/generated/ios/NitroSse-Swift-Cxx-Umbrella.hpp +74 -0
  65. package/nitrogen/generated/ios/NitroSseAutolinking.mm +33 -0
  66. package/nitrogen/generated/ios/NitroSseAutolinking.swift +26 -0
  67. package/nitrogen/generated/ios/c++/HybridNitroSseSpecSwift.cpp +11 -0
  68. package/nitrogen/generated/ios/c++/HybridNitroSseSpecSwift.hpp +161 -0
  69. package/nitrogen/generated/ios/swift/Func_std__shared_ptr_Promise_std__shared_ptr_Promise_std__unordered_map_std__string__std__string_____.swift +67 -0
  70. package/nitrogen/generated/ios/swift/Func_void_std__exception_ptr.swift +46 -0
  71. package/nitrogen/generated/ios/swift/Func_void_std__shared_ptr_Promise_std__unordered_map_std__string__std__string___.swift +66 -0
  72. package/nitrogen/generated/ios/swift/Func_void_std__unordered_map_std__string__std__string_.swift +54 -0
  73. package/nitrogen/generated/ios/swift/Func_void_std__vector_SseEvent_.swift +46 -0
  74. package/nitrogen/generated/ios/swift/HttpMethod.swift +40 -0
  75. package/nitrogen/generated/ios/swift/HybridNitroSseSpec.swift +63 -0
  76. package/nitrogen/generated/ios/swift/HybridNitroSseSpec_cxx.swift +246 -0
  77. package/nitrogen/generated/ios/swift/SseConfig.swift +346 -0
  78. package/nitrogen/generated/ios/swift/SseEvent.swift +155 -0
  79. package/nitrogen/generated/ios/swift/SseEventType.swift +52 -0
  80. package/nitrogen/generated/ios/swift/SseMockConfig.swift +94 -0
  81. package/nitrogen/generated/ios/swift/SseMockEvent.swift +179 -0
  82. package/nitrogen/generated/ios/swift/SseMockMode.swift +40 -0
  83. package/nitrogen/generated/ios/swift/SseStats.swift +70 -0
  84. package/nitrogen/generated/shared/c++/HttpMethod.hpp +76 -0
  85. package/nitrogen/generated/shared/c++/HybridNitroSseSpec.cpp +29 -0
  86. package/nitrogen/generated/shared/c++/HybridNitroSseSpec.hpp +81 -0
  87. package/nitrogen/generated/shared/c++/SseConfig.hpp +156 -0
  88. package/nitrogen/generated/shared/c++/SseEvent.hpp +115 -0
  89. package/nitrogen/generated/shared/c++/SseEventType.hpp +88 -0
  90. package/nitrogen/generated/shared/c++/SseMockConfig.hpp +105 -0
  91. package/nitrogen/generated/shared/c++/SseMockEvent.hpp +119 -0
  92. package/nitrogen/generated/shared/c++/SseMockMode.hpp +76 -0
  93. package/nitrogen/generated/shared/c++/SseStats.hpp +96 -0
  94. package/package.json +186 -0
  95. package/src/NitroSse.nitro.ts +53 -0
  96. package/src/NitroSseClient.ts +297 -0
  97. package/src/SseInterface.ts +248 -0
  98. package/src/index.ts +31 -0
@@ -0,0 +1,74 @@
1
+ ///
2
+ /// NitroSse-Swift-Cxx-Bridge.cpp
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ #include "NitroSse-Swift-Cxx-Bridge.hpp"
9
+
10
+ // Include C++ implementation defined types
11
+ #include "HybridNitroSseSpecSwift.hpp"
12
+ #include "NitroSse-Swift-Cxx-Umbrella.hpp"
13
+ #include <NitroModules/NitroDefines.hpp>
14
+
15
+ namespace margelo::nitro::nitrosse::bridge::swift {
16
+
17
+ // pragma MARK: std::function<void(const std::unordered_map<std::string, std::string>& /* result */)>
18
+ Func_void_std__unordered_map_std__string__std__string_ create_Func_void_std__unordered_map_std__string__std__string_(void* NON_NULL swiftClosureWrapper) noexcept {
19
+ auto swiftClosure = NitroSse::Func_void_std__unordered_map_std__string__std__string_::fromUnsafe(swiftClosureWrapper);
20
+ return [swiftClosure = std::move(swiftClosure)](const std::unordered_map<std::string, std::string>& result) mutable -> void {
21
+ swiftClosure.call(result);
22
+ };
23
+ }
24
+
25
+ // pragma MARK: std::function<void(const std::exception_ptr& /* error */)>
26
+ Func_void_std__exception_ptr create_Func_void_std__exception_ptr(void* NON_NULL swiftClosureWrapper) noexcept {
27
+ auto swiftClosure = NitroSse::Func_void_std__exception_ptr::fromUnsafe(swiftClosureWrapper);
28
+ return [swiftClosure = std::move(swiftClosure)](const std::exception_ptr& error) mutable -> void {
29
+ swiftClosure.call(error);
30
+ };
31
+ }
32
+
33
+ // pragma MARK: std::function<std::shared_ptr<Promise<std::shared_ptr<Promise<std::unordered_map<std::string, std::string>>>>>()>
34
+ Func_std__shared_ptr_Promise_std__shared_ptr_Promise_std__unordered_map_std__string__std__string_____ create_Func_std__shared_ptr_Promise_std__shared_ptr_Promise_std__unordered_map_std__string__std__string_____(void* NON_NULL swiftClosureWrapper) noexcept {
35
+ auto swiftClosure = NitroSse::Func_std__shared_ptr_Promise_std__shared_ptr_Promise_std__unordered_map_std__string__std__string_____::fromUnsafe(swiftClosureWrapper);
36
+ return [swiftClosure = std::move(swiftClosure)]() mutable -> std::shared_ptr<Promise<std::shared_ptr<Promise<std::unordered_map<std::string, std::string>>>>> {
37
+ auto __result = swiftClosure.call();
38
+ return __result;
39
+ };
40
+ }
41
+
42
+ // pragma MARK: std::function<void(const std::shared_ptr<Promise<std::unordered_map<std::string, std::string>>>& /* result */)>
43
+ Func_void_std__shared_ptr_Promise_std__unordered_map_std__string__std__string___ create_Func_void_std__shared_ptr_Promise_std__unordered_map_std__string__std__string___(void* NON_NULL swiftClosureWrapper) noexcept {
44
+ auto swiftClosure = NitroSse::Func_void_std__shared_ptr_Promise_std__unordered_map_std__string__std__string___::fromUnsafe(swiftClosureWrapper);
45
+ return [swiftClosure = std::move(swiftClosure)](const std::shared_ptr<Promise<std::unordered_map<std::string, std::string>>>& result) mutable -> void {
46
+ swiftClosure.call(result);
47
+ };
48
+ }
49
+
50
+ // pragma MARK: std::function<void(const std::vector<SseEvent>& /* events */)>
51
+ Func_void_std__vector_SseEvent_ create_Func_void_std__vector_SseEvent_(void* NON_NULL swiftClosureWrapper) noexcept {
52
+ auto swiftClosure = NitroSse::Func_void_std__vector_SseEvent_::fromUnsafe(swiftClosureWrapper);
53
+ return [swiftClosure = std::move(swiftClosure)](const std::vector<SseEvent>& events) mutable -> void {
54
+ swiftClosure.call(events);
55
+ };
56
+ }
57
+
58
+ // pragma MARK: std::shared_ptr<HybridNitroSseSpec>
59
+ std::shared_ptr<HybridNitroSseSpec> create_std__shared_ptr_HybridNitroSseSpec_(void* NON_NULL swiftUnsafePointer) noexcept {
60
+ NitroSse::HybridNitroSseSpec_cxx swiftPart = NitroSse::HybridNitroSseSpec_cxx::fromUnsafe(swiftUnsafePointer);
61
+ return std::make_shared<margelo::nitro::nitrosse::HybridNitroSseSpecSwift>(swiftPart);
62
+ }
63
+ void* NON_NULL get_std__shared_ptr_HybridNitroSseSpec_(std__shared_ptr_HybridNitroSseSpec_ cppType) {
64
+ std::shared_ptr<margelo::nitro::nitrosse::HybridNitroSseSpecSwift> swiftWrapper = std::dynamic_pointer_cast<margelo::nitro::nitrosse::HybridNitroSseSpecSwift>(cppType);
65
+ #ifdef NITRO_DEBUG
66
+ if (swiftWrapper == nullptr) [[unlikely]] {
67
+ throw std::runtime_error("Class \"HybridNitroSseSpec\" is not implemented in Swift!");
68
+ }
69
+ #endif
70
+ NitroSse::HybridNitroSseSpec_cxx& swiftPart = swiftWrapper->getSwiftPart();
71
+ return swiftPart.toUnsafe();
72
+ }
73
+
74
+ } // namespace margelo::nitro::nitrosse::bridge::swift
@@ -0,0 +1,415 @@
1
+ ///
2
+ /// NitroSse-Swift-Cxx-Bridge.hpp
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ #pragma once
9
+
10
+ // Forward declarations of C++ defined types
11
+ // Forward declaration of `HttpMethod` to properly resolve imports.
12
+ namespace margelo::nitro::nitrosse { enum class HttpMethod; }
13
+ // Forward declaration of `HybridNitroSseSpec` to properly resolve imports.
14
+ namespace margelo::nitro::nitrosse { class HybridNitroSseSpec; }
15
+ // Forward declaration of `SseEventType` to properly resolve imports.
16
+ namespace margelo::nitro::nitrosse { enum class SseEventType; }
17
+ // Forward declaration of `SseEvent` to properly resolve imports.
18
+ namespace margelo::nitro::nitrosse { struct SseEvent; }
19
+ // Forward declaration of `SseMockConfig` to properly resolve imports.
20
+ namespace margelo::nitro::nitrosse { struct SseMockConfig; }
21
+ // Forward declaration of `SseMockEvent` to properly resolve imports.
22
+ namespace margelo::nitro::nitrosse { struct SseMockEvent; }
23
+ // Forward declaration of `SseMockMode` to properly resolve imports.
24
+ namespace margelo::nitro::nitrosse { enum class SseMockMode; }
25
+ // Forward declaration of `SseStats` to properly resolve imports.
26
+ namespace margelo::nitro::nitrosse { struct SseStats; }
27
+
28
+ // Forward declarations of Swift defined types
29
+ // Forward declaration of `HybridNitroSseSpec_cxx` to properly resolve imports.
30
+ namespace NitroSse { class HybridNitroSseSpec_cxx; }
31
+
32
+ // Include C++ defined types
33
+ #include "HttpMethod.hpp"
34
+ #include "HybridNitroSseSpec.hpp"
35
+ #include "SseEvent.hpp"
36
+ #include "SseEventType.hpp"
37
+ #include "SseMockConfig.hpp"
38
+ #include "SseMockEvent.hpp"
39
+ #include "SseMockMode.hpp"
40
+ #include "SseStats.hpp"
41
+ #include <NitroModules/AnyMap.hpp>
42
+ #include <NitroModules/Promise.hpp>
43
+ #include <NitroModules/PromiseHolder.hpp>
44
+ #include <NitroModules/Result.hpp>
45
+ #include <exception>
46
+ #include <functional>
47
+ #include <memory>
48
+ #include <optional>
49
+ #include <string>
50
+ #include <unordered_map>
51
+ #include <vector>
52
+
53
+ /**
54
+ * Contains specialized versions of C++ templated types so they can be accessed from Swift,
55
+ * as well as helper functions to interact with those C++ types from Swift.
56
+ */
57
+ namespace margelo::nitro::nitrosse::bridge::swift {
58
+
59
+ // pragma MARK: std::optional<HttpMethod>
60
+ /**
61
+ * Specialized version of `std::optional<HttpMethod>`.
62
+ */
63
+ using std__optional_HttpMethod_ = std::optional<HttpMethod>;
64
+ inline std::optional<HttpMethod> create_std__optional_HttpMethod_(const HttpMethod& value) noexcept {
65
+ return std::optional<HttpMethod>(value);
66
+ }
67
+ inline bool has_value_std__optional_HttpMethod_(const std::optional<HttpMethod>& optional) noexcept {
68
+ return optional.has_value();
69
+ }
70
+ inline HttpMethod get_std__optional_HttpMethod_(const std::optional<HttpMethod>& optional) noexcept {
71
+ return optional.value();
72
+ }
73
+
74
+ // pragma MARK: std::unordered_map<std::string, std::string>
75
+ /**
76
+ * Specialized version of `std::unordered_map<std::string, std::string>`.
77
+ */
78
+ using std__unordered_map_std__string__std__string_ = std::unordered_map<std::string, std::string>;
79
+ inline std::unordered_map<std::string, std::string> create_std__unordered_map_std__string__std__string_(size_t size) noexcept {
80
+ std::unordered_map<std::string, std::string> map;
81
+ map.reserve(size);
82
+ return map;
83
+ }
84
+ inline std::vector<std::string> get_std__unordered_map_std__string__std__string__keys(const std__unordered_map_std__string__std__string_& map) noexcept {
85
+ std::vector<std::string> keys;
86
+ keys.reserve(map.size());
87
+ for (const auto& entry : map) {
88
+ keys.push_back(entry.first);
89
+ }
90
+ return keys;
91
+ }
92
+ inline std::string get_std__unordered_map_std__string__std__string__value(const std__unordered_map_std__string__std__string_& map, const std::string& key) noexcept {
93
+ return map.find(key)->second;
94
+ }
95
+ inline void emplace_std__unordered_map_std__string__std__string_(std__unordered_map_std__string__std__string_& map, const std::string& key, const std::string& value) noexcept {
96
+ map.emplace(key, value);
97
+ }
98
+
99
+ // pragma MARK: std::optional<std::unordered_map<std::string, std::string>>
100
+ /**
101
+ * Specialized version of `std::optional<std::unordered_map<std::string, std::string>>`.
102
+ */
103
+ using std__optional_std__unordered_map_std__string__std__string__ = std::optional<std::unordered_map<std::string, std::string>>;
104
+ inline std::optional<std::unordered_map<std::string, std::string>> create_std__optional_std__unordered_map_std__string__std__string__(const std::unordered_map<std::string, std::string>& value) noexcept {
105
+ return std::optional<std::unordered_map<std::string, std::string>>(value);
106
+ }
107
+ inline bool has_value_std__optional_std__unordered_map_std__string__std__string__(const std::optional<std::unordered_map<std::string, std::string>>& optional) noexcept {
108
+ return optional.has_value();
109
+ }
110
+ inline std::unordered_map<std::string, std::string> get_std__optional_std__unordered_map_std__string__std__string__(const std::optional<std::unordered_map<std::string, std::string>>& optional) noexcept {
111
+ return optional.value();
112
+ }
113
+
114
+ // pragma MARK: std::optional<std::string>
115
+ /**
116
+ * Specialized version of `std::optional<std::string>`.
117
+ */
118
+ using std__optional_std__string_ = std::optional<std::string>;
119
+ inline std::optional<std::string> create_std__optional_std__string_(const std::string& value) noexcept {
120
+ return std::optional<std::string>(value);
121
+ }
122
+ inline bool has_value_std__optional_std__string_(const std::optional<std::string>& optional) noexcept {
123
+ return optional.has_value();
124
+ }
125
+ inline std::string get_std__optional_std__string_(const std::optional<std::string>& optional) noexcept {
126
+ return optional.value();
127
+ }
128
+
129
+ // pragma MARK: std::optional<bool>
130
+ /**
131
+ * Specialized version of `std::optional<bool>`.
132
+ */
133
+ using std__optional_bool_ = std::optional<bool>;
134
+ inline std::optional<bool> create_std__optional_bool_(const bool& value) noexcept {
135
+ return std::optional<bool>(value);
136
+ }
137
+ inline bool has_value_std__optional_bool_(const std::optional<bool>& optional) noexcept {
138
+ return optional.has_value();
139
+ }
140
+ inline bool get_std__optional_bool_(const std::optional<bool>& optional) noexcept {
141
+ return optional.value();
142
+ }
143
+
144
+ // pragma MARK: std::optional<double>
145
+ /**
146
+ * Specialized version of `std::optional<double>`.
147
+ */
148
+ using std__optional_double_ = std::optional<double>;
149
+ inline std::optional<double> create_std__optional_double_(const double& value) noexcept {
150
+ return std::optional<double>(value);
151
+ }
152
+ inline bool has_value_std__optional_double_(const std::optional<double>& optional) noexcept {
153
+ return optional.has_value();
154
+ }
155
+ inline double get_std__optional_double_(const std::optional<double>& optional) noexcept {
156
+ return optional.value();
157
+ }
158
+
159
+ // pragma MARK: std::shared_ptr<Promise<std::unordered_map<std::string, std::string>>>
160
+ /**
161
+ * Specialized version of `std::shared_ptr<Promise<std::unordered_map<std::string, std::string>>>`.
162
+ */
163
+ using std__shared_ptr_Promise_std__unordered_map_std__string__std__string___ = std::shared_ptr<Promise<std::unordered_map<std::string, std::string>>>;
164
+ inline std::shared_ptr<Promise<std::unordered_map<std::string, std::string>>> create_std__shared_ptr_Promise_std__unordered_map_std__string__std__string___() noexcept {
165
+ return Promise<std::unordered_map<std::string, std::string>>::create();
166
+ }
167
+ inline PromiseHolder<std::unordered_map<std::string, std::string>> wrap_std__shared_ptr_Promise_std__unordered_map_std__string__std__string___(std::shared_ptr<Promise<std::unordered_map<std::string, std::string>>> promise) noexcept {
168
+ return PromiseHolder<std::unordered_map<std::string, std::string>>(std::move(promise));
169
+ }
170
+
171
+ // pragma MARK: std::function<void(const std::unordered_map<std::string, std::string>& /* result */)>
172
+ /**
173
+ * Specialized version of `std::function<void(const std::unordered_map<std::string, std::string>&)>`.
174
+ */
175
+ using Func_void_std__unordered_map_std__string__std__string_ = std::function<void(const std::unordered_map<std::string, std::string>& /* result */)>;
176
+ /**
177
+ * Wrapper class for a `std::function<void(const std::unordered_map<std::string, std::string>& / * result * /)>`, this can be used from Swift.
178
+ */
179
+ class Func_void_std__unordered_map_std__string__std__string__Wrapper final {
180
+ public:
181
+ explicit Func_void_std__unordered_map_std__string__std__string__Wrapper(std::function<void(const std::unordered_map<std::string, std::string>& /* result */)>&& func): _function(std::make_unique<std::function<void(const std::unordered_map<std::string, std::string>& /* result */)>>(std::move(func))) {}
182
+ inline void call(std::unordered_map<std::string, std::string> result) const noexcept {
183
+ _function->operator()(result);
184
+ }
185
+ private:
186
+ std::unique_ptr<std::function<void(const std::unordered_map<std::string, std::string>& /* result */)>> _function;
187
+ } SWIFT_NONCOPYABLE;
188
+ Func_void_std__unordered_map_std__string__std__string_ create_Func_void_std__unordered_map_std__string__std__string_(void* NON_NULL swiftClosureWrapper) noexcept;
189
+ inline Func_void_std__unordered_map_std__string__std__string__Wrapper wrap_Func_void_std__unordered_map_std__string__std__string_(Func_void_std__unordered_map_std__string__std__string_ value) noexcept {
190
+ return Func_void_std__unordered_map_std__string__std__string__Wrapper(std::move(value));
191
+ }
192
+
193
+ // pragma MARK: std::function<void(const std::exception_ptr& /* error */)>
194
+ /**
195
+ * Specialized version of `std::function<void(const std::exception_ptr&)>`.
196
+ */
197
+ using Func_void_std__exception_ptr = std::function<void(const std::exception_ptr& /* error */)>;
198
+ /**
199
+ * Wrapper class for a `std::function<void(const std::exception_ptr& / * error * /)>`, this can be used from Swift.
200
+ */
201
+ class Func_void_std__exception_ptr_Wrapper final {
202
+ public:
203
+ 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))) {}
204
+ inline void call(std::exception_ptr error) const noexcept {
205
+ _function->operator()(error);
206
+ }
207
+ private:
208
+ std::unique_ptr<std::function<void(const std::exception_ptr& /* error */)>> _function;
209
+ } SWIFT_NONCOPYABLE;
210
+ Func_void_std__exception_ptr create_Func_void_std__exception_ptr(void* NON_NULL swiftClosureWrapper) noexcept;
211
+ inline Func_void_std__exception_ptr_Wrapper wrap_Func_void_std__exception_ptr(Func_void_std__exception_ptr value) noexcept {
212
+ return Func_void_std__exception_ptr_Wrapper(std::move(value));
213
+ }
214
+
215
+ // pragma MARK: std::function<std::shared_ptr<Promise<std::shared_ptr<Promise<std::unordered_map<std::string, std::string>>>>>()>
216
+ /**
217
+ * Specialized version of `std::function<std::shared_ptr<Promise<std::shared_ptr<Promise<std::unordered_map<std::string, std::string>>>>>()>`.
218
+ */
219
+ using Func_std__shared_ptr_Promise_std__shared_ptr_Promise_std__unordered_map_std__string__std__string_____ = std::function<std::shared_ptr<Promise<std::shared_ptr<Promise<std::unordered_map<std::string, std::string>>>>>()>;
220
+ /**
221
+ * Wrapper class for a `std::function<std::shared_ptr<Promise<std::shared_ptr<Promise<std::unordered_map<std::string, std::string>>>>>()>`, this can be used from Swift.
222
+ */
223
+ class Func_std__shared_ptr_Promise_std__shared_ptr_Promise_std__unordered_map_std__string__std__string______Wrapper final {
224
+ public:
225
+ explicit Func_std__shared_ptr_Promise_std__shared_ptr_Promise_std__unordered_map_std__string__std__string______Wrapper(std::function<std::shared_ptr<Promise<std::shared_ptr<Promise<std::unordered_map<std::string, std::string>>>>>()>&& func): _function(std::make_unique<std::function<std::shared_ptr<Promise<std::shared_ptr<Promise<std::unordered_map<std::string, std::string>>>>>()>>(std::move(func))) {}
226
+ inline std::shared_ptr<Promise<std::shared_ptr<Promise<std::unordered_map<std::string, std::string>>>>> call() const noexcept {
227
+ auto __result = _function->operator()();
228
+ return __result;
229
+ }
230
+ private:
231
+ std::unique_ptr<std::function<std::shared_ptr<Promise<std::shared_ptr<Promise<std::unordered_map<std::string, std::string>>>>>()>> _function;
232
+ } SWIFT_NONCOPYABLE;
233
+ Func_std__shared_ptr_Promise_std__shared_ptr_Promise_std__unordered_map_std__string__std__string_____ create_Func_std__shared_ptr_Promise_std__shared_ptr_Promise_std__unordered_map_std__string__std__string_____(void* NON_NULL swiftClosureWrapper) noexcept;
234
+ inline Func_std__shared_ptr_Promise_std__shared_ptr_Promise_std__unordered_map_std__string__std__string______Wrapper wrap_Func_std__shared_ptr_Promise_std__shared_ptr_Promise_std__unordered_map_std__string__std__string_____(Func_std__shared_ptr_Promise_std__shared_ptr_Promise_std__unordered_map_std__string__std__string_____ value) noexcept {
235
+ return Func_std__shared_ptr_Promise_std__shared_ptr_Promise_std__unordered_map_std__string__std__string______Wrapper(std::move(value));
236
+ }
237
+
238
+ // pragma MARK: std::shared_ptr<Promise<std::shared_ptr<Promise<std::unordered_map<std::string, std::string>>>>>
239
+ /**
240
+ * Specialized version of `std::shared_ptr<Promise<std::shared_ptr<Promise<std::unordered_map<std::string, std::string>>>>>`.
241
+ */
242
+ using std__shared_ptr_Promise_std__shared_ptr_Promise_std__unordered_map_std__string__std__string_____ = std::shared_ptr<Promise<std::shared_ptr<Promise<std::unordered_map<std::string, std::string>>>>>;
243
+ inline std::shared_ptr<Promise<std::shared_ptr<Promise<std::unordered_map<std::string, std::string>>>>> create_std__shared_ptr_Promise_std__shared_ptr_Promise_std__unordered_map_std__string__std__string_____() noexcept {
244
+ return Promise<std::shared_ptr<Promise<std::unordered_map<std::string, std::string>>>>::create();
245
+ }
246
+ inline PromiseHolder<std::shared_ptr<Promise<std::unordered_map<std::string, std::string>>>> wrap_std__shared_ptr_Promise_std__shared_ptr_Promise_std__unordered_map_std__string__std__string_____(std::shared_ptr<Promise<std::shared_ptr<Promise<std::unordered_map<std::string, std::string>>>>> promise) noexcept {
247
+ return PromiseHolder<std::shared_ptr<Promise<std::unordered_map<std::string, std::string>>>>(std::move(promise));
248
+ }
249
+
250
+ // pragma MARK: std::function<void(const std::shared_ptr<Promise<std::unordered_map<std::string, std::string>>>& /* result */)>
251
+ /**
252
+ * Specialized version of `std::function<void(const std::shared_ptr<Promise<std::unordered_map<std::string, std::string>>>&)>`.
253
+ */
254
+ using Func_void_std__shared_ptr_Promise_std__unordered_map_std__string__std__string___ = std::function<void(const std::shared_ptr<Promise<std::unordered_map<std::string, std::string>>>& /* result */)>;
255
+ /**
256
+ * Wrapper class for a `std::function<void(const std::shared_ptr<Promise<std::unordered_map<std::string, std::string>>>& / * result * /)>`, this can be used from Swift.
257
+ */
258
+ class Func_void_std__shared_ptr_Promise_std__unordered_map_std__string__std__string____Wrapper final {
259
+ public:
260
+ explicit Func_void_std__shared_ptr_Promise_std__unordered_map_std__string__std__string____Wrapper(std::function<void(const std::shared_ptr<Promise<std::unordered_map<std::string, std::string>>>& /* result */)>&& func): _function(std::make_unique<std::function<void(const std::shared_ptr<Promise<std::unordered_map<std::string, std::string>>>& /* result */)>>(std::move(func))) {}
261
+ inline void call(std::shared_ptr<Promise<std::unordered_map<std::string, std::string>>> result) const noexcept {
262
+ _function->operator()(result);
263
+ }
264
+ private:
265
+ std::unique_ptr<std::function<void(const std::shared_ptr<Promise<std::unordered_map<std::string, std::string>>>& /* result */)>> _function;
266
+ } SWIFT_NONCOPYABLE;
267
+ Func_void_std__shared_ptr_Promise_std__unordered_map_std__string__std__string___ create_Func_void_std__shared_ptr_Promise_std__unordered_map_std__string__std__string___(void* NON_NULL swiftClosureWrapper) noexcept;
268
+ inline Func_void_std__shared_ptr_Promise_std__unordered_map_std__string__std__string____Wrapper wrap_Func_void_std__shared_ptr_Promise_std__unordered_map_std__string__std__string___(Func_void_std__shared_ptr_Promise_std__unordered_map_std__string__std__string___ value) noexcept {
269
+ return Func_void_std__shared_ptr_Promise_std__unordered_map_std__string__std__string____Wrapper(std::move(value));
270
+ }
271
+
272
+ // pragma MARK: std::optional<std::function<std::shared_ptr<Promise<std::shared_ptr<Promise<std::unordered_map<std::string, std::string>>>>>()>>
273
+ /**
274
+ * Specialized version of `std::optional<std::function<std::shared_ptr<Promise<std::shared_ptr<Promise<std::unordered_map<std::string, std::string>>>>>()>>`.
275
+ */
276
+ using std__optional_std__function_std__shared_ptr_Promise_std__shared_ptr_Promise_std__unordered_map_std__string__std__string_________ = std::optional<std::function<std::shared_ptr<Promise<std::shared_ptr<Promise<std::unordered_map<std::string, std::string>>>>>()>>;
277
+ inline std::optional<std::function<std::shared_ptr<Promise<std::shared_ptr<Promise<std::unordered_map<std::string, std::string>>>>>()>> create_std__optional_std__function_std__shared_ptr_Promise_std__shared_ptr_Promise_std__unordered_map_std__string__std__string_________(const std::function<std::shared_ptr<Promise<std::shared_ptr<Promise<std::unordered_map<std::string, std::string>>>>>()>& value) noexcept {
278
+ return std::optional<std::function<std::shared_ptr<Promise<std::shared_ptr<Promise<std::unordered_map<std::string, std::string>>>>>()>>(value);
279
+ }
280
+ inline bool has_value_std__optional_std__function_std__shared_ptr_Promise_std__shared_ptr_Promise_std__unordered_map_std__string__std__string_________(const std::optional<std::function<std::shared_ptr<Promise<std::shared_ptr<Promise<std::unordered_map<std::string, std::string>>>>>()>>& optional) noexcept {
281
+ return optional.has_value();
282
+ }
283
+ inline std::function<std::shared_ptr<Promise<std::shared_ptr<Promise<std::unordered_map<std::string, std::string>>>>>()> get_std__optional_std__function_std__shared_ptr_Promise_std__shared_ptr_Promise_std__unordered_map_std__string__std__string_________(const std::optional<std::function<std::shared_ptr<Promise<std::shared_ptr<Promise<std::unordered_map<std::string, std::string>>>>>()>>& optional) noexcept {
284
+ return optional.value();
285
+ }
286
+
287
+ // pragma MARK: std::optional<SseEventType>
288
+ /**
289
+ * Specialized version of `std::optional<SseEventType>`.
290
+ */
291
+ using std__optional_SseEventType_ = std::optional<SseEventType>;
292
+ inline std::optional<SseEventType> create_std__optional_SseEventType_(const SseEventType& value) noexcept {
293
+ return std::optional<SseEventType>(value);
294
+ }
295
+ inline bool has_value_std__optional_SseEventType_(const std::optional<SseEventType>& optional) noexcept {
296
+ return optional.has_value();
297
+ }
298
+ inline SseEventType get_std__optional_SseEventType_(const std::optional<SseEventType>& optional) noexcept {
299
+ return optional.value();
300
+ }
301
+
302
+ // pragma MARK: std::optional<std::shared_ptr<AnyMap>>
303
+ /**
304
+ * Specialized version of `std::optional<std::shared_ptr<AnyMap>>`.
305
+ */
306
+ using std__optional_std__shared_ptr_AnyMap__ = std::optional<std::shared_ptr<AnyMap>>;
307
+ inline std::optional<std::shared_ptr<AnyMap>> create_std__optional_std__shared_ptr_AnyMap__(const std::shared_ptr<AnyMap>& value) noexcept {
308
+ return std::optional<std::shared_ptr<AnyMap>>(value);
309
+ }
310
+ inline bool has_value_std__optional_std__shared_ptr_AnyMap__(const std::optional<std::shared_ptr<AnyMap>>& optional) noexcept {
311
+ return optional.has_value();
312
+ }
313
+ inline std::shared_ptr<AnyMap> get_std__optional_std__shared_ptr_AnyMap__(const std::optional<std::shared_ptr<AnyMap>>& optional) noexcept {
314
+ return optional.value();
315
+ }
316
+
317
+ // pragma MARK: std::vector<SseMockEvent>
318
+ /**
319
+ * Specialized version of `std::vector<SseMockEvent>`.
320
+ */
321
+ using std__vector_SseMockEvent_ = std::vector<SseMockEvent>;
322
+ inline std::vector<SseMockEvent> create_std__vector_SseMockEvent_(size_t size) noexcept {
323
+ std::vector<SseMockEvent> vector;
324
+ vector.reserve(size);
325
+ return vector;
326
+ }
327
+
328
+ // pragma MARK: std::optional<SseMockConfig>
329
+ /**
330
+ * Specialized version of `std::optional<SseMockConfig>`.
331
+ */
332
+ using std__optional_SseMockConfig_ = std::optional<SseMockConfig>;
333
+ inline std::optional<SseMockConfig> create_std__optional_SseMockConfig_(const SseMockConfig& value) noexcept {
334
+ return std::optional<SseMockConfig>(value);
335
+ }
336
+ inline bool has_value_std__optional_SseMockConfig_(const std::optional<SseMockConfig>& optional) noexcept {
337
+ return optional.has_value();
338
+ }
339
+ inline SseMockConfig get_std__optional_SseMockConfig_(const std::optional<SseMockConfig>& optional) noexcept {
340
+ return optional.value();
341
+ }
342
+
343
+ // pragma MARK: std::vector<SseEvent>
344
+ /**
345
+ * Specialized version of `std::vector<SseEvent>`.
346
+ */
347
+ using std__vector_SseEvent_ = std::vector<SseEvent>;
348
+ inline std::vector<SseEvent> create_std__vector_SseEvent_(size_t size) noexcept {
349
+ std::vector<SseEvent> vector;
350
+ vector.reserve(size);
351
+ return vector;
352
+ }
353
+
354
+ // pragma MARK: std::function<void(const std::vector<SseEvent>& /* events */)>
355
+ /**
356
+ * Specialized version of `std::function<void(const std::vector<SseEvent>&)>`.
357
+ */
358
+ using Func_void_std__vector_SseEvent_ = std::function<void(const std::vector<SseEvent>& /* events */)>;
359
+ /**
360
+ * Wrapper class for a `std::function<void(const std::vector<SseEvent>& / * events * /)>`, this can be used from Swift.
361
+ */
362
+ class Func_void_std__vector_SseEvent__Wrapper final {
363
+ public:
364
+ explicit Func_void_std__vector_SseEvent__Wrapper(std::function<void(const std::vector<SseEvent>& /* events */)>&& func): _function(std::make_unique<std::function<void(const std::vector<SseEvent>& /* events */)>>(std::move(func))) {}
365
+ inline void call(std::vector<SseEvent> events) const noexcept {
366
+ _function->operator()(events);
367
+ }
368
+ private:
369
+ std::unique_ptr<std::function<void(const std::vector<SseEvent>& /* events */)>> _function;
370
+ } SWIFT_NONCOPYABLE;
371
+ Func_void_std__vector_SseEvent_ create_Func_void_std__vector_SseEvent_(void* NON_NULL swiftClosureWrapper) noexcept;
372
+ inline Func_void_std__vector_SseEvent__Wrapper wrap_Func_void_std__vector_SseEvent_(Func_void_std__vector_SseEvent_ value) noexcept {
373
+ return Func_void_std__vector_SseEvent__Wrapper(std::move(value));
374
+ }
375
+
376
+ // pragma MARK: std::shared_ptr<HybridNitroSseSpec>
377
+ /**
378
+ * Specialized version of `std::shared_ptr<HybridNitroSseSpec>`.
379
+ */
380
+ using std__shared_ptr_HybridNitroSseSpec_ = std::shared_ptr<HybridNitroSseSpec>;
381
+ std::shared_ptr<HybridNitroSseSpec> create_std__shared_ptr_HybridNitroSseSpec_(void* NON_NULL swiftUnsafePointer) noexcept;
382
+ void* NON_NULL get_std__shared_ptr_HybridNitroSseSpec_(std__shared_ptr_HybridNitroSseSpec_ cppType);
383
+
384
+ // pragma MARK: std::weak_ptr<HybridNitroSseSpec>
385
+ using std__weak_ptr_HybridNitroSseSpec_ = std::weak_ptr<HybridNitroSseSpec>;
386
+ inline std__weak_ptr_HybridNitroSseSpec_ weakify_std__shared_ptr_HybridNitroSseSpec_(const std::shared_ptr<HybridNitroSseSpec>& strong) noexcept { return strong; }
387
+
388
+ // pragma MARK: Result<void>
389
+ using Result_void_ = Result<void>;
390
+ inline Result_void_ create_Result_void_() noexcept {
391
+ return Result<void>::withValue();
392
+ }
393
+ inline Result_void_ create_Result_void_(const std::exception_ptr& error) noexcept {
394
+ return Result<void>::withError(error);
395
+ }
396
+
397
+ // pragma MARK: Result<SseStats>
398
+ using Result_SseStats_ = Result<SseStats>;
399
+ inline Result_SseStats_ create_Result_SseStats_(const SseStats& value) noexcept {
400
+ return Result<SseStats>::withValue(value);
401
+ }
402
+ inline Result_SseStats_ create_Result_SseStats_(const std::exception_ptr& error) noexcept {
403
+ return Result<SseStats>::withError(error);
404
+ }
405
+
406
+ // pragma MARK: Result<bool>
407
+ using Result_bool_ = Result<bool>;
408
+ inline Result_bool_ create_Result_bool_(bool value) noexcept {
409
+ return Result<bool>::withValue(std::move(value));
410
+ }
411
+ inline Result_bool_ create_Result_bool_(const std::exception_ptr& error) noexcept {
412
+ return Result<bool>::withError(error);
413
+ }
414
+
415
+ } // namespace margelo::nitro::nitrosse::bridge::swift
@@ -0,0 +1,74 @@
1
+ ///
2
+ /// NitroSse-Swift-Cxx-Umbrella.hpp
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ #pragma once
9
+
10
+ // Forward declarations of C++ defined types
11
+ // Forward declaration of `HttpMethod` to properly resolve imports.
12
+ namespace margelo::nitro::nitrosse { enum class HttpMethod; }
13
+ // Forward declaration of `HybridNitroSseSpec` to properly resolve imports.
14
+ namespace margelo::nitro::nitrosse { class HybridNitroSseSpec; }
15
+ // Forward declaration of `SseConfig` to properly resolve imports.
16
+ namespace margelo::nitro::nitrosse { struct SseConfig; }
17
+ // Forward declaration of `SseEventType` to properly resolve imports.
18
+ namespace margelo::nitro::nitrosse { enum class SseEventType; }
19
+ // Forward declaration of `SseEvent` to properly resolve imports.
20
+ namespace margelo::nitro::nitrosse { struct SseEvent; }
21
+ // Forward declaration of `SseMockConfig` to properly resolve imports.
22
+ namespace margelo::nitro::nitrosse { struct SseMockConfig; }
23
+ // Forward declaration of `SseMockEvent` to properly resolve imports.
24
+ namespace margelo::nitro::nitrosse { struct SseMockEvent; }
25
+ // Forward declaration of `SseMockMode` to properly resolve imports.
26
+ namespace margelo::nitro::nitrosse { enum class SseMockMode; }
27
+ // Forward declaration of `SseStats` to properly resolve imports.
28
+ namespace margelo::nitro::nitrosse { struct SseStats; }
29
+
30
+ // Include C++ defined types
31
+ #include "HttpMethod.hpp"
32
+ #include "HybridNitroSseSpec.hpp"
33
+ #include "SseConfig.hpp"
34
+ #include "SseEvent.hpp"
35
+ #include "SseEventType.hpp"
36
+ #include "SseMockConfig.hpp"
37
+ #include "SseMockEvent.hpp"
38
+ #include "SseMockMode.hpp"
39
+ #include "SseStats.hpp"
40
+ #include <NitroModules/AnyMap.hpp>
41
+ #include <NitroModules/Promise.hpp>
42
+ #include <NitroModules/Result.hpp>
43
+ #include <exception>
44
+ #include <functional>
45
+ #include <memory>
46
+ #include <optional>
47
+ #include <string>
48
+ #include <unordered_map>
49
+ #include <vector>
50
+
51
+ // C++ helpers for Swift
52
+ #include "NitroSse-Swift-Cxx-Bridge.hpp"
53
+
54
+ // Common C++ types used in Swift
55
+ #include <NitroModules/ArrayBufferHolder.hpp>
56
+ #include <NitroModules/AnyMapUtils.hpp>
57
+ #include <NitroModules/RuntimeError.hpp>
58
+ #include <NitroModules/DateToChronoDate.hpp>
59
+
60
+ // Forward declarations of Swift defined types
61
+ // Forward declaration of `HybridNitroSseSpec_cxx` to properly resolve imports.
62
+ namespace NitroSse { class HybridNitroSseSpec_cxx; }
63
+
64
+ // Include Swift defined types
65
+ #if __has_include("NitroSse-Swift.h")
66
+ // This header is generated by Xcode/Swift on every app build.
67
+ // If it cannot be found, make sure the Swift module's name (= podspec name) is actually "NitroSse".
68
+ #include "NitroSse-Swift.h"
69
+ // Same as above, but used when building with frameworks (`use_frameworks`)
70
+ #elif __has_include(<NitroSse/NitroSse-Swift.h>)
71
+ #include <NitroSse/NitroSse-Swift.h>
72
+ #else
73
+ #error NitroSse's autogenerated Swift header cannot be found! Make sure the Swift module's name (= podspec name) is actually "NitroSse", and try building the app first.
74
+ #endif
@@ -0,0 +1,33 @@
1
+ ///
2
+ /// NitroSseAutolinking.mm
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ #import <Foundation/Foundation.h>
9
+ #import <NitroModules/HybridObjectRegistry.hpp>
10
+ #import "NitroSse-Swift-Cxx-Umbrella.hpp"
11
+ #import <type_traits>
12
+
13
+ #include "HybridNitroSseSpecSwift.hpp"
14
+
15
+ @interface NitroSseAutolinking : NSObject
16
+ @end
17
+
18
+ @implementation NitroSseAutolinking
19
+
20
+ + (void) load {
21
+ using namespace margelo::nitro;
22
+ using namespace margelo::nitro::nitrosse;
23
+
24
+ HybridObjectRegistry::registerHybridObjectConstructor(
25
+ "NitroSse",
26
+ []() -> std::shared_ptr<HybridObject> {
27
+ std::shared_ptr<HybridNitroSseSpec> hybridObject = NitroSse::NitroSseAutolinking::createNitroSse();
28
+ return hybridObject;
29
+ }
30
+ );
31
+ }
32
+
33
+ @end
@@ -0,0 +1,26 @@
1
+ ///
2
+ /// NitroSseAutolinking.swift
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ import NitroModules
9
+
10
+ // TODO: Use empty enums once Swift supports exporting them as namespaces
11
+ // See: https://github.com/swiftlang/swift/pull/83616
12
+ public final class NitroSseAutolinking {
13
+ public typealias bridge = margelo.nitro.nitrosse.bridge.swift
14
+
15
+ public static func createNitroSse() -> bridge.std__shared_ptr_HybridNitroSseSpec_ {
16
+ let hybridObject = NitroSse()
17
+ return { () -> bridge.std__shared_ptr_HybridNitroSseSpec_ in
18
+ let __cxxWrapped = hybridObject.getCxxWrapper()
19
+ return __cxxWrapped.getCxxPart()
20
+ }()
21
+ }
22
+
23
+ public static func isNitroSseRecyclable() -> Bool {
24
+ return NitroSse.self is any RecyclableView.Type
25
+ }
26
+ }
@@ -0,0 +1,11 @@
1
+ ///
2
+ /// HybridNitroSseSpecSwift.cpp
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ #include "HybridNitroSseSpecSwift.hpp"
9
+
10
+ namespace margelo::nitro::nitrosse {
11
+ } // namespace margelo::nitro::nitrosse