@react-native-firebase/database 26.3.2 → 26.4.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 (31) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/RNFBDatabase.podspec +3 -1
  3. package/android/build.gradle +2 -0
  4. package/android/src/main/java/io/invertase/firebase/database/DatabaseAbortable.java +22 -0
  5. package/android/src/main/java/io/invertase/firebase/database/DatabaseQueryHandle.java +24 -0
  6. package/android/src/main/java/io/invertase/firebase/database/RNFBDatabaseListenerRegistry.java +117 -0
  7. package/android/src/main/java/io/invertase/firebase/database/RNFBDatabaseQueryRegistry.java +78 -0
  8. package/android/src/main/java/io/invertase/firebase/database/RNFBDatabaseTransactionRegistry.java +71 -0
  9. package/android/src/reactnative/java/io/invertase/firebase/database/NativeRNFBTurboDatabaseQuery.java +18 -22
  10. package/android/src/reactnative/java/io/invertase/firebase/database/NativeRNFBTurboDatabaseTransaction.java +12 -25
  11. package/android/src/reactnative/java/io/invertase/firebase/database/ReactNativeFirebaseDatabaseQuery.java +30 -33
  12. package/android/src/reactnative/java/io/invertase/firebase/database/ReactNativeFirebaseDatabaseTransactionHandler.java +3 -3
  13. package/android/src/test/java/io/invertase/firebase/database/RNFBDatabaseListenerRegistryTest.java +160 -0
  14. package/android/src/test/java/io/invertase/firebase/database/RNFBDatabaseQueryRegistryTest.java +434 -0
  15. package/android/src/test/java/io/invertase/firebase/database/RNFBDatabaseTransactionRegistryTest.java +199 -0
  16. package/dist/module/version.js +1 -1
  17. package/dist/typescript/lib/index.d.ts +1 -1
  18. package/dist/typescript/lib/version.d.ts +1 -1
  19. package/ios/RNFBDatabase/RNFBDatabaseListenerRegistry.h +37 -0
  20. package/ios/RNFBDatabase/RNFBDatabaseListenerRegistry.m +84 -0
  21. package/ios/RNFBDatabase/RNFBDatabaseQuery.h +3 -2
  22. package/ios/RNFBDatabase/RNFBDatabaseQuery.m +14 -13
  23. package/ios/RNFBDatabase/RNFBDatabaseQueryHelper.m +24 -21
  24. package/ios/RNFBDatabase/RNFBDatabaseQueryRegistry.h +37 -0
  25. package/ios/RNFBDatabase/RNFBDatabaseQueryRegistry.m +105 -0
  26. package/ios/RNFBDatabaseUnitTests/RNFBDatabaseListenerRegistryTests.m +90 -0
  27. package/ios/RNFBDatabaseUnitTests/RNFBDatabaseQueryRegistryTests.m +390 -0
  28. package/ios/RNFBDatabaseUnitTests/RNFBDatabaseUnitTests.xcodeproj/project.pbxproj +261 -0
  29. package/ios/RNFBDatabaseUnitTests/RNFBDatabaseUnitTests.xcodeproj/xcshareddata/xcschemes/RNFBDatabaseUnitTests.xcscheme +69 -0
  30. package/lib/version.ts +1 -1
  31. package/package.json +5 -4
@@ -0,0 +1,261 @@
1
+ // !$*UTF8*$!
2
+ {
3
+ archiveVersion = 1;
4
+ classes = {
5
+ };
6
+ objectVersion = 56;
7
+ objects = {
8
+
9
+ /* Begin PBXBuildFile section */
10
+ D8000000000000000000000A /* RNFBHandleMap.m in Sources */ = {isa = PBXBuildFile; fileRef = D80000000000000000000008 /* RNFBHandleMap.m */; };
11
+ D8000000000000000000000B /* RNFBDatabaseListenerRegistry.m in Sources */ = {isa = PBXBuildFile; fileRef = D80000000000000000000018 /* RNFBDatabaseListenerRegistry.m */; };
12
+ D8000000000000000000000C /* RNFBDatabaseListenerRegistryTests.m in Sources */ = {isa = PBXBuildFile; fileRef = D80000000000000000000009 /* RNFBDatabaseListenerRegistryTests.m */; };
13
+ D80000000000000000000020 /* RNFBDatabaseQueryRegistry.m in Sources */ = {isa = PBXBuildFile; fileRef = D80000000000000000000021 /* RNFBDatabaseQueryRegistry.m */; };
14
+ D80000000000000000000022 /* RNFBDatabaseQueryRegistryTests.m in Sources */ = {isa = PBXBuildFile; fileRef = D80000000000000000000023 /* RNFBDatabaseQueryRegistryTests.m */; };
15
+ D80000000000000000000015 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D80000000000000000000014 /* XCTest.framework */; };
16
+ /* End PBXBuildFile section */
17
+
18
+ /* Begin PBXFileReference section */
19
+ D80000000000000000000003 /* RNFBDatabaseUnitTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RNFBDatabaseUnitTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
20
+ D80000000000000000000007 /* RNFBHandleMap.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = RNFBHandleMap.h; path = ../../../app/ios/RNFBApp/RNFBHandleMap.h; sourceTree = SOURCE_ROOT; };
21
+ D80000000000000000000008 /* RNFBHandleMap.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = RNFBHandleMap.m; path = ../../../app/ios/RNFBApp/RNFBHandleMap.m; sourceTree = SOURCE_ROOT; };
22
+ D80000000000000000000009 /* RNFBDatabaseListenerRegistryTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RNFBDatabaseListenerRegistryTests.m; sourceTree = "<group>"; };
23
+ D80000000000000000000016 /* RNFBDatabaseListenerRegistry.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = RNFBDatabaseListenerRegistry.h; path = ../RNFBDatabase/RNFBDatabaseListenerRegistry.h; sourceTree = SOURCE_ROOT; };
24
+ D80000000000000000000018 /* RNFBDatabaseListenerRegistry.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = RNFBDatabaseListenerRegistry.m; path = ../RNFBDatabase/RNFBDatabaseListenerRegistry.m; sourceTree = SOURCE_ROOT; };
25
+ D80000000000000000000024 /* RNFBDatabaseQueryRegistry.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = RNFBDatabaseQueryRegistry.h; path = ../RNFBDatabase/RNFBDatabaseQueryRegistry.h; sourceTree = SOURCE_ROOT; };
26
+ D80000000000000000000021 /* RNFBDatabaseQueryRegistry.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = RNFBDatabaseQueryRegistry.m; path = ../RNFBDatabase/RNFBDatabaseQueryRegistry.m; sourceTree = SOURCE_ROOT; };
27
+ D80000000000000000000023 /* RNFBDatabaseQueryRegistryTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RNFBDatabaseQueryRegistryTests.m; sourceTree = "<group>"; };
28
+ D80000000000000000000014 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Platforms/MacOSX.platform/Developer/Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; };
29
+ /* End PBXFileReference section */
30
+
31
+ /* Begin PBXFrameworksBuildPhase section */
32
+ D8000000000000000000000D /* Frameworks */ = {
33
+ isa = PBXFrameworksBuildPhase;
34
+ buildActionMask = 2147483647;
35
+ files = (
36
+ D80000000000000000000015 /* XCTest.framework in Frameworks */,
37
+ );
38
+ runOnlyForDeploymentPostprocessing = 0;
39
+ };
40
+ /* End PBXFrameworksBuildPhase section */
41
+
42
+ /* Begin PBXGroup section */
43
+ D80000000000000000000004 = {
44
+ isa = PBXGroup;
45
+ children = (
46
+ D80000000000000000000006 /* Sources */,
47
+ D80000000000000000000005 /* Products */,
48
+ );
49
+ sourceTree = "<group>";
50
+ };
51
+ D80000000000000000000005 /* Products */ = {
52
+ isa = PBXGroup;
53
+ children = (
54
+ D80000000000000000000003 /* RNFBDatabaseUnitTests.xctest */,
55
+ );
56
+ name = Products;
57
+ sourceTree = "<group>";
58
+ };
59
+ D80000000000000000000006 /* Sources */ = {
60
+ isa = PBXGroup;
61
+ children = (
62
+ D80000000000000000000007 /* RNFBHandleMap.h */,
63
+ D80000000000000000000008 /* RNFBHandleMap.m */,
64
+ D80000000000000000000016 /* RNFBDatabaseListenerRegistry.h */,
65
+ D80000000000000000000018 /* RNFBDatabaseListenerRegistry.m */,
66
+ D80000000000000000000024 /* RNFBDatabaseQueryRegistry.h */,
67
+ D80000000000000000000021 /* RNFBDatabaseQueryRegistry.m */,
68
+ D80000000000000000000009 /* RNFBDatabaseListenerRegistryTests.m */,
69
+ D80000000000000000000023 /* RNFBDatabaseQueryRegistryTests.m */,
70
+ );
71
+ name = Sources;
72
+ sourceTree = "<group>";
73
+ };
74
+ /* End PBXGroup section */
75
+
76
+ /* Begin PBXNativeTarget section */
77
+ D80000000000000000000002 /* RNFBDatabaseUnitTests */ = {
78
+ isa = PBXNativeTarget;
79
+ buildConfigurationList = D80000000000000000000013 /* Build configuration list for PBXNativeTarget "RNFBDatabaseUnitTests" */;
80
+ buildPhases = (
81
+ D8000000000000000000000E /* Sources */,
82
+ D8000000000000000000000D /* Frameworks */,
83
+ );
84
+ buildRules = (
85
+ );
86
+ dependencies = (
87
+ );
88
+ name = RNFBDatabaseUnitTests;
89
+ productName = RNFBDatabaseUnitTests;
90
+ productReference = D80000000000000000000003 /* RNFBDatabaseUnitTests.xctest */;
91
+ productType = "com.apple.product-type.bundle.unit-test";
92
+ };
93
+ /* End PBXNativeTarget section */
94
+
95
+ /* Begin PBXProject section */
96
+ D80000000000000000000001 /* Project object */ = {
97
+ isa = PBXProject;
98
+ attributes = {
99
+ BuildIndependentTargetsInParallel = 1;
100
+ LastUpgradeCheck = 2600;
101
+ ORGANIZATIONNAME = Invertase;
102
+ TargetAttributes = {
103
+ D80000000000000000000002 = {
104
+ CreatedOnToolsVersion = 26.0;
105
+ };
106
+ };
107
+ };
108
+ buildConfigurationList = D80000000000000000000012 /* Build configuration list for PBXProject "RNFBDatabaseUnitTests" */;
109
+ compatibilityVersion = "Xcode 14.0";
110
+ developmentRegion = en;
111
+ hasScannedForEncodings = 0;
112
+ knownRegions = (
113
+ en,
114
+ Base,
115
+ );
116
+ mainGroup = D80000000000000000000004;
117
+ productRefGroup = D80000000000000000000005 /* Products */;
118
+ projectDirPath = "";
119
+ projectRoot = "";
120
+ targets = (
121
+ D80000000000000000000002 /* RNFBDatabaseUnitTests */,
122
+ );
123
+ };
124
+ /* End PBXProject section */
125
+
126
+ /* Begin PBXSourcesBuildPhase section */
127
+ D8000000000000000000000E /* Sources */ = {
128
+ isa = PBXSourcesBuildPhase;
129
+ buildActionMask = 2147483647;
130
+ files = (
131
+ D8000000000000000000000A /* RNFBHandleMap.m in Sources */,
132
+ D8000000000000000000000B /* RNFBDatabaseListenerRegistry.m in Sources */,
133
+ D80000000000000000000020 /* RNFBDatabaseQueryRegistry.m in Sources */,
134
+ D8000000000000000000000C /* RNFBDatabaseListenerRegistryTests.m in Sources */,
135
+ D80000000000000000000022 /* RNFBDatabaseQueryRegistryTests.m in Sources */,
136
+ );
137
+ runOnlyForDeploymentPostprocessing = 0;
138
+ };
139
+ /* End PBXSourcesBuildPhase section */
140
+
141
+ /* Begin XCBuildConfiguration section */
142
+ D8000000000000000000001A /* Debug */ = {
143
+ isa = XCBuildConfiguration;
144
+ buildSettings = {
145
+ ALWAYS_SEARCH_USER_PATHS = NO;
146
+ CLANG_ENABLE_MODULES = YES;
147
+ CLANG_ENABLE_OBJC_ARC = YES;
148
+ COPY_PHASE_STRIP = NO;
149
+ DEBUG_INFORMATION_FORMAT = dwarf;
150
+ ENABLE_TESTABILITY = YES;
151
+ GCC_C_LANGUAGE_STANDARD = gnu17;
152
+ GCC_DYNAMIC_NO_PIC = NO;
153
+ GCC_OPTIMIZATION_LEVEL = 0;
154
+ MACOSX_DEPLOYMENT_TARGET = 14.0;
155
+ ONLY_ACTIVE_ARCH = YES;
156
+ SDKROOT = macosx;
157
+ SUPPORTED_PLATFORMS = macosx;
158
+ };
159
+ name = Debug;
160
+ };
161
+ D8000000000000000000001B /* Release */ = {
162
+ isa = XCBuildConfiguration;
163
+ buildSettings = {
164
+ ALWAYS_SEARCH_USER_PATHS = NO;
165
+ CLANG_ENABLE_MODULES = YES;
166
+ CLANG_ENABLE_OBJC_ARC = YES;
167
+ COPY_PHASE_STRIP = YES;
168
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
169
+ GCC_C_LANGUAGE_STANDARD = gnu17;
170
+ MACOSX_DEPLOYMENT_TARGET = 14.0;
171
+ SDKROOT = macosx;
172
+ SUPPORTED_PLATFORMS = macosx;
173
+ };
174
+ name = Release;
175
+ };
176
+ D80000000000000000000010 /* Debug */ = {
177
+ isa = XCBuildConfiguration;
178
+ buildSettings = {
179
+ CLANG_ENABLE_CODE_COVERAGE = YES;
180
+ CODE_SIGNING_ALLOWED = NO;
181
+ CODE_SIGNING_REQUIRED = NO;
182
+ CODE_SIGN_IDENTITY = "-";
183
+ COMBINE_HIDPI_IMAGES = YES;
184
+ GENERATE_INFOPLIST_FILE = YES;
185
+ HEADER_SEARCH_PATHS = (
186
+ "$(SRCROOT)/../../../app/ios",
187
+ "$(SRCROOT)/../../../app/ios/RNFBApp",
188
+ "$(SRCROOT)/../RNFBDatabase",
189
+ );
190
+ LD_RUNPATH_SEARCH_PATHS = (
191
+ "$(inherited)",
192
+ "@executable_path/../Frameworks",
193
+ "@loader_path/../Frameworks",
194
+ );
195
+ MACOSX_DEPLOYMENT_TARGET = 14.0;
196
+ OTHER_CFLAGS = (
197
+ "-fprofile-instr-generate",
198
+ "-fcoverage-mapping",
199
+ );
200
+ OTHER_LDFLAGS = (
201
+ "-fprofile-instr-generate",
202
+ );
203
+ PRODUCT_BUNDLE_IDENTIFIER = io.invertase.firebase.RNFBDatabaseUnitTests;
204
+ PRODUCT_NAME = "$(TARGET_NAME)";
205
+ SDKROOT = macosx;
206
+ SUPPORTED_PLATFORMS = macosx;
207
+ };
208
+ name = Debug;
209
+ };
210
+ D80000000000000000000011 /* Release */ = {
211
+ isa = XCBuildConfiguration;
212
+ buildSettings = {
213
+ CLANG_ENABLE_CODE_COVERAGE = YES;
214
+ CODE_SIGNING_ALLOWED = NO;
215
+ CODE_SIGNING_REQUIRED = NO;
216
+ CODE_SIGN_IDENTITY = "-";
217
+ COMBINE_HIDPI_IMAGES = YES;
218
+ GENERATE_INFOPLIST_FILE = YES;
219
+ HEADER_SEARCH_PATHS = (
220
+ "$(SRCROOT)/../../../app/ios",
221
+ "$(SRCROOT)/../../../app/ios/RNFBApp",
222
+ "$(SRCROOT)/../RNFBDatabase",
223
+ );
224
+ LD_RUNPATH_SEARCH_PATHS = (
225
+ "$(inherited)",
226
+ "@executable_path/../Frameworks",
227
+ "@loader_path/../Frameworks",
228
+ );
229
+ MACOSX_DEPLOYMENT_TARGET = 14.0;
230
+ PRODUCT_BUNDLE_IDENTIFIER = io.invertase.firebase.RNFBDatabaseUnitTests;
231
+ PRODUCT_NAME = "$(TARGET_NAME)";
232
+ SDKROOT = macosx;
233
+ SUPPORTED_PLATFORMS = macosx;
234
+ };
235
+ name = Release;
236
+ };
237
+ /* End XCBuildConfiguration section */
238
+
239
+ /* Begin XCConfigurationList section */
240
+ D80000000000000000000012 /* Build configuration list for PBXProject "RNFBDatabaseUnitTests" */ = {
241
+ isa = XCConfigurationList;
242
+ buildConfigurations = (
243
+ D8000000000000000000001A /* Debug */,
244
+ D8000000000000000000001B /* Release */,
245
+ );
246
+ defaultConfigurationIsVisible = 0;
247
+ defaultConfigurationName = Debug;
248
+ };
249
+ D80000000000000000000013 /* Build configuration list for PBXNativeTarget "RNFBDatabaseUnitTests" */ = {
250
+ isa = XCConfigurationList;
251
+ buildConfigurations = (
252
+ D80000000000000000000010 /* Debug */,
253
+ D80000000000000000000011 /* Release */,
254
+ );
255
+ defaultConfigurationIsVisible = 0;
256
+ defaultConfigurationName = Debug;
257
+ };
258
+ /* End XCConfigurationList section */
259
+ };
260
+ rootObject = D80000000000000000000001 /* Project object */;
261
+ }
@@ -0,0 +1,69 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Scheme
3
+ LastUpgradeVersion = "2600"
4
+ version = "1.7">
5
+ <BuildAction
6
+ parallelizeBuildables = "YES"
7
+ buildImplicitDependencies = "YES">
8
+ <BuildActionEntries>
9
+ <BuildActionEntry
10
+ buildForTesting = "YES"
11
+ buildForRunning = "YES"
12
+ buildForProfiling = "NO"
13
+ buildForArchiving = "NO"
14
+ buildForAnalyzing = "YES">
15
+ <BuildableReference
16
+ BuildableIdentifier = "primary"
17
+ BlueprintIdentifier = "D80000000000000000000002"
18
+ BuildableName = "RNFBDatabaseUnitTests.xctest"
19
+ BlueprintName = "RNFBDatabaseUnitTests"
20
+ ReferencedContainer = "container:RNFBDatabaseUnitTests.xcodeproj">
21
+ </BuildableReference>
22
+ </BuildActionEntry>
23
+ </BuildActionEntries>
24
+ </BuildAction>
25
+ <TestAction
26
+ buildConfiguration = "Debug"
27
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29
+ shouldUseLaunchSchemeArgsEnv = "YES"
30
+ codeCoverageEnabled = "YES">
31
+ <Testables>
32
+ <TestableReference
33
+ skipped = "NO">
34
+ <BuildableReference
35
+ BuildableIdentifier = "primary"
36
+ BlueprintIdentifier = "D80000000000000000000002"
37
+ BuildableName = "RNFBDatabaseUnitTests.xctest"
38
+ BlueprintName = "RNFBDatabaseUnitTests"
39
+ ReferencedContainer = "container:RNFBDatabaseUnitTests.xcodeproj">
40
+ </BuildableReference>
41
+ </TestableReference>
42
+ </Testables>
43
+ </TestAction>
44
+ <LaunchAction
45
+ buildConfiguration = "Debug"
46
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
47
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
48
+ launchStyle = "0"
49
+ useCustomWorkingDirectory = "NO"
50
+ ignoresPersistentStateOnLaunch = "NO"
51
+ debugDocumentVersioning = "YES"
52
+ debugServiceExtension = "internal"
53
+ allowLocationSimulation = "YES">
54
+ </LaunchAction>
55
+ <ProfileAction
56
+ buildConfiguration = "Release"
57
+ shouldUseLaunchSchemeArgsEnv = "YES"
58
+ savedToolIdentifier = ""
59
+ useCustomWorkingDirectory = "NO"
60
+ debugDocumentVersioning = "YES">
61
+ </ProfileAction>
62
+ <AnalyzeAction
63
+ buildConfiguration = "Debug">
64
+ </AnalyzeAction>
65
+ <ArchiveAction
66
+ buildConfiguration = "Release"
67
+ revealArchiveInOrganizer = "YES">
68
+ </ArchiveAction>
69
+ </Scheme>
package/lib/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '26.3.2';
2
+ export const version = '26.4.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-firebase/database",
3
- "version": "26.3.2",
3
+ "version": "26.4.0",
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",
@@ -32,6 +32,7 @@
32
32
  "android:codegen": "node ../../scripts/codegen-package.mjs database android",
33
33
  "ios:codegen": "node ../../scripts/codegen-package.mjs database ios"
34
34
  },
35
+ "homepage": "https://rnfirebase.io",
35
36
  "repository": {
36
37
  "type": "git",
37
38
  "url": "https://github.com/invertase/react-native-firebase",
@@ -48,10 +49,10 @@
48
49
  "realtome database"
49
50
  ],
50
51
  "peerDependencies": {
51
- "@react-native-firebase/app": "26.3.2"
52
+ "@react-native-firebase/app": "26.4.0"
52
53
  },
53
54
  "devDependencies": {
54
- "@react-native-firebase/app": "26.3.2",
55
+ "@react-native-firebase/app": "26.4.0",
55
56
  "react-native-builder-bob": "^0.41.0"
56
57
  },
57
58
  "publishConfig": {
@@ -89,5 +90,5 @@
89
90
  "node_modules/",
90
91
  "dist/"
91
92
  ],
92
- "gitHead": "4ef21d038c5b372e67508265a5c3391a07c91fde"
93
+ "gitHead": "06701af5fdc19bae9f379567eadb29dfe81953c0"
93
94
  }