@react-native-firebase/app 25.1.0 → 26.0.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 (150) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/RNFBApp.podspec +7 -13
  3. package/android/build.gradle +25 -6
  4. package/android/src/reactnative/java/io/invertase/firebase/app/{ReactNativeFirebaseAppModule.java → NativeRNFBTurboApp.java} +81 -45
  5. package/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseAppPackage.java +3 -3
  6. package/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseVersion.java +2 -2
  7. package/android/src/reactnative/java/io/invertase/firebase/app/generated/java/com/facebook/fbreact/specs/NativeRNFBTurboAppSpec.java +136 -0
  8. package/android/src/reactnative/java/io/invertase/firebase/app/generated/java/com/facebook/fbreact/specs/NativeRNFBTurboUtilsSpec.java +94 -0
  9. package/android/src/reactnative/java/io/invertase/firebase/app/generated/jni/CMakeLists.txt +36 -0
  10. package/android/src/reactnative/java/io/invertase/firebase/app/generated/jni/RNFBAppTurboModules-generated.cpp +170 -0
  11. package/android/src/reactnative/java/io/invertase/firebase/app/generated/jni/RNFBAppTurboModules.h +39 -0
  12. package/android/src/reactnative/java/io/invertase/firebase/app/generated/jni/react/renderer/components/RNFBAppTurboModules/RNFBAppTurboModulesJSI-generated.cpp +187 -0
  13. package/android/src/reactnative/java/io/invertase/firebase/app/generated/jni/react/renderer/components/RNFBAppTurboModules/RNFBAppTurboModulesJSI.h +606 -0
  14. package/android/src/reactnative/java/io/invertase/firebase/common/RCTConvertFirebase.java +3 -3
  15. package/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseEventEmitter.java +475 -20
  16. package/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseMeta.java +8 -0
  17. package/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebasePreferences.java +8 -0
  18. package/android/src/reactnative/java/io/invertase/firebase/utils/{ReactNativeFirebaseUtilsModule.java → NativeRNFBTurboUtils.java} +57 -40
  19. package/android/src/test/java/io/invertase/firebase/app/NativeRNFBTurboAppTest.java +400 -0
  20. package/android/src/test/java/io/invertase/firebase/common/ReactNativeFirebaseEventEmitterTest.java +1823 -0
  21. package/app.plugin.js +1 -1
  22. package/dist/module/FirebaseApp.js +0 -9
  23. package/dist/module/FirebaseApp.js.map +1 -1
  24. package/dist/module/common/index.js +0 -645
  25. package/dist/module/common/index.js.map +1 -1
  26. package/dist/module/common/unitTestUtils.js +18 -54
  27. package/dist/module/common/unitTestUtils.js.map +1 -1
  28. package/dist/module/index.js +0 -1
  29. package/dist/module/index.js.map +1 -1
  30. package/dist/module/internal/RNFBNativeEventEmitter.js +12 -6
  31. package/dist/module/internal/RNFBNativeEventEmitter.js.map +1 -1
  32. package/dist/module/internal/constants.js +2 -2
  33. package/dist/module/internal/constants.js.map +1 -1
  34. package/dist/module/internal/index.js +1 -1
  35. package/dist/module/internal/index.js.map +1 -1
  36. package/dist/module/internal/nativeModuleAndroidIos.js +50 -10
  37. package/dist/module/internal/nativeModuleAndroidIos.js.map +1 -1
  38. package/dist/module/internal/nativeModuleWeb.js +12 -4
  39. package/dist/module/internal/nativeModuleWeb.js.map +1 -1
  40. package/dist/module/internal/registry/app.js +20 -12
  41. package/dist/module/internal/registry/app.js.map +1 -1
  42. package/dist/module/internal/registry/modular.js +73 -0
  43. package/dist/module/internal/registry/modular.js.map +1 -0
  44. package/dist/module/internal/registry/nativeModule.js +116 -95
  45. package/dist/module/internal/registry/nativeModule.js.map +1 -1
  46. package/dist/module/modular.js +44 -37
  47. package/dist/module/modular.js.map +1 -1
  48. package/dist/module/types/app.js +0 -3
  49. package/dist/module/types/app.js.map +1 -1
  50. package/dist/module/types/internal.js +0 -2
  51. package/dist/module/utils/UtilsStatics.js +2 -2
  52. package/dist/module/utils/UtilsStatics.js.map +1 -1
  53. package/dist/module/utils/index.js +21 -17
  54. package/dist/module/utils/index.js.map +1 -1
  55. package/dist/module/version.js +1 -1
  56. package/dist/typescript/lib/FirebaseApp.d.ts +1 -2
  57. package/dist/typescript/lib/FirebaseApp.d.ts.map +1 -1
  58. package/dist/typescript/lib/common/index.d.ts +0 -8
  59. package/dist/typescript/lib/common/index.d.ts.map +1 -1
  60. package/dist/typescript/lib/common/unitTestUtils.d.ts +1 -4
  61. package/dist/typescript/lib/common/unitTestUtils.d.ts.map +1 -1
  62. package/dist/typescript/lib/index.d.ts +0 -1
  63. package/dist/typescript/lib/index.d.ts.map +1 -1
  64. package/dist/typescript/lib/internal/NativeFirebaseError.d.ts +1 -1
  65. package/dist/typescript/lib/internal/NativeFirebaseError.d.ts.map +1 -1
  66. package/dist/typescript/lib/internal/RNFBNativeEventEmitter.d.ts.map +1 -1
  67. package/dist/typescript/lib/internal/constants.d.ts +2 -3
  68. package/dist/typescript/lib/internal/constants.d.ts.map +1 -1
  69. package/dist/typescript/lib/internal/index.d.ts +1 -1
  70. package/dist/typescript/lib/internal/index.d.ts.map +1 -1
  71. package/dist/typescript/lib/internal/nativeModuleAndroidIos.d.ts +2 -6
  72. package/dist/typescript/lib/internal/nativeModuleAndroidIos.d.ts.map +1 -1
  73. package/dist/typescript/lib/internal/nativeModuleWeb.d.ts.map +1 -1
  74. package/dist/typescript/lib/internal/registry/app.d.ts +2 -2
  75. package/dist/typescript/lib/internal/registry/app.d.ts.map +1 -1
  76. package/dist/typescript/lib/internal/registry/modular.d.ts +22 -0
  77. package/dist/typescript/lib/internal/registry/modular.d.ts.map +1 -0
  78. package/dist/typescript/lib/internal/registry/nativeModule.d.ts +3 -11
  79. package/dist/typescript/lib/internal/registry/nativeModule.d.ts.map +1 -1
  80. package/dist/typescript/lib/modular.d.ts +21 -7
  81. package/dist/typescript/lib/modular.d.ts.map +1 -1
  82. package/dist/typescript/lib/types/app.d.ts +4 -4
  83. package/dist/typescript/lib/types/app.d.ts.map +1 -1
  84. package/dist/typescript/lib/types/internal.d.ts +1 -33
  85. package/dist/typescript/lib/types/internal.d.ts.map +1 -1
  86. package/dist/typescript/lib/utils/index.d.ts +7 -3
  87. package/dist/typescript/lib/utils/index.d.ts.map +1 -1
  88. package/dist/typescript/lib/version.d.ts +1 -1
  89. package/firebase-schema.json +5 -1
  90. package/ios/RNFBApp/RNFBAppModule.h +1 -3
  91. package/ios/RNFBApp/{RNFBAppModule.m → RNFBAppModule.mm} +74 -77
  92. package/ios/RNFBApp/RNFBUtilsModule.h +1 -3
  93. package/ios/RNFBApp/{RNFBUtilsModule.m → RNFBUtilsModule.mm} +68 -25
  94. package/ios/RNFBApp/RNFBVersion.m +1 -1
  95. package/ios/RNFBApp.xcodeproj/project.pbxproj +12 -12
  96. package/ios/generated/RCTAppDependencyProvider.h +25 -0
  97. package/ios/generated/RCTAppDependencyProvider.mm +55 -0
  98. package/ios/generated/RCTModuleProviders.h +16 -0
  99. package/ios/generated/RCTModuleProviders.mm +52 -0
  100. package/ios/generated/RCTModulesConformingToProtocolsProvider.h +18 -0
  101. package/ios/generated/RCTModulesConformingToProtocolsProvider.mm +33 -0
  102. package/ios/generated/RCTThirdPartyComponentsProvider.h +16 -0
  103. package/ios/generated/RCTThirdPartyComponentsProvider.mm +23 -0
  104. package/ios/generated/RCTUnstableModulesRequiringMainQueueSetupProvider.h +14 -0
  105. package/ios/generated/RCTUnstableModulesRequiringMainQueueSetupProvider.mm +19 -0
  106. package/ios/generated/RNFBAppTurboModules/RNFBAppTurboModules-generated.mm +210 -0
  107. package/ios/generated/RNFBAppTurboModules/RNFBAppTurboModules.h +399 -0
  108. package/ios/generated/RNFBAppTurboModulesJSI-generated.cpp +187 -0
  109. package/ios/generated/RNFBAppTurboModulesJSI.h +606 -0
  110. package/ios/generated/ReactAppDependencyProvider.podspec +34 -0
  111. package/ios/generated/ReactCodegen.podspec +111 -0
  112. package/lib/FirebaseApp.ts +1 -10
  113. package/lib/common/index.ts +0 -742
  114. package/lib/common/unitTestUtils.ts +17 -73
  115. package/lib/index.ts +0 -1
  116. package/lib/internal/NativeFirebaseError.ts +1 -1
  117. package/lib/internal/RNFBNativeEventEmitter.ts +12 -6
  118. package/lib/internal/constants.ts +3 -25
  119. package/lib/internal/global.d.ts +0 -4
  120. package/lib/internal/index.ts +1 -1
  121. package/lib/internal/nativeModuleAndroidIos.ts +69 -12
  122. package/lib/internal/nativeModuleWeb.ts +11 -5
  123. package/lib/internal/registry/app.ts +24 -22
  124. package/lib/internal/registry/modular.ts +97 -0
  125. package/lib/internal/registry/nativeModule.ts +136 -107
  126. package/lib/modular.ts +47 -72
  127. package/lib/types/app.ts +6 -11
  128. package/lib/types/internal.ts +1 -46
  129. package/lib/utils/UtilsStatics.ts +2 -2
  130. package/lib/utils/index.ts +24 -18
  131. package/lib/version.ts +1 -1
  132. package/package.json +41 -3
  133. package/plugin/build/app.plugin.d.ts +2 -0
  134. package/plugin/build/app.plugin.js +6 -0
  135. package/plugin/src/app.plugin.ts +3 -0
  136. package/plugin/tsconfig.tsbuildinfo +1 -1
  137. package/react-native.config.js +2 -0
  138. package/specs/NativeRNFBTurboApp.ts +57 -0
  139. package/specs/NativeRNFBTurboUtils.ts +34 -0
  140. package/typedoc.json +1 -2
  141. package/dist/module/internal/registry/namespace.js +0 -262
  142. package/dist/module/internal/registry/namespace.js.map +0 -1
  143. package/dist/module/namespaced.js +0 -25
  144. package/dist/module/namespaced.js.map +0 -1
  145. package/dist/typescript/lib/internal/registry/namespace.d.ts +0 -26
  146. package/dist/typescript/lib/internal/registry/namespace.d.ts.map +0 -1
  147. package/dist/typescript/lib/namespaced.d.ts +0 -5
  148. package/dist/typescript/lib/namespaced.d.ts.map +0 -1
  149. package/lib/internal/registry/namespace.ts +0 -338
  150. package/lib/namespaced.ts +0 -24
@@ -15,7 +15,7 @@
15
15
  *
16
16
  */
17
17
 
18
- import { NativeModules } from 'react-native';
18
+ import { getStaticUtilsModule } from '../internal/registry/nativeModule';
19
19
  import { stripTrailingSlash, isOther } from '../common';
20
20
  import { Utils } from '../types/app';
21
21
  import { version } from '../version';
@@ -66,7 +66,7 @@ const statics: Utils.Statics = {
66
66
  SDK_VERSION: version,
67
67
  get FilePath(): Utils.FilePath {
68
68
  // We don't support path constants on non-native platforms.
69
- return processPathConstants(isOther ? {} : NativeModules.RNFBUtilsModule);
69
+ return processPathConstants(isOther ? {} : getStaticUtilsModule());
70
70
  },
71
71
  };
72
72
 
@@ -16,13 +16,22 @@
16
16
  */
17
17
 
18
18
  import { isIOS } from '../common';
19
- import { createModuleNamespace, FirebaseModule } from '../internal';
20
- import UtilsStatics from './UtilsStatics';
21
- import { Utils } from '../types/app';
19
+ import { FirebaseModule, getOrCreateModularInstance } from '../internal';
20
+ import type { ModuleConfig } from '../internal';
21
+ import type { ReactNativeFirebase, Utils } from '../types/app';
22
+ import { UTILS_NATIVE_MODULE } from '../internal/constants';
22
23
 
23
24
  const namespace = 'utils';
24
- const statics = UtilsStatics;
25
- const nativeModuleName = 'RNFBUtilsModule';
25
+ const nativeModuleName = UTILS_NATIVE_MODULE;
26
+
27
+ const config: ModuleConfig = {
28
+ namespace,
29
+ nativeModuleName,
30
+ nativeEvents: false,
31
+ hasMultiAppSupport: false,
32
+ hasCustomUrlOrRegionSupport: false,
33
+ turboModule: true,
34
+ };
26
35
 
27
36
  class FirebaseUtilsModule extends FirebaseModule<'RNFBUtilsModule'> {
28
37
  get isRunningInTestLab(): boolean {
@@ -42,7 +51,8 @@ class FirebaseUtilsModule extends FirebaseModule<'RNFBUtilsModule'> {
42
51
  error: undefined,
43
52
  };
44
53
  }
45
- return this.native.androidPlayServices;
54
+ // NewArch-AD-15: dynamic Play Services status — use getPlayServicesStatus() (async) on Android.
55
+ return this.getPlayServicesStatus() as unknown as Utils.PlayServicesAvailability;
46
56
  }
47
57
 
48
58
  getPlayServicesStatus(): Promise<Utils.PlayServicesAvailability> {
@@ -80,15 +90,11 @@ class FirebaseUtilsModule extends FirebaseModule<'RNFBUtilsModule'> {
80
90
  }
81
91
  }
82
92
 
83
- // import { utils } from '@react-native-firebase/app';
84
- // utils().X(...);
85
- export default createModuleNamespace({
86
- statics,
87
- version: UtilsStatics.SDK_VERSION,
88
- namespace,
89
- nativeModuleName,
90
- nativeEvents: false,
91
- hasMultiAppSupport: false,
92
- hasCustomUrlOrRegionSupport: false,
93
- ModuleClass: FirebaseUtilsModule,
94
- }) as unknown as Utils.Statics & (() => Utils.Module);
93
+ /**
94
+ * Returns the {@link Utils.Module} instance for the default or given {@link ReactNativeFirebase.FirebaseApp}.
95
+ *
96
+ * @param app - The Firebase app to use. When omitted, the default app is used.
97
+ */
98
+ export function getUtils(app?: ReactNativeFirebase.FirebaseApp): Utils.Module {
99
+ return getOrCreateModularInstance(FirebaseUtilsModule, config, app) as unknown as Utils.Module;
100
+ }
package/lib/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '25.1.0';
2
+ export const version = '26.0.0';
package/package.json CHANGED
@@ -1,11 +1,29 @@
1
1
  {
2
2
  "name": "@react-native-firebase/app",
3
- "version": "25.1.0",
3
+ "version": "26.0.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",
7
7
  "types": "./dist/typescript/lib/index.d.ts",
8
+ "codegenConfig": {
9
+ "name": "RNFBAppTurboModules",
10
+ "type": "modules",
11
+ "jsSrcsDir": "specs",
12
+ "includesGeneratedCode": true,
13
+ "android": {
14
+ "javaPackageName": "io.invertase.firebase.app"
15
+ },
16
+ "ios": {
17
+ "modulesProvider": {
18
+ "NativeRNFBTurboApp": "RNFBAppModule",
19
+ "NativeRNFBTurboUtils": "RNFBUtilsModule"
20
+ }
21
+ }
22
+ },
8
23
  "scripts": {
24
+ "codegen": "yarn android:codegen && yarn ios:codegen",
25
+ "android:codegen": "npx @react-native-community/cli codegen --platform android --outputPath=./android/src/reactnative/java/io/invertase/firebase/app/generated",
26
+ "ios:codegen": "npx @react-native-community/cli codegen --platform ios --outputPath=./ios/generated",
9
27
  "build": "genversion --esm --semi lib/version.ts && npm run build:version",
10
28
  "build:version": "node ./scripts/genversion-ios && node ./scripts/genversion-android",
11
29
  "build:clean": "rimraf android/build && rimraf ios/build",
@@ -78,7 +96,14 @@
78
96
  "types": "./dist/typescript/lib/common/*.d.ts",
79
97
  "default": "./dist/module/common/*.js"
80
98
  },
81
- "./app.plugin.js": "./app.plugin.js",
99
+ "./app.plugin": {
100
+ "types": "./plugin/build/app.plugin.d.ts",
101
+ "default": "./app.plugin.js"
102
+ },
103
+ "./app.plugin.js": {
104
+ "types": "./plugin/build/app.plugin.d.ts",
105
+ "default": "./app.plugin.js"
106
+ },
82
107
  "./package.json": "./package.json"
83
108
  },
84
109
  "peerDependencies": {
@@ -145,5 +170,18 @@
145
170
  "node_modules/",
146
171
  "dist/"
147
172
  ],
148
- "gitHead": "e0a565d8a73a9b103d140ffacfb8876b30d8bdc5"
173
+ "nx": {
174
+ "targets": {
175
+ "prepare": {
176
+ "outputs": [
177
+ "{projectRoot}/dist/**",
178
+ "{projectRoot}/plugin/build/**",
179
+ "{projectRoot}/lib/version.ts",
180
+ "{projectRoot}/ios/RNFBApp/RNFBVersion.m",
181
+ "{projectRoot}/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseVersion.java"
182
+ ]
183
+ }
184
+ }
185
+ },
186
+ "gitHead": "2a360acb2aebdd39dd40e31be386b30697270626"
149
187
  }
@@ -0,0 +1,2 @@
1
+ import plugin from './index';
2
+ export = plugin;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ const index_1 = __importDefault(require("./index"));
6
+ module.exports = index_1.default;
@@ -0,0 +1,3 @@
1
+ import plugin from './index';
2
+
3
+ export = plugin;
@@ -1 +1 @@
1
- {"root":["./src/index.ts","./src/android/applyPlugin.ts","./src/android/buildscriptDependency.ts","./src/android/constants.ts","./src/android/copyGoogleServices.ts","./src/android/index.ts","./src/ios/appDelegate.ts","./src/ios/googleServicesPlist.ts","./src/ios/index.ts"],"version":"6.0.3"}
1
+ {"root":["./src/app.plugin.ts","./src/index.ts","./src/android/applyPlugin.ts","./src/android/buildscriptDependency.ts","./src/android/constants.ts","./src/android/copyGoogleServices.ts","./src/android/index.ts","./src/ios/appDelegate.ts","./src/ios/googleServicesPlist.ts","./src/ios/index.ts"],"version":"6.0.3"}
@@ -3,6 +3,8 @@ module.exports = {
3
3
  platforms: {
4
4
  android: {
5
5
  packageImportPath: 'import io.invertase.firebase.app.ReactNativeFirebaseAppPackage;',
6
+ cmakeListsPath:
7
+ './src/reactnative/java/io/invertase/firebase/app/generated/jni/CMakeLists.txt',
6
8
  },
7
9
  ios: {
8
10
  scriptPhases: [
@@ -0,0 +1,57 @@
1
+ /* eslint-disable @typescript-eslint/no-wrapper-object-types */
2
+ import type { TurboModule } from 'react-native';
3
+ import { TurboModuleRegistry } from 'react-native';
4
+
5
+ export type FirebaseAppConfig = {
6
+ name: string;
7
+ automaticResourceManagement?: boolean;
8
+ automaticDataCollectionEnabled?: boolean;
9
+ };
10
+
11
+ export type FirebaseAppOptions = {
12
+ apiKey: string;
13
+ appId: string;
14
+ databaseURL?: string | null;
15
+ messagingSenderId: string;
16
+ projectId: string;
17
+ storageBucket?: string | null;
18
+ authDomain?: string | null;
19
+ iosBundleId?: string | null;
20
+ iosClientId?: string | null;
21
+ appGroupId?: string | null;
22
+ };
23
+
24
+ export type NativeFirebaseApp = {
25
+ appConfig: FirebaseAppConfig;
26
+ options: FirebaseAppOptions;
27
+ };
28
+
29
+ export interface Spec extends TurboModule {
30
+ getConstants(): {
31
+ NATIVE_FIREBASE_APPS: Array<NativeFirebaseApp>;
32
+ FIREBASE_RAW_JSON: string;
33
+ };
34
+
35
+ initializeApp(options: Object, appConfig: Object): Promise<Object>;
36
+ setAutomaticDataCollectionEnabled(appName: string, enabled: boolean): void;
37
+ deleteApp(appName: string): Promise<Object | null>;
38
+
39
+ eventsNotifyReady(ready: boolean): void;
40
+ eventsGetListeners(): Promise<Object>;
41
+ eventsPing(eventName: string, eventBody: Object): Promise<Object>;
42
+ eventsAddListener(eventName: string): void;
43
+ eventsRemoveListener(eventName: string, all: boolean): void;
44
+ addListener(eventName: string): void;
45
+ removeListeners(count: number): void;
46
+
47
+ metaGetAll(): Promise<Object>;
48
+ jsonGetAll(): Promise<Object>;
49
+ preferencesSetBool(key: string, value: boolean): Promise<Object | null>;
50
+ preferencesSetString(key: string, value: string): Promise<Object | null>;
51
+ preferencesGetAll(): Promise<Object>;
52
+ preferencesClearAll(): Promise<Object | null>;
53
+
54
+ setLogLevel(logLevel: string): void;
55
+ }
56
+
57
+ export default TurboModuleRegistry.getEnforcing<Spec>('NativeRNFBTurboApp');
@@ -0,0 +1,34 @@
1
+ import type { TurboModule } from 'react-native';
2
+ import { TurboModuleRegistry } from 'react-native';
3
+
4
+ export type PlayServicesAvailability = {
5
+ isAvailable: boolean;
6
+ status: number;
7
+ hasResolution: boolean;
8
+ isUserResolvableError: boolean;
9
+ error?: string;
10
+ };
11
+
12
+ export interface Spec extends TurboModule {
13
+ getConstants(): {
14
+ isRunningInTestLab: boolean;
15
+ MAIN_BUNDLE: string;
16
+ CACHES_DIRECTORY: string;
17
+ DOCUMENT_DIRECTORY: string;
18
+ EXTERNAL_DIRECTORY?: string;
19
+ EXTERNAL_STORAGE_DIRECTORY?: string;
20
+ TEMP_DIRECTORY: string;
21
+ LIBRARY_DIRECTORY: string;
22
+ PICTURES_DIRECTORY: string;
23
+ MOVIES_DIRECTORY: string;
24
+ FILE_TYPE_REGULAR?: string;
25
+ FILE_TYPE_DIRECTORY?: string;
26
+ };
27
+
28
+ androidGetPlayServicesStatus(): Promise<PlayServicesAvailability>;
29
+ androidPromptForPlayServices(): Promise<void>;
30
+ androidResolutionForPlayServices(): Promise<void>;
31
+ androidMakePlayServicesAvailable(): Promise<void>;
32
+ }
33
+
34
+ export default TurboModuleRegistry.getEnforcing<Spec>('NativeRNFBTurboUtils');
package/typedoc.json CHANGED
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "$schema": "https://typedoc.org/schema.json",
3
3
  "entryPoints": ["lib/index.ts"],
4
- "tsconfig": "tsconfig.json",
5
- "intentionallyNotExported": ["FirebaseRoot"]
4
+ "tsconfig": "tsconfig.json"
6
5
  }
@@ -1,262 +0,0 @@
1
- "use strict";
2
-
3
- /*
4
- * Copyright (c) 2016-present Invertase Limited & Contributors
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License");
7
- * you may not use this library except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- *
18
- */
19
-
20
- import { isString, createDeprecationProxy } from "../../common/index.js";
21
- import { version as SDK_VERSION } from "../../version.js";
22
- import { DEFAULT_APP_NAME, KNOWN_NAMESPACES } from "../constants.js";
23
- import FirebaseModule from "../FirebaseModule.js";
24
- import { getApp, getApps, initializeApp, setLogLevel, setReactNativeAsyncStorage, setOnAppCreate, setOnAppDestroy } from "./app.js";
25
-
26
- // firebase.X
27
- let FIREBASE_ROOT = null;
28
- const NAMESPACE_REGISTRY = {};
29
- const APP_MODULE_INSTANCE = {};
30
- const MODULE_GETTER_FOR_APP = {};
31
- const MODULE_GETTER_FOR_ROOT = {};
32
-
33
- /**
34
- * Attaches module namespace getters on every newly created app.
35
- *
36
- * Structured like this to avoid metro require cycles.
37
- */
38
- setOnAppCreate(app => {
39
- for (let i = 0; i < KNOWN_NAMESPACES.length; i++) {
40
- const moduleNamespace = KNOWN_NAMESPACES[i];
41
- if (moduleNamespace) {
42
- Object.defineProperty(app, moduleNamespace, {
43
- enumerable: false,
44
- get: firebaseAppModuleProxy.bind(null, app, moduleNamespace)
45
- });
46
- }
47
- }
48
- });
49
-
50
- /**
51
- * Destroys all APP_MODULE_INSTANCE & MODULE_GETTER_FOR_APP objects relating to the
52
- * recently destroyed app.
53
- *
54
- * Structured like this to avoid metro require cycles.
55
- */
56
- setOnAppDestroy(app => {
57
- delete APP_MODULE_INSTANCE[app.name];
58
- delete MODULE_GETTER_FOR_APP[app.name];
59
- });
60
-
61
- /**
62
- *
63
- * @param app
64
- * @param moduleNamespace
65
- * @returns {*}
66
- */
67
- function getOrCreateModuleForApp(app, moduleNamespace) {
68
- if (MODULE_GETTER_FOR_APP[app.name] && MODULE_GETTER_FOR_APP[app.name]?.[moduleNamespace]) {
69
- return MODULE_GETTER_FOR_APP[app.name][moduleNamespace];
70
- }
71
- if (!MODULE_GETTER_FOR_APP[app.name]) {
72
- MODULE_GETTER_FOR_APP[app.name] = {};
73
- }
74
- const config = NAMESPACE_REGISTRY[moduleNamespace];
75
- if (!config) {
76
- throw new Error(`Module namespace '${moduleNamespace}' is not registered.`);
77
- }
78
- const {
79
- hasCustomUrlOrRegionSupport,
80
- hasMultiAppSupport,
81
- ModuleClass
82
- } = config;
83
-
84
- // modules such as analytics only run on the default app
85
- if (!hasMultiAppSupport && app.name !== DEFAULT_APP_NAME) {
86
- throw new Error([`You attempted to call "firebase.app('${app.name}').${moduleNamespace}" but; ${moduleNamespace} does not support multiple Firebase Apps.`, '', `Ensure you access ${moduleNamespace} from the default application only.`].join('\r\n'));
87
- }
88
-
89
- // e.g. firebase.storage(customUrlOrRegion), firebase.functions(customUrlOrRegion), firebase.firestore(databaseId), firebase.database(url)
90
- function firebaseModuleWithArgs(customUrlOrRegionOrDatabaseId) {
91
- if (customUrlOrRegionOrDatabaseId !== undefined) {
92
- if (!hasCustomUrlOrRegionSupport) {
93
- // TODO throw Module does not support arguments error
94
- }
95
- if (!isString(customUrlOrRegionOrDatabaseId)) {
96
- // TODO throw Module first argument must be a string error
97
- }
98
- }
99
- const key = customUrlOrRegionOrDatabaseId ? `${customUrlOrRegionOrDatabaseId}:${moduleNamespace}` : moduleNamespace;
100
- if (!APP_MODULE_INSTANCE[app.name]) {
101
- APP_MODULE_INSTANCE[app.name] = {};
102
- }
103
- if (!APP_MODULE_INSTANCE[app.name]?.[key]) {
104
- const moduleConfig = NAMESPACE_REGISTRY[moduleNamespace];
105
- if (!moduleConfig) {
106
- throw new Error(`Module namespace '${moduleNamespace}' is not registered.`);
107
- }
108
- const module = createDeprecationProxy(new ModuleClass(app, moduleConfig, customUrlOrRegionOrDatabaseId));
109
- APP_MODULE_INSTANCE[app.name][key] = module;
110
- }
111
- return APP_MODULE_INSTANCE[app.name][key];
112
- }
113
- MODULE_GETTER_FOR_APP[app.name][moduleNamespace] = firebaseModuleWithArgs;
114
- return MODULE_GETTER_FOR_APP[app.name][moduleNamespace];
115
- }
116
-
117
- /**
118
- *
119
- * @param moduleNamespace
120
- * @returns {*}
121
- */
122
- function getOrCreateModuleForRoot(moduleNamespace) {
123
- if (MODULE_GETTER_FOR_ROOT[moduleNamespace]) {
124
- return MODULE_GETTER_FOR_ROOT[moduleNamespace];
125
- }
126
- const config = NAMESPACE_REGISTRY[moduleNamespace];
127
- if (!config) {
128
- throw new Error(`Module namespace '${moduleNamespace}' is not registered.`);
129
- }
130
- const {
131
- statics,
132
- hasMultiAppSupport,
133
- ModuleClass
134
- } = config;
135
-
136
- // e.g. firebase.storage(app)
137
- function firebaseModuleWithApp(app) {
138
- const _app = app || getApp();
139
-
140
- // Duck-type check for FirebaseApp (checking for required properties)
141
- if (!_app || typeof _app !== 'object' || !('name' in _app) || !('options' in _app) || typeof _app.name !== 'string') {
142
- throw new Error([`"firebase.${moduleNamespace}(app)" arg expects a FirebaseApp instance or undefined.`, '', 'Ensure the arg provided is a Firebase app instance; or no args to use the default Firebase app.'].join('\r\n'));
143
- }
144
-
145
- // modules such as analytics only run on the default app
146
- if (!hasMultiAppSupport && _app.name !== DEFAULT_APP_NAME) {
147
- throw new Error([`You attempted to call "firebase.${moduleNamespace}(app)" but; ${moduleNamespace} does not support multiple Firebase Apps.`, '', `Ensure the app provided is the default Firebase app only and not the "${_app.name}" app.`].join('\r\n'));
148
- }
149
- if (!APP_MODULE_INSTANCE[_app.name]) {
150
- APP_MODULE_INSTANCE[_app.name] = {};
151
- }
152
- if (!APP_MODULE_INSTANCE[_app.name]?.[moduleNamespace]) {
153
- const moduleConfig = NAMESPACE_REGISTRY[moduleNamespace];
154
- if (!moduleConfig) {
155
- throw new Error(`Module namespace '${moduleNamespace}' is not registered.`);
156
- }
157
- const module = createDeprecationProxy(new ModuleClass(_app, moduleConfig));
158
- APP_MODULE_INSTANCE[_app.name][moduleNamespace] = module;
159
- }
160
- return APP_MODULE_INSTANCE[_app.name][moduleNamespace];
161
- }
162
- Object.assign(firebaseModuleWithApp, statics || {});
163
- // Object.freeze(firebaseModuleWithApp);
164
- // Wrap around statics, e.g. firebase.firestore.FieldValue, removed freeze as it stops proxy working. it is deprecated anyway
165
- MODULE_GETTER_FOR_ROOT[moduleNamespace] = createDeprecationProxy(firebaseModuleWithApp);
166
- return MODULE_GETTER_FOR_ROOT[moduleNamespace];
167
- }
168
-
169
- /**
170
- *
171
- * @param firebaseNamespace
172
- * @param moduleNamespace
173
- * @returns {*}
174
- */
175
- function firebaseRootModuleProxy(_firebaseNamespace, moduleNamespace) {
176
- if (NAMESPACE_REGISTRY[moduleNamespace]) {
177
- return getOrCreateModuleForRoot(moduleNamespace);
178
- }
179
- const moduleWithDashes = moduleNamespace.split(/(?=[A-Z])/).join('-').toLowerCase();
180
- throw new Error([`You attempted to use 'firebase.${moduleNamespace}' but this module could not be found.`, '', `Ensure you have installed and imported the '@react-native-firebase/${moduleWithDashes}' package.`].join('\r\n'));
181
- }
182
-
183
- /**
184
- *
185
- * @param app
186
- * @param moduleNamespace
187
- * @returns {*}
188
- */
189
- export function firebaseAppModuleProxy(app, moduleNamespace) {
190
- if (NAMESPACE_REGISTRY[moduleNamespace]) {
191
- // Call private _checkDestroyed method
192
- app._checkDestroyed();
193
- return getOrCreateModuleForApp(app, moduleNamespace);
194
- }
195
- const moduleWithDashes = moduleNamespace.split(/(?=[A-Z])/).join('-').toLowerCase();
196
- throw new Error([`You attempted to use "firebase.app('${app.name}').${moduleNamespace}" but this module could not be found.`, '', `Ensure you have installed and imported the '@react-native-firebase/${moduleWithDashes}' package.`].join('\r\n'));
197
- }
198
-
199
- /**
200
- *
201
- * @returns {*}
202
- */
203
- export function createFirebaseRoot() {
204
- // Create partial root object - module namespaces like 'utils' are added dynamically below
205
- const root = {
206
- initializeApp,
207
- setReactNativeAsyncStorage,
208
- get app() {
209
- return getApp;
210
- },
211
- get apps() {
212
- return getApps();
213
- },
214
- SDK_VERSION,
215
- setLogLevel
216
- };
217
- for (let i = 0; i < KNOWN_NAMESPACES.length; i++) {
218
- const namespace = KNOWN_NAMESPACES[i];
219
- if (namespace) {
220
- Object.defineProperty(root, namespace, {
221
- enumerable: false,
222
- get: firebaseRootModuleProxy.bind(null, root, namespace)
223
- });
224
- }
225
- }
226
- FIREBASE_ROOT = root;
227
- return root;
228
- }
229
-
230
- /**
231
- *
232
- * @returns {*}
233
- */
234
- export function getFirebaseRoot() {
235
- if (FIREBASE_ROOT) {
236
- return FIREBASE_ROOT;
237
- }
238
- return createFirebaseRoot();
239
- }
240
-
241
- /**
242
- *
243
- * @param options
244
- * @returns {*}
245
- */
246
- export function createModuleNamespace(options) {
247
- const {
248
- namespace,
249
- ModuleClass
250
- } = options;
251
- if (!NAMESPACE_REGISTRY[namespace]) {
252
- // validation only for internal / module dev usage
253
- const firebaseModuleExtended = FirebaseModule.__extended__;
254
- const moduleClassExtended = ModuleClass.__extended__;
255
- if (firebaseModuleExtended !== moduleClassExtended) {
256
- throw new Error('INTERNAL ERROR: ModuleClass must be an instance of FirebaseModule.');
257
- }
258
- NAMESPACE_REGISTRY[namespace] = Object.assign({}, options);
259
- }
260
- return getFirebaseRoot()[namespace];
261
- }
262
- //# sourceMappingURL=namespace.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["isString","createDeprecationProxy","version","SDK_VERSION","DEFAULT_APP_NAME","KNOWN_NAMESPACES","FirebaseModule","getApp","getApps","initializeApp","setLogLevel","setReactNativeAsyncStorage","setOnAppCreate","setOnAppDestroy","FIREBASE_ROOT","NAMESPACE_REGISTRY","APP_MODULE_INSTANCE","MODULE_GETTER_FOR_APP","MODULE_GETTER_FOR_ROOT","app","i","length","moduleNamespace","Object","defineProperty","enumerable","get","firebaseAppModuleProxy","bind","name","getOrCreateModuleForApp","config","Error","hasCustomUrlOrRegionSupport","hasMultiAppSupport","ModuleClass","join","firebaseModuleWithArgs","customUrlOrRegionOrDatabaseId","undefined","key","moduleConfig","module","getOrCreateModuleForRoot","statics","firebaseModuleWithApp","_app","assign","firebaseRootModuleProxy","_firebaseNamespace","moduleWithDashes","split","toLowerCase","_checkDestroyed","createFirebaseRoot","root","apps","namespace","getFirebaseRoot","createModuleNamespace","options","firebaseModuleExtended","__extended__","moduleClassExtended"],"sourceRoot":"../../../../lib","sources":["internal/registry/namespace.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,QAAQ,EAAEC,sBAAsB,QAAQ,uBAAc;AAE/D,SAASC,OAAO,IAAIC,WAAW,QAAQ,kBAAe;AACtD,SAASC,gBAAgB,EAAEC,gBAAgB,QAA6B,iBAAc;AACtF,OAAOC,cAAc,MAAM,sBAAmB;AAE9C,SACEC,MAAM,EACNC,OAAO,EACPC,aAAa,EACbC,WAAW,EACXC,0BAA0B,EAC1BC,cAAc,EACdC,eAAe,QACV,UAAO;;AAEd;AACA,IAAIC,aAAkC,GAAG,IAAI;AAE7C,MAAMC,kBAA+D,GAAG,CAAC,CAAC;AAC1E,MAAMC,mBAAwE,GA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ACrC,IAAIqC,SAAS,EAAE;MACblC,MAAM,CAACC,cAAc,CAAC+B,IAAI,EAAEE,SAAS,EAAE;QACrChC,UAAU,EAAE,KAAK;QACjBC,GAAG,EAAEsB,uBAAuB,CAACpB,IAAI,CAAC,IAAI,EAAE2B,IAAI,EAAEE,SAAS;MACzD,CAAC,CAAC;IACJ;EACF;EAEA3C,aAAa,GAAGyC,IAAI;EACpB,OAAOA,IAAI;AACb;;AAEA;AACA;AACA;AACA;AACA,OAAO,SAASG,eAAeA,CAAA,EAAiB;EAC9C,IAAI5C,aAAa,EAAE;IACjB,OAAOA,aAAa;EACtB;EACA,OAAOwC,kBAAkB,CAAC,CAAC;AAC7B;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASK,qBAAqBA,CAACC,OAAwB,EAAgB;EAC5E,MAAM;IAAEH,SAAS;IAAEtB;EAAY,CAAC,GAAGyB,OAAO;EAE1C,IAAI,CAAC7C,kBAAkB,CAAC0C,SAAS,CAAC,EAAE;IAClC;IACA,MAAMI,sBAAsB,GAAIvD,cAAc,CAC3CwD,YAAY;IACf,MAAMC,mBAAmB,GAAI5B,WAAW,CAAyC2B,YAAY;IAC7F,IAAID,sBAAsB,KAAKE,mBAAmB,EAAE;MAClD,MAAM,IAAI/B,KAAK,CAAC,oEAAoE,CAAC;IACvF;IAEAjB,kBAAkB,CAAC0C,SAAS,CAAC,GAAGlC,MAAM,CAACwB,MAAM,CAAC,CAAC,CAAC,EAAEa,OAAO,CAAC;EAC5D;EAEA,OAAOF,eAAe,CAAC,CAAC,CAACD,SAAS,CAAC;AACrC","ignoreList":[]}
@@ -1,25 +0,0 @@
1
- "use strict";
2
-
3
- /*
4
- * Copyright (c) 2016-present Invertase Limited & Contributors
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License");
7
- * you may not use this library except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- *
18
- */
19
-
20
- import { getFirebaseRoot } from "./internal/registry/namespace.js";
21
- import utils from "./utils/index.js";
22
- export const firebase = getFirebaseRoot();
23
- export { utils };
24
- export default firebase;
25
- //# sourceMappingURL=namespaced.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["getFirebaseRoot","utils","firebase"],"sourceRoot":"../../lib","sources":["namespaced.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,eAAe,QAAQ,kCAA+B;AAC/D,OAAOC,KAAK,MAAM,kBAAS;AAE3B,OAAO,MAAMC,QAAQ,GAAGF,eAAe,CAAC,CAAC;AACzC,SAASC,KAAK;AAEd,eAAeC,QAAQ","ignoreList":[]}
@@ -1,26 +0,0 @@
1
- import FirebaseApp from '../../FirebaseApp';
2
- import type { ModuleGetter, FirebaseRoot, NamespaceConfig } from '../../types/internal';
3
- /**
4
- *
5
- * @param app
6
- * @param moduleNamespace
7
- * @returns {*}
8
- */
9
- export declare function firebaseAppModuleProxy(app: FirebaseApp, moduleNamespace: string): ModuleGetter;
10
- /**
11
- *
12
- * @returns {*}
13
- */
14
- export declare function createFirebaseRoot(): FirebaseRoot;
15
- /**
16
- *
17
- * @returns {*}
18
- */
19
- export declare function getFirebaseRoot(): FirebaseRoot;
20
- /**
21
- *
22
- * @param options
23
- * @returns {*}
24
- */
25
- export declare function createModuleNamespace(options: NamespaceConfig): ModuleGetter;
26
- //# sourceMappingURL=namespace.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"namespace.d.ts","sourceRoot":"","sources":["../../../../../lib/internal/registry/namespace.ts"],"names":[],"mappings":"AAkBA,OAAO,WAAW,MAAM,mBAAmB,CAAC;AAI5C,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AA+NxF;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,GAAG,YAAY,CAmB9F;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,IAAI,YAAY,CA2BjD;AAED;;;GAGG;AACH,wBAAgB,eAAe,IAAI,YAAY,CAK9C;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,eAAe,GAAG,YAAY,CAgB5E"}
@@ -1,5 +0,0 @@
1
- import utils from './utils';
2
- export declare const firebase: import("./types/internal").FirebaseRoot;
3
- export { utils };
4
- export default firebase;
5
- //# sourceMappingURL=namespaced.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"namespaced.d.ts","sourceRoot":"","sources":["../../../lib/namespaced.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B,eAAO,MAAM,QAAQ,yCAAoB,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,CAAC;AAEjB,eAAe,QAAQ,CAAC"}