@react-native-firebase/database 26.2.0 → 26.3.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.
package/lib/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '26.2.0';
2
+ export const version = '26.3.1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-firebase/database",
3
- "version": "26.2.0",
3
+ "version": "26.3.1",
4
4
  "author": "Invertase <oss@invertase.io> (http://invertase.io)",
5
5
  "description": "React Native Firebase - The Firebase Realtime Database is a cloud-hosted database. Data is stored as JSON and synchronized in realtime to every connected client. React Native Firebase provides native integration with the Android & iOS Firebase SDKs, supporting both realtime data sync and offline capabilities.",
6
6
  "main": "./dist/module/index.js",
@@ -29,12 +29,13 @@
29
29
  "compile": "bob build",
30
30
  "prepare": "yarn run build && yarn compile",
31
31
  "codegen": "yarn android:codegen && yarn ios:codegen",
32
- "android:codegen": "rimraf android/src/reactnative/java/io/invertase/firebase/database/generated && npx @react-native-community/cli codegen --platform android --outputPath=./android/src/reactnative/java/io/invertase/firebase/database/generated",
33
- "ios:codegen": "rimraf ios/generated && npx @react-native-community/cli codegen --platform ios --outputPath=./ios/generated"
32
+ "android:codegen": "node ../../scripts/codegen-package.mjs database android",
33
+ "ios:codegen": "node ../../scripts/codegen-package.mjs database ios"
34
34
  },
35
35
  "repository": {
36
36
  "type": "git",
37
- "url": "https://github.com/invertase/react-native-firebase/tree/main/packages/database"
37
+ "url": "https://github.com/invertase/react-native-firebase",
38
+ "directory": "packages/database"
38
39
  },
39
40
  "license": "Apache-2.0",
40
41
  "keywords": [
@@ -47,10 +48,10 @@
47
48
  "realtome database"
48
49
  ],
49
50
  "peerDependencies": {
50
- "@react-native-firebase/app": "26.2.0"
51
+ "@react-native-firebase/app": "26.3.1"
51
52
  },
52
53
  "devDependencies": {
53
- "@react-native-firebase/app": "26.2.0",
54
+ "@react-native-firebase/app": "26.3.1",
54
55
  "react-native-builder-bob": "^0.41.0"
55
56
  },
56
57
  "publishConfig": {
@@ -88,5 +89,5 @@
88
89
  "node_modules/",
89
90
  "dist/"
90
91
  ],
91
- "gitHead": "b7efa8ca2781b5102975ee5169ee6fc52e9c1588"
92
+ "gitHead": "af89e2709dc13a1f312d1a31881094c499d82581"
92
93
  }
@@ -1,257 +0,0 @@
1
- /**
2
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be lost
5
- * once the code is regenerated.
6
- *
7
- * @generated by codegen project: GenerateModuleCpp.js
8
- */
9
-
10
- #include "RNFBDatabaseTurboModulesJSI.h"
11
-
12
- namespace facebook::react {
13
-
14
- static jsi::Value __hostFunction_NativeRNFBTurboDatabaseCxxSpecJSI_goOnline(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
15
- static_cast<NativeRNFBTurboDatabaseCxxSpecJSI *>(&turboModule)->goOnline(
16
- rt,
17
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
18
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt)
19
- );
20
- return jsi::Value::undefined();
21
- }
22
- static jsi::Value __hostFunction_NativeRNFBTurboDatabaseCxxSpecJSI_goOffline(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
23
- static_cast<NativeRNFBTurboDatabaseCxxSpecJSI *>(&turboModule)->goOffline(
24
- rt,
25
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
26
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt)
27
- );
28
- return jsi::Value::undefined();
29
- }
30
- static jsi::Value __hostFunction_NativeRNFBTurboDatabaseCxxSpecJSI_setPersistenceEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
31
- static_cast<NativeRNFBTurboDatabaseCxxSpecJSI *>(&turboModule)->setPersistenceEnabled(
32
- rt,
33
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
34
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt),
35
- count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asBool()
36
- );
37
- return jsi::Value::undefined();
38
- }
39
- static jsi::Value __hostFunction_NativeRNFBTurboDatabaseCxxSpecJSI_setLoggingEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
40
- static_cast<NativeRNFBTurboDatabaseCxxSpecJSI *>(&turboModule)->setLoggingEnabled(
41
- rt,
42
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
43
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt),
44
- count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asBool()
45
- );
46
- return jsi::Value::undefined();
47
- }
48
- static jsi::Value __hostFunction_NativeRNFBTurboDatabaseCxxSpecJSI_setPersistenceCacheSizeBytes(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
49
- static_cast<NativeRNFBTurboDatabaseCxxSpecJSI *>(&turboModule)->setPersistenceCacheSizeBytes(
50
- rt,
51
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
52
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt),
53
- count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asNumber()
54
- );
55
- return jsi::Value::undefined();
56
- }
57
- static jsi::Value __hostFunction_NativeRNFBTurboDatabaseCxxSpecJSI_useEmulator(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
58
- static_cast<NativeRNFBTurboDatabaseCxxSpecJSI *>(&turboModule)->useEmulator(
59
- rt,
60
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
61
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt),
62
- count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asString(rt),
63
- count <= 3 ? throw jsi::JSError(rt, "Expected argument in position 3 to be passed") : args[3].asNumber()
64
- );
65
- return jsi::Value::undefined();
66
- }
67
-
68
- NativeRNFBTurboDatabaseCxxSpecJSI::NativeRNFBTurboDatabaseCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
69
- : TurboModule("NativeRNFBTurboDatabase", jsInvoker) {
70
- methodMap_["goOnline"] = MethodMetadata {2, __hostFunction_NativeRNFBTurboDatabaseCxxSpecJSI_goOnline};
71
- methodMap_["goOffline"] = MethodMetadata {2, __hostFunction_NativeRNFBTurboDatabaseCxxSpecJSI_goOffline};
72
- methodMap_["setPersistenceEnabled"] = MethodMetadata {3, __hostFunction_NativeRNFBTurboDatabaseCxxSpecJSI_setPersistenceEnabled};
73
- methodMap_["setLoggingEnabled"] = MethodMetadata {3, __hostFunction_NativeRNFBTurboDatabaseCxxSpecJSI_setLoggingEnabled};
74
- methodMap_["setPersistenceCacheSizeBytes"] = MethodMetadata {3, __hostFunction_NativeRNFBTurboDatabaseCxxSpecJSI_setPersistenceCacheSizeBytes};
75
- methodMap_["useEmulator"] = MethodMetadata {4, __hostFunction_NativeRNFBTurboDatabaseCxxSpecJSI_useEmulator};
76
- }
77
- static jsi::Value __hostFunction_NativeRNFBTurboDatabaseOnDisconnectCxxSpecJSI_onDisconnectCancel(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
78
- return static_cast<NativeRNFBTurboDatabaseOnDisconnectCxxSpecJSI *>(&turboModule)->onDisconnectCancel(
79
- rt,
80
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
81
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt),
82
- count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asString(rt)
83
- );
84
- }
85
- static jsi::Value __hostFunction_NativeRNFBTurboDatabaseOnDisconnectCxxSpecJSI_onDisconnectRemove(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
86
- return static_cast<NativeRNFBTurboDatabaseOnDisconnectCxxSpecJSI *>(&turboModule)->onDisconnectRemove(
87
- rt,
88
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
89
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt),
90
- count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asString(rt)
91
- );
92
- }
93
- static jsi::Value __hostFunction_NativeRNFBTurboDatabaseOnDisconnectCxxSpecJSI_onDisconnectSet(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
94
- return static_cast<NativeRNFBTurboDatabaseOnDisconnectCxxSpecJSI *>(&turboModule)->onDisconnectSet(
95
- rt,
96
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
97
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt),
98
- count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asString(rt),
99
- count <= 3 ? throw jsi::JSError(rt, "Expected argument in position 3 to be passed") : args[3].asObject(rt)
100
- );
101
- }
102
- static jsi::Value __hostFunction_NativeRNFBTurboDatabaseOnDisconnectCxxSpecJSI_onDisconnectSetWithPriority(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
103
- return static_cast<NativeRNFBTurboDatabaseOnDisconnectCxxSpecJSI *>(&turboModule)->onDisconnectSetWithPriority(
104
- rt,
105
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
106
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt),
107
- count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asString(rt),
108
- count <= 3 ? throw jsi::JSError(rt, "Expected argument in position 3 to be passed") : args[3].asObject(rt)
109
- );
110
- }
111
- static jsi::Value __hostFunction_NativeRNFBTurboDatabaseOnDisconnectCxxSpecJSI_onDisconnectUpdate(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
112
- return static_cast<NativeRNFBTurboDatabaseOnDisconnectCxxSpecJSI *>(&turboModule)->onDisconnectUpdate(
113
- rt,
114
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
115
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt),
116
- count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asString(rt),
117
- count <= 3 ? throw jsi::JSError(rt, "Expected argument in position 3 to be passed") : args[3].asObject(rt)
118
- );
119
- }
120
-
121
- NativeRNFBTurboDatabaseOnDisconnectCxxSpecJSI::NativeRNFBTurboDatabaseOnDisconnectCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
122
- : TurboModule("NativeRNFBTurboDatabaseOnDisconnect", jsInvoker) {
123
- methodMap_["onDisconnectCancel"] = MethodMetadata {3, __hostFunction_NativeRNFBTurboDatabaseOnDisconnectCxxSpecJSI_onDisconnectCancel};
124
- methodMap_["onDisconnectRemove"] = MethodMetadata {3, __hostFunction_NativeRNFBTurboDatabaseOnDisconnectCxxSpecJSI_onDisconnectRemove};
125
- methodMap_["onDisconnectSet"] = MethodMetadata {4, __hostFunction_NativeRNFBTurboDatabaseOnDisconnectCxxSpecJSI_onDisconnectSet};
126
- methodMap_["onDisconnectSetWithPriority"] = MethodMetadata {4, __hostFunction_NativeRNFBTurboDatabaseOnDisconnectCxxSpecJSI_onDisconnectSetWithPriority};
127
- methodMap_["onDisconnectUpdate"] = MethodMetadata {4, __hostFunction_NativeRNFBTurboDatabaseOnDisconnectCxxSpecJSI_onDisconnectUpdate};
128
- }
129
- static jsi::Value __hostFunction_NativeRNFBTurboDatabaseQueryCxxSpecJSI_once(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
130
- return static_cast<NativeRNFBTurboDatabaseQueryCxxSpecJSI *>(&turboModule)->once(
131
- rt,
132
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
133
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt),
134
- count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asString(rt),
135
- count <= 3 ? throw jsi::JSError(rt, "Expected argument in position 3 to be passed") : args[3].asObject(rt).asArray(rt),
136
- count <= 4 ? throw jsi::JSError(rt, "Expected argument in position 4 to be passed") : args[4].asString(rt)
137
- );
138
- }
139
- static jsi::Value __hostFunction_NativeRNFBTurboDatabaseQueryCxxSpecJSI_on(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
140
- static_cast<NativeRNFBTurboDatabaseQueryCxxSpecJSI *>(&turboModule)->on(
141
- rt,
142
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
143
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt),
144
- count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asObject(rt)
145
- );
146
- return jsi::Value::undefined();
147
- }
148
- static jsi::Value __hostFunction_NativeRNFBTurboDatabaseQueryCxxSpecJSI_off(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
149
- static_cast<NativeRNFBTurboDatabaseQueryCxxSpecJSI *>(&turboModule)->off(
150
- rt,
151
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
152
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt)
153
- );
154
- return jsi::Value::undefined();
155
- }
156
- static jsi::Value __hostFunction_NativeRNFBTurboDatabaseQueryCxxSpecJSI_keepSynced(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
157
- return static_cast<NativeRNFBTurboDatabaseQueryCxxSpecJSI *>(&turboModule)->keepSynced(
158
- rt,
159
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
160
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt),
161
- count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asString(rt),
162
- count <= 3 ? throw jsi::JSError(rt, "Expected argument in position 3 to be passed") : args[3].asString(rt),
163
- count <= 4 ? throw jsi::JSError(rt, "Expected argument in position 4 to be passed") : args[4].asObject(rt).asArray(rt),
164
- count <= 5 ? throw jsi::JSError(rt, "Expected argument in position 5 to be passed") : args[5].asBool()
165
- );
166
- }
167
-
168
- NativeRNFBTurboDatabaseQueryCxxSpecJSI::NativeRNFBTurboDatabaseQueryCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
169
- : TurboModule("NativeRNFBTurboDatabaseQuery", jsInvoker) {
170
- methodMap_["once"] = MethodMetadata {5, __hostFunction_NativeRNFBTurboDatabaseQueryCxxSpecJSI_once};
171
- methodMap_["on"] = MethodMetadata {3, __hostFunction_NativeRNFBTurboDatabaseQueryCxxSpecJSI_on};
172
- methodMap_["off"] = MethodMetadata {2, __hostFunction_NativeRNFBTurboDatabaseQueryCxxSpecJSI_off};
173
- methodMap_["keepSynced"] = MethodMetadata {6, __hostFunction_NativeRNFBTurboDatabaseQueryCxxSpecJSI_keepSynced};
174
- }
175
- static jsi::Value __hostFunction_NativeRNFBTurboDatabaseReferenceCxxSpecJSI_set(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
176
- return static_cast<NativeRNFBTurboDatabaseReferenceCxxSpecJSI *>(&turboModule)->set(
177
- rt,
178
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
179
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt),
180
- count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asString(rt),
181
- count <= 3 ? throw jsi::JSError(rt, "Expected argument in position 3 to be passed") : args[3].asObject(rt)
182
- );
183
- }
184
- static jsi::Value __hostFunction_NativeRNFBTurboDatabaseReferenceCxxSpecJSI_update(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
185
- return static_cast<NativeRNFBTurboDatabaseReferenceCxxSpecJSI *>(&turboModule)->update(
186
- rt,
187
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
188
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt),
189
- count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asString(rt),
190
- count <= 3 ? throw jsi::JSError(rt, "Expected argument in position 3 to be passed") : args[3].asObject(rt)
191
- );
192
- }
193
- static jsi::Value __hostFunction_NativeRNFBTurboDatabaseReferenceCxxSpecJSI_setWithPriority(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
194
- return static_cast<NativeRNFBTurboDatabaseReferenceCxxSpecJSI *>(&turboModule)->setWithPriority(
195
- rt,
196
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
197
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt),
198
- count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asString(rt),
199
- count <= 3 ? throw jsi::JSError(rt, "Expected argument in position 3 to be passed") : args[3].asObject(rt)
200
- );
201
- }
202
- static jsi::Value __hostFunction_NativeRNFBTurboDatabaseReferenceCxxSpecJSI_remove(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
203
- return static_cast<NativeRNFBTurboDatabaseReferenceCxxSpecJSI *>(&turboModule)->remove(
204
- rt,
205
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
206
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt),
207
- count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asString(rt)
208
- );
209
- }
210
- static jsi::Value __hostFunction_NativeRNFBTurboDatabaseReferenceCxxSpecJSI_setPriority(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
211
- return static_cast<NativeRNFBTurboDatabaseReferenceCxxSpecJSI *>(&turboModule)->setPriority(
212
- rt,
213
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
214
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt),
215
- count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asString(rt),
216
- count <= 3 ? throw jsi::JSError(rt, "Expected argument in position 3 to be passed") : args[3].asObject(rt)
217
- );
218
- }
219
-
220
- NativeRNFBTurboDatabaseReferenceCxxSpecJSI::NativeRNFBTurboDatabaseReferenceCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
221
- : TurboModule("NativeRNFBTurboDatabaseReference", jsInvoker) {
222
- methodMap_["set"] = MethodMetadata {4, __hostFunction_NativeRNFBTurboDatabaseReferenceCxxSpecJSI_set};
223
- methodMap_["update"] = MethodMetadata {4, __hostFunction_NativeRNFBTurboDatabaseReferenceCxxSpecJSI_update};
224
- methodMap_["setWithPriority"] = MethodMetadata {4, __hostFunction_NativeRNFBTurboDatabaseReferenceCxxSpecJSI_setWithPriority};
225
- methodMap_["remove"] = MethodMetadata {3, __hostFunction_NativeRNFBTurboDatabaseReferenceCxxSpecJSI_remove};
226
- methodMap_["setPriority"] = MethodMetadata {4, __hostFunction_NativeRNFBTurboDatabaseReferenceCxxSpecJSI_setPriority};
227
- }
228
- static jsi::Value __hostFunction_NativeRNFBTurboDatabaseTransactionCxxSpecJSI_transactionStart(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
229
- static_cast<NativeRNFBTurboDatabaseTransactionCxxSpecJSI *>(&turboModule)->transactionStart(
230
- rt,
231
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
232
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt),
233
- count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asString(rt),
234
- count <= 3 ? throw jsi::JSError(rt, "Expected argument in position 3 to be passed") : args[3].asNumber(),
235
- count <= 4 ? throw jsi::JSError(rt, "Expected argument in position 4 to be passed") : args[4].asBool()
236
- );
237
- return jsi::Value::undefined();
238
- }
239
- static jsi::Value __hostFunction_NativeRNFBTurboDatabaseTransactionCxxSpecJSI_transactionTryCommit(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
240
- static_cast<NativeRNFBTurboDatabaseTransactionCxxSpecJSI *>(&turboModule)->transactionTryCommit(
241
- rt,
242
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
243
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt),
244
- count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asNumber(),
245
- count <= 3 ? throw jsi::JSError(rt, "Expected argument in position 3 to be passed") : args[3].asObject(rt)
246
- );
247
- return jsi::Value::undefined();
248
- }
249
-
250
- NativeRNFBTurboDatabaseTransactionCxxSpecJSI::NativeRNFBTurboDatabaseTransactionCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
251
- : TurboModule("NativeRNFBTurboDatabaseTransaction", jsInvoker) {
252
- methodMap_["transactionStart"] = MethodMetadata {5, __hostFunction_NativeRNFBTurboDatabaseTransactionCxxSpecJSI_transactionStart};
253
- methodMap_["transactionTryCommit"] = MethodMetadata {4, __hostFunction_NativeRNFBTurboDatabaseTransactionCxxSpecJSI_transactionTryCommit};
254
- }
255
-
256
-
257
- } // namespace facebook::react
@@ -1,25 +0,0 @@
1
- /*
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
-
8
-
9
- #import <Foundation/Foundation.h>
10
-
11
- #if __has_include(<React-RCTAppDelegate/RCTDependencyProvider.h>)
12
- #import <React-RCTAppDelegate/RCTDependencyProvider.h>
13
- #elif __has_include(<React_RCTAppDelegate/RCTDependencyProvider.h>)
14
- #import <React_RCTAppDelegate/RCTDependencyProvider.h>
15
- #else
16
- #import "RCTDependencyProvider.h"
17
- #endif
18
-
19
- NS_ASSUME_NONNULL_BEGIN
20
-
21
- @interface RCTAppDependencyProvider : NSObject <RCTDependencyProvider>
22
-
23
- @end
24
-
25
- NS_ASSUME_NONNULL_END
@@ -1,55 +0,0 @@
1
- /*
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
-
8
- #import "RCTAppDependencyProvider.h"
9
- #import <ReactCodegen/RCTModulesConformingToProtocolsProvider.h>
10
- #import <ReactCodegen/RCTThirdPartyComponentsProvider.h>
11
-
12
- @implementation RCTAppDependencyProvider {
13
- NSArray<NSString *> * _URLRequestHandlerClassNames;
14
- NSArray<NSString *> * _imageDataDecoderClassNames;
15
- NSArray<NSString *> * _imageURLLoaderClassNames;
16
- NSDictionary<NSString *,Class<RCTComponentViewProtocol>> * _thirdPartyFabricComponents;
17
- }
18
-
19
- - (nonnull NSArray<NSString *> *)URLRequestHandlerClassNames {
20
- static dispatch_once_t requestUrlToken;
21
- dispatch_once(&requestUrlToken, ^{
22
- self->_URLRequestHandlerClassNames = RCTModulesConformingToProtocolsProvider.URLRequestHandlerClassNames;
23
- });
24
-
25
- return _URLRequestHandlerClassNames;
26
- }
27
-
28
- - (nonnull NSArray<NSString *> *)imageDataDecoderClassNames {
29
- static dispatch_once_t dataDecoderToken;
30
- dispatch_once(&dataDecoderToken, ^{
31
- _imageDataDecoderClassNames = RCTModulesConformingToProtocolsProvider.imageDataDecoderClassNames;
32
- });
33
-
34
- return _imageDataDecoderClassNames;
35
- }
36
-
37
- - (nonnull NSArray<NSString *> *)imageURLLoaderClassNames {
38
- static dispatch_once_t urlLoaderToken;
39
- dispatch_once(&urlLoaderToken, ^{
40
- _imageURLLoaderClassNames = RCTModulesConformingToProtocolsProvider.imageURLLoaderClassNames;
41
- });
42
-
43
- return _imageURLLoaderClassNames;
44
- }
45
-
46
- - (nonnull NSDictionary<NSString *,Class<RCTComponentViewProtocol>> *)thirdPartyFabricComponents {
47
- static dispatch_once_t nativeComponentsToken;
48
- dispatch_once(&nativeComponentsToken, ^{
49
- _thirdPartyFabricComponents = RCTThirdPartyComponentsProvider.thirdPartyFabricComponents;
50
- });
51
-
52
- return _thirdPartyFabricComponents;
53
- }
54
-
55
- @end
@@ -1,18 +0,0 @@
1
- /*
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
-
8
- #import <Foundation/Foundation.h>
9
-
10
- @interface RCTModulesConformingToProtocolsProvider: NSObject
11
-
12
- +(NSArray<NSString *> *)imageURLLoaderClassNames;
13
-
14
- +(NSArray<NSString *> *)imageDataDecoderClassNames;
15
-
16
- +(NSArray<NSString *> *)URLRequestHandlerClassNames;
17
-
18
- @end
@@ -1,33 +0,0 @@
1
- /*
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
-
8
- #import "RCTModulesConformingToProtocolsProvider.h"
9
-
10
- @implementation RCTModulesConformingToProtocolsProvider
11
-
12
- +(NSArray<NSString *> *)imageURLLoaderClassNames
13
- {
14
- return @[
15
-
16
- ];
17
- }
18
-
19
- +(NSArray<NSString *> *)imageDataDecoderClassNames
20
- {
21
- return @[
22
-
23
- ];
24
- }
25
-
26
- +(NSArray<NSString *> *)URLRequestHandlerClassNames
27
- {
28
- return @[
29
-
30
- ];
31
- }
32
-
33
- @end
@@ -1,16 +0,0 @@
1
- /*
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
-
8
- #import <Foundation/Foundation.h>
9
-
10
- @protocol RCTComponentViewProtocol;
11
-
12
- @interface RCTThirdPartyComponentsProvider: NSObject
13
-
14
- + (NSDictionary<NSString *, Class<RCTComponentViewProtocol>> *)thirdPartyFabricComponents;
15
-
16
- @end
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
-
8
-
9
- #import <Foundation/Foundation.h>
10
-
11
- #import "RCTThirdPartyComponentsProvider.h"
12
- #import <React/RCTComponentViewProtocol.h>
13
-
14
- @implementation RCTThirdPartyComponentsProvider
15
-
16
- + (NSDictionary<NSString *, Class<RCTComponentViewProtocol>> *)thirdPartyFabricComponents
17
- {
18
- return @{
19
-
20
- };
21
- }
22
-
23
- @end