react-native-nitro-sqlite 8.2.1-nitro.1 → 8.2.2-nitro.1

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.
@@ -27,6 +27,7 @@ include_directories(
27
27
  ../cpp
28
28
  ../cpp/specs
29
29
  ../cpp/sqlite
30
+ src/main/cpp
30
31
  )
31
32
 
32
33
  find_library(LOG_LIB log)
@@ -92,6 +92,26 @@ android {
92
92
  }
93
93
  }
94
94
  }
95
+
96
+ packagingOptions {
97
+ excludes = [
98
+ "META-INF",
99
+ "META-INF/**",
100
+ "**/libc++_shared.so",
101
+ "**/libfbjni.so",
102
+ "**/libjsi.so",
103
+ "**/libfolly_json.so",
104
+ "**/libfolly_runtime.so",
105
+ "**/libglog.so",
106
+ "**/libhermes.so",
107
+ "**/libhermes-executor-debug.so",
108
+ "**/libhermes_executor.so",
109
+ "**/libreactnativejni.so",
110
+ "**/libturbomodulejsijni.so",
111
+ "**/libreact_nativemodule_core.so",
112
+ "**/libjscexecutor.so"
113
+ ]
114
+ }
95
115
  }
96
116
 
97
117
  repositories {
@@ -24,7 +24,7 @@ def add_nitrogen_files(spec)
24
24
 
25
25
  spec.dependency "NitroModules"
26
26
 
27
- current_source_files = spec.attributes_hash['source_files'] || []
27
+ current_source_files = Array(spec.attributes_hash['source_files'])
28
28
  spec.source_files = current_source_files + [
29
29
  # Generated cross-platform specs
30
30
  "nitrogen/generated/shared/**/*.{h,hpp,c,cpp,swift}",
@@ -32,7 +32,7 @@ def add_nitrogen_files(spec)
32
32
  "nitrogen/generated/ios/**/*.{h,hpp,c,cpp,mm,swift}",
33
33
  ]
34
34
 
35
- current_public_header_files = spec.attributes_hash['public_header_files'] || []
35
+ current_public_header_files = Array(spec.attributes_hash['public_header_files'])
36
36
  spec.public_header_files = current_public_header_files + [
37
37
  # Generated specs
38
38
  "nitrogen/generated/shared/**/*.{h,hpp}",
@@ -40,7 +40,7 @@ def add_nitrogen_files(spec)
40
40
  "nitrogen/generated/ios/RNNitroSQLite-Swift-Cxx-Bridge.hpp"
41
41
  ]
42
42
 
43
- current_private_header_files = spec.attributes_hash['private_header_files'] || []
43
+ current_private_header_files = Array(spec.attributes_hash['private_header_files'])
44
44
  spec.private_header_files = current_private_header_files + [
45
45
  # iOS specific specs
46
46
  "nitrogen/generated/ios/c++/**/*.{h,hpp}",
@@ -52,5 +52,7 @@ def add_nitrogen_files(spec)
52
52
  "CLANG_CXX_LANGUAGE_STANDARD" => "c++20",
53
53
  # Enables C++ <-> Swift interop (by default it's only C)
54
54
  "SWIFT_OBJC_INTEROP_MODE" => "objcxx",
55
+ # Enables stricter modular headers
56
+ "DEFINES_MODULE" => "YES",
55
57
  })
56
58
  end
@@ -6,3 +6,12 @@
6
6
  ///
7
7
 
8
8
  #include "RNNitroSQLite-Swift-Cxx-Bridge.hpp"
9
+
10
+ // Include C++ implementation defined types
11
+
12
+
13
+ namespace margelo::nitro::rnnitrosqlite::bridge::swift {
14
+
15
+
16
+
17
+ } // namespace margelo::nitro::rnnitrosqlite::bridge::swift
@@ -7,78 +7,20 @@
7
7
 
8
8
  #pragma once
9
9
 
10
+ #if __has_include(<NitroModules/NitroDefines.hpp>)
11
+ #include <NitroModules/NitroDefines.hpp>
12
+ #else
13
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
14
+ #endif
15
+
10
16
  // Forward declarations of C++ defined types
11
- // Forward declaration of `ArrayBufferHolder` to properly resolve imports.
12
- namespace NitroModules { class ArrayBufferHolder; }
13
- // Forward declaration of `ArrayBuffer` to properly resolve imports.
14
- namespace NitroModules { class ArrayBuffer; }
15
- // Forward declaration of `BatchQueryCommand` to properly resolve imports.
16
- namespace margelo::nitro::rnnitrosqlite { struct BatchQueryCommand; }
17
- // Forward declaration of `BatchQueryResult` to properly resolve imports.
18
- namespace margelo::nitro::rnnitrosqlite { struct BatchQueryResult; }
19
- // Forward declaration of `ColumnType` to properly resolve imports.
20
- namespace margelo::nitro::rnnitrosqlite { enum class ColumnType; }
21
- // Forward declaration of `FileLoadResult` to properly resolve imports.
22
- namespace margelo::nitro::rnnitrosqlite { struct FileLoadResult; }
23
- // Forward declaration of `HybridNativeQueryResultSpecSwift` to properly resolve imports.
24
- namespace margelo::nitro::rnnitrosqlite { class HybridNativeQueryResultSpecSwift; }
25
- // Forward declaration of `HybridNativeQueryResultSpec` to properly resolve imports.
26
- namespace margelo::nitro::rnnitrosqlite { class HybridNativeQueryResultSpec; }
27
- // Forward declaration of `SQLiteQueryColumnMetadata` to properly resolve imports.
28
- namespace margelo::nitro::rnnitrosqlite { struct SQLiteQueryColumnMetadata; }
17
+
18
+
19
+ // Forward declarations of Swift defined types
20
+
29
21
 
30
22
  // Include C++ defined types
31
- #if __has_include("BatchQueryCommand.hpp")
32
- #include "BatchQueryCommand.hpp"
33
- #endif
34
- #if __has_include("BatchQueryResult.hpp")
35
- #include "BatchQueryResult.hpp"
36
- #endif
37
- #if __has_include("ColumnType.hpp")
38
- #include "ColumnType.hpp"
39
- #endif
40
- #if __has_include("FileLoadResult.hpp")
41
- #include "FileLoadResult.hpp"
42
- #endif
43
- #if __has_include("HybridNativeQueryResultSpec.hpp")
44
- #include "HybridNativeQueryResultSpec.hpp"
45
- #endif
46
- #if __has_include("HybridNativeQueryResultSpecSwift.hpp")
47
- #include "HybridNativeQueryResultSpecSwift.hpp"
48
- #endif
49
- #if __has_include("SQLiteQueryColumnMetadata.hpp")
50
- #include "SQLiteQueryColumnMetadata.hpp"
51
- #endif
52
- #if __has_include(<NitroModules/ArrayBuffer.hpp>)
53
- #include <NitroModules/ArrayBuffer.hpp>
54
- #endif
55
- #if __has_include(<NitroModules/ArrayBufferHolder.hpp>)
56
- #include <NitroModules/ArrayBufferHolder.hpp>
57
- #endif
58
- #if __has_include(<NitroModules/PromiseHolder.hpp>)
59
- #include <NitroModules/PromiseHolder.hpp>
60
- #endif
61
- #if __has_include(<future>)
62
- #include <future>
63
- #endif
64
- #if __has_include(<memory>)
65
- #include <memory>
66
- #endif
67
- #if __has_include(<optional>)
68
- #include <optional>
69
- #endif
70
- #if __has_include(<string>)
71
- #include <string>
72
- #endif
73
- #if __has_include(<unordered_map>)
74
- #include <unordered_map>
75
- #endif
76
- #if __has_include(<variant>)
77
- #include <variant>
78
- #endif
79
- #if __has_include(<vector>)
80
- #include <vector>
81
- #endif
23
+
82
24
 
83
25
  /**
84
26
  * Contains specialized versions of C++ templated types so they can be accessed from Swift,
@@ -86,218 +28,6 @@ namespace margelo::nitro::rnnitrosqlite { struct SQLiteQueryColumnMetadata; }
86
28
  */
87
29
  namespace margelo::nitro::rnnitrosqlite::bridge::swift {
88
30
 
89
- /**
90
- * Specialized version of `std::optional<double>`.
91
- */
92
- using std__optional_double_ = std::optional<double>;
93
- inline std::optional<double> create_std__optional_double_(const double& value) {
94
- return std::optional<double>(value);
95
- }
96
-
97
- /**
98
- * Wrapper struct for `std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>>`.
99
- * std::variant cannot be used in Swift because of a Swift bug.
100
- * Not even specializing it works. So we create a wrapper struct.
101
- */
102
- struct std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer__ {
103
- std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>> variant;
104
- std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer__(std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>> variant): variant(variant) { }
105
- operator std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>>() const {
106
- return variant;
107
- }
108
- inline size_t index() const {
109
- return variant.index();
110
- }
111
- };
112
- inline std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer__ create_std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer__(const std::string& value) {
113
- return std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer__(value);
114
- }
115
- inline std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer__ create_std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer__(double value) {
116
- return std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer__(value);
117
- }
118
- inline std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer__ create_std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer__(int64_t value) {
119
- return std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer__(value);
120
- }
121
- inline std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer__ create_std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer__(bool value) {
122
- return std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer__(value);
123
- }
124
- inline std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer__ create_std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer__(const std::shared_ptr<ArrayBuffer>& value) {
125
- return std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer__(value);
126
- }
127
- inline std::string get_std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer___0(const std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer__& variantWrapper) {
128
- return std::get<0>(variantWrapper.variant);
129
- }
130
- inline double get_std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer___1(const std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer__& variantWrapper) {
131
- return std::get<1>(variantWrapper.variant);
132
- }
133
- inline int64_t get_std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer___2(const std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer__& variantWrapper) {
134
- return std::get<2>(variantWrapper.variant);
135
- }
136
- inline bool get_std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer___3(const std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer__& variantWrapper) {
137
- return std::get<3>(variantWrapper.variant);
138
- }
139
- inline std::shared_ptr<ArrayBuffer> get_std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer___4(const std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer__& variantWrapper) {
140
- return std::get<4>(variantWrapper.variant);
141
- }
142
-
143
- /**
144
- * Specialized version of `std::unordered_map<std::string, std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>>>`.
145
- */
146
- using std__unordered_map_std__string__std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer___ = std::unordered_map<std::string, std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>>>;
147
- inline std::unordered_map<std::string, std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>>> create_std__unordered_map_std__string__std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer___(size_t size) {
148
- std::unordered_map<std::string, std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>>> map;
149
- map.reserve(size);
150
- return map;
151
- }
152
- inline std::vector<std::string> get_std__unordered_map_std__string__std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer____keys(const std__unordered_map_std__string__std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer___& map) {
153
- std::vector<std::string> keys;
154
- keys.reserve(map.size());
155
- for (const auto& entry : map) {
156
- keys.push_back(entry.first);
157
- }
158
- return keys;
159
- }
160
-
161
- /**
162
- * Specialized version of `std::vector<std::unordered_map<std::string, std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>>>>`.
163
- */
164
- using std__vector_std__unordered_map_std__string__std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer____ = std::vector<std::unordered_map<std::string, std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>>>>;
165
- inline std::vector<std::unordered_map<std::string, std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>>>> create_std__vector_std__unordered_map_std__string__std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer____(size_t size) {
166
- std::vector<std::unordered_map<std::string, std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>>>> vector;
167
- vector.reserve(size);
168
- return vector;
169
- }
170
-
171
- /**
172
- * Specialized version of `std::unordered_map<std::string, SQLiteQueryColumnMetadata>`.
173
- */
174
- using std__unordered_map_std__string__SQLiteQueryColumnMetadata_ = std::unordered_map<std::string, SQLiteQueryColumnMetadata>;
175
- inline std::unordered_map<std::string, SQLiteQueryColumnMetadata> create_std__unordered_map_std__string__SQLiteQueryColumnMetadata_(size_t size) {
176
- std::unordered_map<std::string, SQLiteQueryColumnMetadata> map;
177
- map.reserve(size);
178
- return map;
179
- }
180
- inline std::vector<std::string> get_std__unordered_map_std__string__SQLiteQueryColumnMetadata__keys(const std__unordered_map_std__string__SQLiteQueryColumnMetadata_& map) {
181
- std::vector<std::string> keys;
182
- keys.reserve(map.size());
183
- for (const auto& entry : map) {
184
- keys.push_back(entry.first);
185
- }
186
- return keys;
187
- }
188
-
189
- /**
190
- * Specialized version of `std::optional<std::unordered_map<std::string, SQLiteQueryColumnMetadata>>`.
191
- */
192
- using std__optional_std__unordered_map_std__string__SQLiteQueryColumnMetadata__ = std::optional<std::unordered_map<std::string, SQLiteQueryColumnMetadata>>;
193
- inline std::optional<std::unordered_map<std::string, SQLiteQueryColumnMetadata>> create_std__optional_std__unordered_map_std__string__SQLiteQueryColumnMetadata__(const std::unordered_map<std::string, SQLiteQueryColumnMetadata>& value) {
194
- return std::optional<std::unordered_map<std::string, SQLiteQueryColumnMetadata>>(value);
195
- }
196
-
197
- /**
198
- * Specialized version of `std::optional<std::string>`.
199
- */
200
- using std__optional_std__string_ = std::optional<std::string>;
201
- inline std::optional<std::string> create_std__optional_std__string_(const std::string& value) {
202
- return std::optional<std::string>(value);
203
- }
204
-
205
- /**
206
- * Specialized version of `std::vector<std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>>>`.
207
- */
208
- using std__vector_std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer___ = std::vector<std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>>>;
209
- inline std::vector<std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>>> create_std__vector_std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer___(size_t size) {
210
- std::vector<std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>>> vector;
211
- vector.reserve(size);
212
- return vector;
213
- }
214
-
215
- /**
216
- * Specialized version of `std::optional<std::vector<std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>>>>`.
217
- */
218
- using std__optional_std__vector_std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer____ = std::optional<std::vector<std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>>>>;
219
- inline std::optional<std::vector<std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>>>> create_std__optional_std__vector_std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer____(const std::vector<std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>>>& value) {
220
- return std::optional<std::vector<std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>>>>(value);
221
- }
222
-
223
- /**
224
- * Specialized version of `PromiseHolder<std::shared_ptr<margelo::nitro::rnnitrosqlite::HybridNativeQueryResultSpec>>`.
225
- */
226
- using PromiseHolder_std__shared_ptr_margelo__nitro__rnnitrosqlite__HybridNativeQueryResultSpec__ = PromiseHolder<std::shared_ptr<margelo::nitro::rnnitrosqlite::HybridNativeQueryResultSpec>>;
227
- inline PromiseHolder<std::shared_ptr<margelo::nitro::rnnitrosqlite::HybridNativeQueryResultSpec>> create_PromiseHolder_std__shared_ptr_margelo__nitro__rnnitrosqlite__HybridNativeQueryResultSpec__() {
228
- return PromiseHolder<std::shared_ptr<margelo::nitro::rnnitrosqlite::HybridNativeQueryResultSpec>>();
229
- }
230
-
231
- /**
232
- * Specialized version of `std::vector<std::vector<std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>>>>`.
233
- */
234
- using std__vector_std__vector_std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer____ = std::vector<std::vector<std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>>>>;
235
- inline std::vector<std::vector<std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>>>> create_std__vector_std__vector_std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer____(size_t size) {
236
- std::vector<std::vector<std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>>>> vector;
237
- vector.reserve(size);
238
- return vector;
239
- }
240
-
241
- /**
242
- * Wrapper struct for `std::variant<std::vector<std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>>>, std::vector<std::vector<std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>>>>>`.
243
- * std::variant cannot be used in Swift because of a Swift bug.
244
- * Not even specializing it works. So we create a wrapper struct.
245
- */
246
- struct std__variant_std__vector_std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer_____std__vector_std__vector_std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer_____ {
247
- std::variant<std::vector<std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>>>, std::vector<std::vector<std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>>>>> variant;
248
- std__variant_std__vector_std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer_____std__vector_std__vector_std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer_____(std::variant<std::vector<std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>>>, std::vector<std::vector<std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>>>>> variant): variant(variant) { }
249
- operator std::variant<std::vector<std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>>>, std::vector<std::vector<std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>>>>>() const {
250
- return variant;
251
- }
252
- inline size_t index() const {
253
- return variant.index();
254
- }
255
- };
256
- inline std__variant_std__vector_std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer_____std__vector_std__vector_std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer_____ create_std__variant_std__vector_std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer_____std__vector_std__vector_std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer_____(const std::vector<std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>>>& value) {
257
- return std__variant_std__vector_std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer_____std__vector_std__vector_std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer_____(value);
258
- }
259
- inline std__variant_std__vector_std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer_____std__vector_std__vector_std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer_____ create_std__variant_std__vector_std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer_____std__vector_std__vector_std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer_____(const std::vector<std::vector<std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>>>>& value) {
260
- return std__variant_std__vector_std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer_____std__vector_std__vector_std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer_____(value);
261
- }
262
- inline std::vector<std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>>> get_std__variant_std__vector_std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer_____std__vector_std__vector_std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer______0(const std__variant_std__vector_std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer_____std__vector_std__vector_std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer_____& variantWrapper) {
263
- return std::get<0>(variantWrapper.variant);
264
- }
265
- inline std::vector<std::vector<std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>>>> get_std__variant_std__vector_std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer_____std__vector_std__vector_std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer______1(const std__variant_std__vector_std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer_____std__vector_std__vector_std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer_____& variantWrapper) {
266
- return std::get<1>(variantWrapper.variant);
267
- }
268
-
269
- /**
270
- * Specialized version of `std::optional<std::variant<std::vector<std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>>>, std::vector<std::vector<std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>>>>>>`.
271
- */
272
- using std__optional_std__variant_std__vector_std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer_____std__vector_std__vector_std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer______ = std::optional<std::variant<std::vector<std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>>>, std::vector<std::vector<std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>>>>>>;
273
- inline std::optional<std::variant<std::vector<std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>>>, std::vector<std::vector<std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>>>>>> create_std__optional_std__variant_std__vector_std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer_____std__vector_std__vector_std__variant_std__string__double__int64_t__bool__std__shared_ptr_ArrayBuffer______(const std::variant<std::vector<std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>>>, std::vector<std::vector<std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>>>>>& value) {
274
- return std::optional<std::variant<std::vector<std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>>>, std::vector<std::vector<std::variant<std::string, double, int64_t, bool, std::shared_ptr<ArrayBuffer>>>>>>(value);
275
- }
276
-
277
- /**
278
- * Specialized version of `std::vector<BatchQueryCommand>`.
279
- */
280
- using std__vector_BatchQueryCommand_ = std::vector<BatchQueryCommand>;
281
- inline std::vector<BatchQueryCommand> create_std__vector_BatchQueryCommand_(size_t size) {
282
- std::vector<BatchQueryCommand> vector;
283
- vector.reserve(size);
284
- return vector;
285
- }
286
-
287
- /**
288
- * Specialized version of `PromiseHolder<BatchQueryResult>`.
289
- */
290
- using PromiseHolder_BatchQueryResult_ = PromiseHolder<BatchQueryResult>;
291
- inline PromiseHolder<BatchQueryResult> create_PromiseHolder_BatchQueryResult_() {
292
- return PromiseHolder<BatchQueryResult>();
293
- }
294
31
 
295
- /**
296
- * Specialized version of `PromiseHolder<FileLoadResult>`.
297
- */
298
- using PromiseHolder_FileLoadResult_ = PromiseHolder<FileLoadResult>;
299
- inline PromiseHolder<FileLoadResult> create_PromiseHolder_FileLoadResult_() {
300
- return PromiseHolder<FileLoadResult>();
301
- }
302
32
 
303
33
  } // namespace margelo::nitro::rnnitrosqlite::bridge::swift
@@ -8,39 +8,10 @@
8
8
  #pragma once
9
9
 
10
10
  // Forward declarations of C++ defined types
11
- // Forward declaration of `ArrayBuffer` to properly resolve imports.
12
- namespace NitroModules { class ArrayBuffer; }
13
- // Forward declaration of `BatchQueryCommand` to properly resolve imports.
14
- namespace margelo::nitro::rnnitrosqlite { struct BatchQueryCommand; }
15
- // Forward declaration of `BatchQueryResult` to properly resolve imports.
16
- namespace margelo::nitro::rnnitrosqlite { struct BatchQueryResult; }
17
- // Forward declaration of `ColumnType` to properly resolve imports.
18
- namespace margelo::nitro::rnnitrosqlite { enum class ColumnType; }
19
- // Forward declaration of `FileLoadResult` to properly resolve imports.
20
- namespace margelo::nitro::rnnitrosqlite { struct FileLoadResult; }
21
- // Forward declaration of `HybridNativeQueryResultSpec` to properly resolve imports.
22
- namespace margelo::nitro::rnnitrosqlite { class HybridNativeQueryResultSpec; }
23
- // Forward declaration of `HybridNitroSQLiteSpec` to properly resolve imports.
24
- namespace margelo::nitro::rnnitrosqlite { class HybridNitroSQLiteSpec; }
25
- // Forward declaration of `SQLiteQueryColumnMetadata` to properly resolve imports.
26
- namespace margelo::nitro::rnnitrosqlite { struct SQLiteQueryColumnMetadata; }
11
+
27
12
 
28
13
  // Include C++ defined types
29
- #include "BatchQueryCommand.hpp"
30
- #include "BatchQueryResult.hpp"
31
- #include "ColumnType.hpp"
32
- #include "FileLoadResult.hpp"
33
- #include "HybridNativeQueryResultSpec.hpp"
34
- #include "HybridNitroSQLiteSpec.hpp"
35
- #include "SQLiteQueryColumnMetadata.hpp"
36
- #include <NitroModules/ArrayBuffer.hpp>
37
- #include <future>
38
- #include <memory>
39
- #include <optional>
40
- #include <string>
41
- #include <unordered_map>
42
- #include <variant>
43
- #include <vector>
14
+
44
15
 
45
16
  // C++ helpers for Swift
46
17
  #include "RNNitroSQLite-Swift-Cxx-Bridge.hpp"
@@ -52,10 +23,7 @@ namespace margelo::nitro::rnnitrosqlite { struct SQLiteQueryColumnMetadata; }
52
23
  #include <NitroModules/PromiseHolder.hpp>
53
24
 
54
25
  // Forward declarations of Swift defined types
55
- // Forward declaration of `HybridNativeQueryResultSpecCxx` to properly resolve imports.
56
- namespace RNNitroSQLite { class HybridNativeQueryResultSpecCxx; }
57
- // Forward declaration of `HybridNitroSQLiteSpecCxx` to properly resolve imports.
58
- namespace RNNitroSQLite { class HybridNitroSQLiteSpecCxx; }
26
+
59
27
 
60
28
  // Include Swift defined types
61
29
  #if __has_include("RNNitroSQLite-Swift.h")
@@ -6,5 +6,7 @@
6
6
  ///
7
7
 
8
8
  public final class RNNitroSQLiteAutolinking {
9
+ public typealias bridge = margelo.nitro.rnnitrosqlite.bridge.swift
10
+
9
11
 
10
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-nitro-sqlite",
3
- "version": "8.2.1-nitro.1",
3
+ "version": "8.2.2-nitro.1",
4
4
  "description": "Fast SQLite for react-native",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -46,9 +46,7 @@
46
46
  "typescript": "tsc --noEmit",
47
47
  "lint": "eslint \"**/*.{js,ts,tsx}\" --fix",
48
48
  "prepare": "rm -rf lib && bun typescript && bob build",
49
- "bootstrap": "bun --filter=\"**\" install && bun tsc && bun --filter=\"example\" pods",
50
- "specs": "bun typescript && bun nitro-codegen --logLevel=\"debug\"",
51
- "release": "bun prepare && release-it"
49
+ "specs": "bun typescript && bun nitro-codegen --logLevel=\"debug\""
52
50
  },
53
51
  "dependencies": {
54
52
  "typeorm": "^0.3.20"
@@ -56,10 +54,11 @@
56
54
  "devDependencies": {
57
55
  "@react-native/typescript-config": "0.75.2",
58
56
  "babel-plugin-transform-typescript-metadata": "^0.3.2",
59
- "nitro-codegen": "^0.11.0",
57
+ "nitro-codegen": "^0.13.0",
60
58
  "react": "18.3.1",
61
59
  "react-native": "0.75.2",
62
- "react-native-builder-bob": "^0.18.2"
60
+ "react-native-builder-bob": "^0.18.2",
61
+ "react-native-nitro-modules": "*"
63
62
  },
64
63
  "peerDependencies": {
65
64
  "react": "*",
File without changes
@@ -1,2 +0,0 @@
1
- #Sun Oct 06 16:38:54 CEST 2024
2
- gradle.version=8.9
File without changes