brick-module 0.1.6 → 0.1.8

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.
@@ -1,341 +0,0 @@
1
- // Generated by Apple Swift version 6.0.3 effective-5.10 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)
2
- #ifndef BRICKMODULE_SWIFT_H
3
- #define BRICKMODULE_SWIFT_H
4
- #pragma clang diagnostic push
5
- #pragma clang diagnostic ignored "-Wgcc-compat"
6
-
7
- #if !defined(__has_include)
8
- # define __has_include(x) 0
9
- #endif
10
- #if !defined(__has_attribute)
11
- # define __has_attribute(x) 0
12
- #endif
13
- #if !defined(__has_feature)
14
- # define __has_feature(x) 0
15
- #endif
16
- #if !defined(__has_warning)
17
- # define __has_warning(x) 0
18
- #endif
19
-
20
- #if __has_include(<swift/objc-prologue.h>)
21
- # include <swift/objc-prologue.h>
22
- #endif
23
-
24
- #pragma clang diagnostic ignored "-Wauto-import"
25
- #if defined(__OBJC__)
26
- #include <Foundation/Foundation.h>
27
- #endif
28
- #if defined(__cplusplus)
29
- #include <cstdint>
30
- #include <cstddef>
31
- #include <cstdbool>
32
- #include <cstring>
33
- #include <stdlib.h>
34
- #include <new>
35
- #include <type_traits>
36
- #else
37
- #include <stdint.h>
38
- #include <stddef.h>
39
- #include <stdbool.h>
40
- #include <string.h>
41
- #endif
42
- #if defined(__cplusplus)
43
- #pragma clang diagnostic push
44
- #pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module"
45
- #if defined(__arm64e__) && __has_include(<ptrauth.h>)
46
- # include <ptrauth.h>
47
- #else
48
- #pragma clang diagnostic push
49
- #pragma clang diagnostic ignored "-Wreserved-macro-identifier"
50
- # ifndef __ptrauth_swift_value_witness_function_pointer
51
- # define __ptrauth_swift_value_witness_function_pointer(x)
52
- # endif
53
- # ifndef __ptrauth_swift_class_method_pointer
54
- # define __ptrauth_swift_class_method_pointer(x)
55
- # endif
56
- #pragma clang diagnostic pop
57
- #endif
58
- #pragma clang diagnostic pop
59
- #endif
60
-
61
- #if !defined(SWIFT_TYPEDEFS)
62
- # define SWIFT_TYPEDEFS 1
63
- # if __has_include(<uchar.h>)
64
- # include <uchar.h>
65
- # elif !defined(__cplusplus)
66
- typedef uint_least16_t char16_t;
67
- typedef uint_least32_t char32_t;
68
- # endif
69
- typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
70
- typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
71
- typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
72
- typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
73
- typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
74
- typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
75
- typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
76
- typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
77
- typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
78
- typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
79
- typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
80
- typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
81
- #endif
82
-
83
- #if !defined(SWIFT_PASTE)
84
- # define SWIFT_PASTE_HELPER(x, y) x##y
85
- # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
86
- #endif
87
- #if !defined(SWIFT_METATYPE)
88
- # define SWIFT_METATYPE(X) Class
89
- #endif
90
- #if !defined(SWIFT_CLASS_PROPERTY)
91
- # if __has_feature(objc_class_property)
92
- # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
93
- # else
94
- # define SWIFT_CLASS_PROPERTY(...)
95
- # endif
96
- #endif
97
- #if !defined(SWIFT_RUNTIME_NAME)
98
- # if __has_attribute(objc_runtime_name)
99
- # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
100
- # else
101
- # define SWIFT_RUNTIME_NAME(X)
102
- # endif
103
- #endif
104
- #if !defined(SWIFT_COMPILE_NAME)
105
- # if __has_attribute(swift_name)
106
- # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
107
- # else
108
- # define SWIFT_COMPILE_NAME(X)
109
- # endif
110
- #endif
111
- #if !defined(SWIFT_METHOD_FAMILY)
112
- # if __has_attribute(objc_method_family)
113
- # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
114
- # else
115
- # define SWIFT_METHOD_FAMILY(X)
116
- # endif
117
- #endif
118
- #if !defined(SWIFT_NOESCAPE)
119
- # if __has_attribute(noescape)
120
- # define SWIFT_NOESCAPE __attribute__((noescape))
121
- # else
122
- # define SWIFT_NOESCAPE
123
- # endif
124
- #endif
125
- #if !defined(SWIFT_RELEASES_ARGUMENT)
126
- # if __has_attribute(ns_consumed)
127
- # define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
128
- # else
129
- # define SWIFT_RELEASES_ARGUMENT
130
- # endif
131
- #endif
132
- #if !defined(SWIFT_WARN_UNUSED_RESULT)
133
- # if __has_attribute(warn_unused_result)
134
- # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
135
- # else
136
- # define SWIFT_WARN_UNUSED_RESULT
137
- # endif
138
- #endif
139
- #if !defined(SWIFT_NORETURN)
140
- # if __has_attribute(noreturn)
141
- # define SWIFT_NORETURN __attribute__((noreturn))
142
- # else
143
- # define SWIFT_NORETURN
144
- # endif
145
- #endif
146
- #if !defined(SWIFT_CLASS_EXTRA)
147
- # define SWIFT_CLASS_EXTRA
148
- #endif
149
- #if !defined(SWIFT_PROTOCOL_EXTRA)
150
- # define SWIFT_PROTOCOL_EXTRA
151
- #endif
152
- #if !defined(SWIFT_ENUM_EXTRA)
153
- # define SWIFT_ENUM_EXTRA
154
- #endif
155
- #if !defined(SWIFT_CLASS)
156
- # if __has_attribute(objc_subclassing_restricted)
157
- # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
158
- # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
159
- # else
160
- # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
161
- # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
162
- # endif
163
- #endif
164
- #if !defined(SWIFT_RESILIENT_CLASS)
165
- # if __has_attribute(objc_class_stub)
166
- # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
167
- # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
168
- # else
169
- # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
170
- # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
171
- # endif
172
- #endif
173
- #if !defined(SWIFT_PROTOCOL)
174
- # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
175
- # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
176
- #endif
177
- #if !defined(SWIFT_EXTENSION)
178
- # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
179
- #endif
180
- #if !defined(OBJC_DESIGNATED_INITIALIZER)
181
- # if __has_attribute(objc_designated_initializer)
182
- # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
183
- # else
184
- # define OBJC_DESIGNATED_INITIALIZER
185
- # endif
186
- #endif
187
- #if !defined(SWIFT_ENUM_ATTR)
188
- # if __has_attribute(enum_extensibility)
189
- # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
190
- # else
191
- # define SWIFT_ENUM_ATTR(_extensibility)
192
- # endif
193
- #endif
194
- #if !defined(SWIFT_ENUM)
195
- # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
196
- # if __has_feature(generalized_swift_name)
197
- # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
198
- # else
199
- # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
200
- # endif
201
- #endif
202
- #if !defined(SWIFT_UNAVAILABLE)
203
- # define SWIFT_UNAVAILABLE __attribute__((unavailable))
204
- #endif
205
- #if !defined(SWIFT_UNAVAILABLE_MSG)
206
- # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
207
- #endif
208
- #if !defined(SWIFT_AVAILABILITY)
209
- # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
210
- #endif
211
- #if !defined(SWIFT_WEAK_IMPORT)
212
- # define SWIFT_WEAK_IMPORT __attribute__((weak_import))
213
- #endif
214
- #if !defined(SWIFT_DEPRECATED)
215
- # define SWIFT_DEPRECATED __attribute__((deprecated))
216
- #endif
217
- #if !defined(SWIFT_DEPRECATED_MSG)
218
- # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
219
- #endif
220
- #if !defined(SWIFT_DEPRECATED_OBJC)
221
- # if __has_feature(attribute_diagnose_if_objc)
222
- # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
223
- # else
224
- # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
225
- # endif
226
- #endif
227
- #if defined(__OBJC__)
228
- #if !defined(IBSegueAction)
229
- # define IBSegueAction
230
- #endif
231
- #endif
232
- #if !defined(SWIFT_EXTERN)
233
- # if defined(__cplusplus)
234
- # define SWIFT_EXTERN extern "C"
235
- # else
236
- # define SWIFT_EXTERN extern
237
- # endif
238
- #endif
239
- #if !defined(SWIFT_CALL)
240
- # define SWIFT_CALL __attribute__((swiftcall))
241
- #endif
242
- #if !defined(SWIFT_INDIRECT_RESULT)
243
- # define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result))
244
- #endif
245
- #if !defined(SWIFT_CONTEXT)
246
- # define SWIFT_CONTEXT __attribute__((swift_context))
247
- #endif
248
- #if !defined(SWIFT_ERROR_RESULT)
249
- # define SWIFT_ERROR_RESULT __attribute__((swift_error_result))
250
- #endif
251
- #if defined(__cplusplus)
252
- # define SWIFT_NOEXCEPT noexcept
253
- #else
254
- # define SWIFT_NOEXCEPT
255
- #endif
256
- #if !defined(SWIFT_C_INLINE_THUNK)
257
- # if __has_attribute(always_inline)
258
- # if __has_attribute(nodebug)
259
- # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug))
260
- # else
261
- # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline))
262
- # endif
263
- # else
264
- # define SWIFT_C_INLINE_THUNK inline
265
- # endif
266
- #endif
267
- #if defined(_WIN32)
268
- #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
269
- # define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
270
- #endif
271
- #else
272
- #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
273
- # define SWIFT_IMPORT_STDLIB_SYMBOL
274
- #endif
275
- #endif
276
- #if defined(__OBJC__)
277
- #if __has_feature(objc_modules)
278
- #if __has_warning("-Watimport-in-framework-header")
279
- #pragma clang diagnostic ignored "-Watimport-in-framework-header"
280
- #endif
281
- @import Foundation;
282
- @import ObjectiveC;
283
- #endif
284
-
285
- #endif
286
- #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
287
- #pragma clang diagnostic ignored "-Wduplicate-method-arg"
288
- #if __has_warning("-Wpragma-clang-attribute")
289
- # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
290
- #endif
291
- #pragma clang diagnostic ignored "-Wunknown-pragmas"
292
- #pragma clang diagnostic ignored "-Wnullability"
293
- #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
294
- #pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
295
-
296
- #if __has_attribute(external_source_symbol)
297
- # pragma push_macro("any")
298
- # undef any
299
- # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="BrickModule",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
300
- # pragma pop_macro("any")
301
- #endif
302
-
303
- #if defined(__OBJC__)
304
- @class NSArray;
305
- @class NSString;
306
- @class RCTEventEmitter;
307
- @class RCTBridge;
308
-
309
- /// Central registry for all Brick modules
310
- /// Manages module lifecycle and provides simple module storage
311
- SWIFT_CLASS("_TtC11BrickModule19BrickModuleRegistry")
312
- @interface BrickModuleRegistry : NSObject
313
- @property (nonatomic, weak) RCTBridge * _Nullable bridge;
314
- //SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) BrickModuleRegistry * _Nonnull shared;)
315
- + (BrickModuleRegistry * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
316
- - (nonnull instancetype)init SWIFT_UNAVAILABLE;
317
- + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
318
- /// Registers an array of Brick modules (Objective-C API)
319
- /// Each module must implement BrickModuleBase protocol
320
- /// This should be called once during app initialization
321
- - (void)registerModules:(NSArray * _Nonnull)modules;
322
- /// Returns list of registered module names
323
- - (NSArray<NSString *> * _Nonnull)getRegisteredModules SWIFT_WARN_UNUSED_RESULT;
324
- /// Sets the React Native event emitter instance for event emission
325
- /// This should be called during app initialization from the main BrickModule
326
- - (void)setEventEmitter:(RCTEventEmitter * _Nonnull)eventEmitter;
327
- /// Returns the React Native event emitter instance for event emission
328
- /// Used by generated module code to emit events to JavaScript
329
- - (RCTEventEmitter * _Nullable)getEventEmitter SWIFT_WARN_UNUSED_RESULT;
330
- /// Clears all registered modules (for testing purposes only)
331
- - (void)clearRegistry;
332
- @end
333
-
334
- #endif
335
- #if __has_attribute(external_source_symbol)
336
- # pragma clang attribute pop
337
- #endif
338
- #if defined(__cplusplus)
339
- #endif
340
- #pragma clang diagnostic pop
341
- #endif