@react-native-firebase/app 26.0.0 → 26.1.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.
- package/CHANGELOG.md +11 -0
- package/README.md +21 -0
- package/RNFBApp.podspec +13 -2
- package/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseVersion.java +1 -1
- package/dist/module/internal/web/RNFBAppModule.js +16 -3
- package/dist/module/internal/web/RNFBAppModule.js.map +1 -1
- package/dist/module/internal/web/utils.js +6 -1
- package/dist/module/internal/web/utils.js.map +1 -1
- package/dist/module/version.js +1 -1
- package/dist/typescript/lib/internal/web/RNFBAppModule.d.ts.map +1 -1
- package/dist/typescript/lib/internal/web/utils.d.ts.map +1 -1
- package/dist/typescript/lib/version.d.ts +1 -1
- package/firebase_spm.rb +1016 -0
- package/ios/RNFBApp/RCTConvert+FIRApp.h +4 -0
- package/ios/RNFBApp/RCTConvert+FIROptions.h +4 -0
- package/ios/RNFBApp/RNFBAppModule.mm +6 -0
- package/ios/RNFBApp/RNFBSharedUtils.h +4 -0
- package/ios/RNFBApp/RNFBVersion.m +1 -1
- package/lib/internal/web/RNFBAppModule.ts +16 -3
- package/lib/internal/web/utils.ts +6 -1
- package/lib/version.ts +1 -1
- package/package.json +6 -5
|
@@ -15,7 +15,13 @@
|
|
|
15
15
|
*
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
|
+
#if __has_include(<Firebase/Firebase.h>)
|
|
18
19
|
#import <Firebase/Firebase.h>
|
|
20
|
+
#elif __has_include(<FirebaseCore/FirebaseCore.h>)
|
|
21
|
+
#import <FirebaseCore/FirebaseCore.h>
|
|
22
|
+
#else
|
|
23
|
+
@import FirebaseCore;
|
|
24
|
+
#endif
|
|
19
25
|
#import <React/RCTInvalidating.h>
|
|
20
26
|
#import <React/RCTUtils.h>
|
|
21
27
|
|
|
@@ -18,7 +18,11 @@
|
|
|
18
18
|
#ifndef RNFBSharedUtils_h
|
|
19
19
|
#define RNFBSharedUtils_h
|
|
20
20
|
|
|
21
|
+
#if __has_include(<FirebaseCore/FirebaseCore.h>)
|
|
21
22
|
#import <FirebaseCore/FirebaseCore.h>
|
|
23
|
+
#else
|
|
24
|
+
@import FirebaseCore;
|
|
25
|
+
#endif
|
|
22
26
|
#import <React/RCTBridgeModule.h>
|
|
23
27
|
|
|
24
28
|
#ifdef DEBUG
|
|
@@ -71,7 +71,12 @@ function eventsSendEvent(eventName: string, eventBody: any): void {
|
|
|
71
71
|
queuedEvents.push(event);
|
|
72
72
|
return;
|
|
73
73
|
}
|
|
74
|
-
|
|
74
|
+
const emit = () => DeviceEventEmitter.emit('rnfb_' + eventName, eventBody);
|
|
75
|
+
if (typeof setImmediate === 'function') {
|
|
76
|
+
setImmediate(emit);
|
|
77
|
+
} else {
|
|
78
|
+
setTimeout(emit, 0);
|
|
79
|
+
}
|
|
75
80
|
}
|
|
76
81
|
|
|
77
82
|
function eventsSendQueuedEvents(): void {
|
|
@@ -251,7 +256,11 @@ export default {
|
|
|
251
256
|
eventsNotifyReady(ready: boolean): void {
|
|
252
257
|
jsReady = ready;
|
|
253
258
|
if (jsReady) {
|
|
254
|
-
|
|
259
|
+
if (typeof setImmediate === 'function') {
|
|
260
|
+
setImmediate(() => eventsSendQueuedEvents());
|
|
261
|
+
} else {
|
|
262
|
+
setTimeout(() => eventsSendQueuedEvents(), 0);
|
|
263
|
+
}
|
|
255
264
|
}
|
|
256
265
|
},
|
|
257
266
|
|
|
@@ -289,7 +298,11 @@ export default {
|
|
|
289
298
|
jsListeners[eventName]++;
|
|
290
299
|
}
|
|
291
300
|
}
|
|
292
|
-
|
|
301
|
+
if (typeof setImmediate === 'function') {
|
|
302
|
+
setImmediate(() => eventsSendQueuedEvents());
|
|
303
|
+
} else {
|
|
304
|
+
setTimeout(() => eventsSendQueuedEvents(), 0);
|
|
305
|
+
}
|
|
293
306
|
},
|
|
294
307
|
|
|
295
308
|
/**
|
|
@@ -53,5 +53,10 @@ export function getWebError(error: Error & { code?: string }): {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
export function emitEvent(eventName: string, event: unknown): void {
|
|
56
|
-
|
|
56
|
+
const emit = () => DeviceEventEmitter.emit('rnfb_' + eventName, event);
|
|
57
|
+
if (typeof setImmediate === 'function') {
|
|
58
|
+
setImmediate(emit);
|
|
59
|
+
} else {
|
|
60
|
+
setTimeout(emit, 0);
|
|
61
|
+
}
|
|
57
62
|
}
|
package/lib/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '26.
|
|
2
|
+
export const version = '26.1.0';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native-firebase/app",
|
|
3
|
-
"version": "26.
|
|
3
|
+
"version": "26.1.0",
|
|
4
4
|
"author": "Invertase <oss@invertase.io> (http://invertase.io)",
|
|
5
5
|
"description": "A well tested, feature rich Firebase implementation for React Native, supporting iOS & Android. Individual module support for Admob, Analytics, Auth, Crash Reporting, Cloud Firestore, Database, Dynamic Links, Functions, Messaging (FCM), Remote Config, Storage and more.",
|
|
6
6
|
"main": "./dist/module/index.js",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"react-native": "*"
|
|
113
113
|
},
|
|
114
114
|
"dependencies": {
|
|
115
|
-
"firebase": "12.
|
|
115
|
+
"firebase": "12.17.0"
|
|
116
116
|
},
|
|
117
117
|
"devDependencies": {
|
|
118
118
|
"@react-native-async-storage/async-storage": "^2.0.2",
|
|
@@ -130,7 +130,8 @@
|
|
|
130
130
|
},
|
|
131
131
|
"sdkVersions": {
|
|
132
132
|
"ios": {
|
|
133
|
-
"firebase": "12.
|
|
133
|
+
"firebase": "12.17.0",
|
|
134
|
+
"firebaseSpmUrl": "https://github.com/firebase/firebase-ios-sdk.git",
|
|
134
135
|
"iosTarget": "15.0",
|
|
135
136
|
"macosTarget": "10.15",
|
|
136
137
|
"tvosTarget": "15.0"
|
|
@@ -139,7 +140,7 @@
|
|
|
139
140
|
"minSdk": 23,
|
|
140
141
|
"targetSdk": 34,
|
|
141
142
|
"compileSdk": 34,
|
|
142
|
-
"firebase": "34.
|
|
143
|
+
"firebase": "34.16.0",
|
|
143
144
|
"firebaseCrashlyticsGradle": "3.0.7",
|
|
144
145
|
"firebasePerfGradle": "2.0.2",
|
|
145
146
|
"gmsGoogleServicesGradle": "4.5.0",
|
|
@@ -183,5 +184,5 @@
|
|
|
183
184
|
}
|
|
184
185
|
}
|
|
185
186
|
},
|
|
186
|
-
"gitHead": "
|
|
187
|
+
"gitHead": "59d053eca14ab8aa80e5ac76887014925c67e52b"
|
|
187
188
|
}
|