@react-native-firebase/app 22.0.0 → 22.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 +9 -0
- package/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseVersion.java +1 -1
- package/ios/RNFBApp/RNFBVersion.m +1 -1
- package/lib/FirebaseApp.js +1 -1
- package/lib/modular/index.d.ts +40 -0
- package/lib/modular/index.js +52 -0
- package/lib/version.js +1 -1
- package/package.json +2 -2
- package/plugin/build/ios/appDelegate.js +1 -1
- package/plugin/src/ios/appDelegate.ts +2 -1
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,15 @@
|
|
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
|
+
## [22.1.0](https://github.com/invertase/react-native-firebase/compare/v22.0.0...v22.1.0) (2025-04-30)
|
7
|
+
|
8
|
+
### Bug Fixes
|
9
|
+
|
10
|
+
- **app, expo:** add config plugin support for Expo SDK 53 ([#8495](https://github.com/invertase/react-native-firebase/issues/8495)) ([7617611](https://github.com/invertase/react-native-firebase/commit/7617611fb7ba903d7a15b44bc34c930a354a863c))
|
11
|
+
- **app, expo:** update config plugin to match Expo 53.0.1 AppDelegate ([#8500](https://github.com/invertase/react-native-firebase/issues/8500)) ([3d3c4ec](https://github.com/invertase/react-native-firebase/commit/3d3c4ece9f9a9de76e36f4f35611fca5ed208abc))
|
12
|
+
- **app:** provide modular-like APIs for RNFB-specific json/meta/preferences methods ([9bb5365](https://github.com/invertase/react-native-firebase/commit/9bb536523869a21a26bd46756d0f42ee2ff34321))
|
13
|
+
- **app:** toString() does not exist in modular API, use .name property ([2a99366](https://github.com/invertase/react-native-firebase/commit/2a99366ae56a36a6d4b3bdb7beca6137c4040e59))
|
14
|
+
|
6
15
|
## [22.0.0](https://github.com/invertase/react-native-firebase/compare/v21.14.0...v22.0.0) (2025-04-25)
|
7
16
|
|
8
17
|
### ⚠ BREAKING CHANGES
|
package/lib/FirebaseApp.js
CHANGED
package/lib/modular/index.d.ts
CHANGED
@@ -71,6 +71,46 @@ export function getApp(name?: string): FirebaseApp;
|
|
71
71
|
*/
|
72
72
|
export function setLogLevel(logLevel: LogLevelString): void;
|
73
73
|
|
74
|
+
/**
|
75
|
+
* Gets react-native-firebase specific "meta" data from native Info.plist / AndroidManifest.xml
|
76
|
+
* @returns map of key / value pairs containing native meta data
|
77
|
+
*/
|
78
|
+
export function metaGetAll(): Promise<{ [keyof: string]: string | boolean }>;
|
79
|
+
|
80
|
+
/**
|
81
|
+
* Gets react-native-firebase specific "firebase.json" data
|
82
|
+
* @returns map of key / value pairs containing native firebase.json constants
|
83
|
+
*/
|
84
|
+
export function jsonGetAll(): Promise<{ [keyof: string]: string | boolean }>;
|
85
|
+
|
86
|
+
/**
|
87
|
+
* Clears react-native-firebase specific native preferences
|
88
|
+
* @returns Promise<void>
|
89
|
+
*/
|
90
|
+
export function preferencesClearAll(): Promise<void>;
|
91
|
+
|
92
|
+
/**
|
93
|
+
* Gets react-native-firebase specific native preferences
|
94
|
+
* @returns map of key / value pairs containing native preferences data
|
95
|
+
*/
|
96
|
+
export function preferencesGetAll(): Promise<{ [keyof: string]: string | boolean }>;
|
97
|
+
|
98
|
+
/**
|
99
|
+
* Sets react-native-firebase specific native boolean preference
|
100
|
+
* @param key the name of the native preference to set
|
101
|
+
* @param value the value of the native preference to set
|
102
|
+
* @returns Promise<void>
|
103
|
+
*/
|
104
|
+
export function preferencesSetBool(key: string, value: boolean): Promise<void>;
|
105
|
+
|
106
|
+
/**
|
107
|
+
* Sets react-native-firebase specific native string preference
|
108
|
+
* @param key the name of the native preference to set
|
109
|
+
* @param value the value of the native preference to set
|
110
|
+
* @returns Promise<void>
|
111
|
+
*/
|
112
|
+
export function preferencesSetString(key: string, value: string): Promise<void>;
|
113
|
+
|
74
114
|
/**
|
75
115
|
* The `AsyncStorage` implementation to use for persisting data on 'Other' platforms.
|
76
116
|
* If not specified, in memory persistence is used.
|
package/lib/modular/index.js
CHANGED
@@ -95,4 +95,56 @@ export function setReactNativeAsyncStorage(asyncStorage) {
|
|
95
95
|
return setReactNativeAsyncStorageCompat.call(null, asyncStorage, MODULAR_DEPRECATION_ARG);
|
96
96
|
}
|
97
97
|
|
98
|
+
/**
|
99
|
+
* Gets react-native-firebase specific "meta" data from native Info.plist / AndroidManifest.xml
|
100
|
+
* @returns map of key / value pairs containing native meta data
|
101
|
+
*/
|
102
|
+
export function metaGetAll() {
|
103
|
+
return NativeModules.RNFBAppModule.metaGetAll();
|
104
|
+
}
|
105
|
+
|
106
|
+
/**
|
107
|
+
* Gets react-native-firebase specific "firebase.json" data
|
108
|
+
* @returns map of key / value pairs containing native firebase.json constants
|
109
|
+
*/
|
110
|
+
export function jsonGetAll() {
|
111
|
+
return NativeModules.RNFBAppModule.jsonGetAll();
|
112
|
+
}
|
113
|
+
|
114
|
+
/**
|
115
|
+
* Clears react-native-firebase specific native preferences
|
116
|
+
* @returns Promise<void>
|
117
|
+
*/
|
118
|
+
export function preferencesClearAll() {
|
119
|
+
return NativeModules.RNFBAppModule.preferencesClearAll();
|
120
|
+
}
|
121
|
+
|
122
|
+
/**
|
123
|
+
* Gets react-native-firebase specific native preferences
|
124
|
+
* @returns map of key / value pairs containing native preferences data
|
125
|
+
*/
|
126
|
+
export function preferencesGetAll() {
|
127
|
+
return NativeModules.RNFBAppModule.preferencesGetAll();
|
128
|
+
}
|
129
|
+
|
130
|
+
/**
|
131
|
+
* Sets react-native-firebase specific native boolean preference
|
132
|
+
* @param key the name of the native preference to set
|
133
|
+
* @param value the value of the native preference to set
|
134
|
+
* @returns Promise<void>
|
135
|
+
*/
|
136
|
+
export function preferencesSetBool(key, value) {
|
137
|
+
return NativeModules.RNFBAppModule.preferencesSetBool(key, value);
|
138
|
+
}
|
139
|
+
|
140
|
+
/**
|
141
|
+
* Sets react-native-firebase specific native string preference
|
142
|
+
* @param key the name of the native preference to set
|
143
|
+
* @param value the value of the native preference to set
|
144
|
+
* @returns Promise<void>
|
145
|
+
*/
|
146
|
+
export function preferencesSetString(key, value) {
|
147
|
+
return NativeModules.RNFBAppModule.preferencesSetString(key, value);
|
148
|
+
}
|
149
|
+
|
98
150
|
export const SDK_VERSION = sdkVersion;
|
package/lib/version.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
// Generated by genversion.
|
2
|
-
module.exports = '22.
|
2
|
+
module.exports = '22.1.0';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@react-native-firebase/app",
|
3
|
-
"version": "22.
|
3
|
+
"version": "22.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",
|
@@ -91,5 +91,5 @@
|
|
91
91
|
"firebaseAppDistributionGradle": "5.1.1"
|
92
92
|
}
|
93
93
|
},
|
94
|
-
"gitHead": "
|
94
|
+
"gitHead": "af6096ed9df878f0f169e899564b0aab68d396e5"
|
95
95
|
}
|
@@ -61,7 +61,7 @@ function modifyObjcAppDelegate(contents) {
|
|
61
61
|
}
|
62
62
|
function modifySwiftAppDelegate(contents) {
|
63
63
|
const methodInvocationBlock = `FirebaseApp.configure()`;
|
64
|
-
const methodInvocationLineMatcher = /(?:self\.moduleName\s*=\s*"([^"]*)")
|
64
|
+
const methodInvocationLineMatcher = /(?:self\.moduleName\s*=\s*"([^"]*)")|(?:factory\.startReactNative\()/;
|
65
65
|
// Add import
|
66
66
|
if (!contents.includes('import FirebaseCore')) {
|
67
67
|
contents = contents.replace(/import Expo/g, `import Expo
|
@@ -70,7 +70,8 @@ export function modifyObjcAppDelegate(contents: string): string {
|
|
70
70
|
|
71
71
|
export function modifySwiftAppDelegate(contents: string): string {
|
72
72
|
const methodInvocationBlock = `FirebaseApp.configure()`;
|
73
|
-
const methodInvocationLineMatcher =
|
73
|
+
const methodInvocationLineMatcher =
|
74
|
+
/(?:self\.moduleName\s*=\s*"([^"]*)")|(?:factory\.startReactNative\()/;
|
74
75
|
|
75
76
|
// Add import
|
76
77
|
if (!contents.includes('import FirebaseCore')) {
|