@react-native-firebase/app 23.0.0 → 23.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 CHANGED
@@ -3,6 +3,23 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [23.1.0](https://github.com/invertase/react-native-firebase/compare/v23.0.1...v23.1.0) (2025-08-19)
7
+
8
+ ### Features
9
+
10
+ - **ai:** create `ai` package, `vertexai` wraps around it ([#8555](https://github.com/invertase/react-native-firebase/issues/8555)) ([50c9e0d](https://github.com/invertase/react-native-firebase/commit/50c9e0d8a361b575c6cbf86f028165906d819162))
11
+
12
+ ### Bug Fixes
13
+
14
+ - **app, ios:** fail build with error if firebase.json has syntax errors ([5c752e7](https://github.com/invertase/react-native-firebase/commit/5c752e710e39f0aad40182706a934e5979727fa1))
15
+ - **app:** adopt firebase-js-sdk 12.1.0 ([115a55c](https://github.com/invertase/react-native-firebase/commit/115a55ce85c1a4db8f8b92f4e30c86776499f6ea))
16
+
17
+ ## [23.0.1](https://github.com/invertase/react-native-firebase/compare/v23.0.0...v23.0.1) (2025-08-12)
18
+
19
+ ### Bug Fixes
20
+
21
+ - **app, android:** adopt firebase-android-sdk 34.1.0 ([b9af1d3](https://github.com/invertase/react-native-firebase/commit/b9af1d3d24a4fa77587eb1a9f7a5d784750a58bb))
22
+
6
23
  ## [23.0.0](https://github.com/invertase/react-native-firebase/compare/v22.4.0...v23.0.0) (2025-08-07)
7
24
 
8
25
  ### ⚠ BREAKING CHANGES
@@ -18,5 +18,5 @@ package io.invertase.firebase.app;
18
18
  */
19
19
  // generated file - do not modify or commit
20
20
  public class ReactNativeFirebaseVersion {
21
- public static String VERSION = "23.0.0";
21
+ public static String VERSION = "23.1.0";
22
22
  }
@@ -18,4 +18,4 @@
18
18
  #import <React/RCTVersion.h>
19
19
 
20
20
  // generated file - do not modify or commit
21
- NSString* const RNFBVersionString = @"23.0.0";
21
+ NSString* const RNFBVersionString = @"23.1.0";
package/ios_config.sh CHANGED
@@ -88,7 +88,10 @@ done
88
88
 
89
89
  if [[ ${_SEARCH_RESULT} ]]; then
90
90
  _JSON_OUTPUT_RAW=$(cat "${_SEARCH_RESULT}")
91
- _RN_ROOT_EXISTS=$(ruby -Ku -e "require 'rubygems';require 'json'; output=JSON.parse('$_JSON_OUTPUT_RAW'); puts output[$_JSON_ROOT]" || echo '')
91
+ if ! _RN_ROOT_EXISTS=$(ruby -Ku -e "require 'json'; output=JSON.parse('$_JSON_OUTPUT_RAW'); puts output[$_JSON_ROOT]"); then
92
+ echo "error: Failed to parse firebase.json, check for syntax errors."
93
+ exit 1
94
+ fi
92
95
 
93
96
  if [[ ${_RN_ROOT_EXISTS} ]]; then
94
97
  if ! python3 --version >/dev/null 2>&1; then echo "python3 not found, firebase.json file processing error." && exit 1; fi
package/lib/index.d.ts CHANGED
@@ -149,6 +149,11 @@ export namespace ReactNativeFirebase {
149
149
  */
150
150
  readonly options: FirebaseAppOptions;
151
151
 
152
+ /**
153
+ * The settable config flag for GDPR opt-in/opt-out
154
+ */
155
+ automaticDataCollectionEnabled: boolean;
156
+
152
157
  /**
153
158
  * Make this app unusable and free up resources.
154
159
  */
@@ -205,7 +205,7 @@ const serializer = (strict, json, $, _) => {
205
205
 
206
206
  function serialize(value, { json, lossy } = {}) {
207
207
  const _ = [];
208
- return serializer(!(json || lossy), !!json, new Map(), _)(value), _;
208
+ return (serializer(!(json || lossy), !!json, new Map(), _)(value), _);
209
209
  }
210
210
 
211
211
  let sCloneAvailable = false;
@@ -3,6 +3,7 @@ import { ReactNativeFirebase } from '..';
3
3
  import FirebaseApp = ReactNativeFirebase.FirebaseApp;
4
4
  import FirebaseAppOptions = ReactNativeFirebase.FirebaseAppOptions;
5
5
  import LogLevelString = ReactNativeFirebase.LogLevelString;
6
+ import FirebaseAppConfig = ReactNativeFirebase.FirebaseAppConfig;
6
7
 
7
8
  /**
8
9
  * Renders this app unusable and frees the resources of all associated services.
@@ -57,6 +58,16 @@ export function getApps(): FirebaseApp[];
57
58
  */
58
59
  export function initializeApp(options: FirebaseAppOptions, name?: string): Promise<FirebaseApp>;
59
60
 
61
+ /**
62
+ * Initializes a Firebase app with the provided options and config.
63
+ * @param options - Options to configure the services used in the app.
64
+ * @param config - The optional config for your firebase app.
65
+ * @returns Promise<FirebaseApp> - The initialized Firebase app.
66
+ */
67
+ export function initializeApp(
68
+ options: FirebaseAppOptions,
69
+ config?: FirebaseAppConfig,
70
+ ): Promise<FirebaseApp>;
60
71
  /**
61
72
  * Retrieves an instance of a Firebase app.
62
73
  * @param name - The optional name of the app to return ('[DEFAULT]' if omitted).
@@ -60,11 +60,11 @@ export function getApps() {
60
60
  /**
61
61
  * Initializes a Firebase app with the provided options and name.
62
62
  * @param {FirebaseAppOptions} options - Options to configure the services used in the app.
63
- * @param {string} [name] - The optional name of the app to initialize ('[DEFAULT]' if omitted).
63
+ * @param {string | FirebaseAppConfig} [configOrName] - The optional name of the app, or config for the app to initialize (a name of '[DEFAULT]' will be used if omitted).
64
64
  * @returns {FirebaseApp} - The initialized Firebase app.
65
65
  */
66
- export function initializeApp(options, name) {
67
- return initializeAppCompat.call(null, options, name, MODULAR_DEPRECATION_ARG);
66
+ export function initializeApp(options, configOrName) {
67
+ return initializeAppCompat.call(null, options, configOrName, MODULAR_DEPRECATION_ARG);
68
68
  }
69
69
 
70
70
  /**
package/lib/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- module.exports = '23.0.0';
2
+ module.exports = '23.1.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-firebase/app",
3
- "version": "23.0.0",
3
+ "version": "23.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": "lib/index.js",
@@ -57,11 +57,11 @@
57
57
  "react-native": "*"
58
58
  },
59
59
  "dependencies": {
60
- "firebase": "12.0.0"
60
+ "firebase": "12.1.0"
61
61
  },
62
62
  "devDependencies": {
63
- "@react-native-async-storage/async-storage": "^2.1.2",
64
- "expo": "^52.0.46"
63
+ "@react-native-async-storage/async-storage": "^2.2.0",
64
+ "expo": "^53.0.20"
65
65
  },
66
66
  "peerDependenciesMeta": {
67
67
  "expo": {
@@ -83,13 +83,13 @@
83
83
  "minSdk": 23,
84
84
  "targetSdk": 34,
85
85
  "compileSdk": 34,
86
- "firebase": "34.0.0",
87
- "firebaseCrashlyticsGradle": "3.0.5",
88
- "firebasePerfGradle": "2.0.0",
86
+ "firebase": "34.1.0",
87
+ "firebaseCrashlyticsGradle": "3.0.6",
88
+ "firebasePerfGradle": "2.0.1",
89
89
  "gmsGoogleServicesGradle": "4.4.3",
90
90
  "playServicesAuth": "21.4.0",
91
91
  "firebaseAppDistributionGradle": "5.1.2"
92
92
  }
93
93
  },
94
- "gitHead": "14c35416e62f3626d6c2aee2ffd000bd2337884b"
94
+ "gitHead": "b152d06e706e499464829f856804e29565118cc5"
95
95
  }
@@ -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":"5.8.3"}
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":"5.9.2"}