@react-native-firebase/app 16.4.5 → 16.5.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +16 -0
- package/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseVersion.java +1 -1
- package/ios/RNFBApp/RNFBVersion.m +1 -1
- package/lib/index.js +1 -0
- package/lib/internal/registry/app.js +4 -0
- package/lib/modular/app.js +33 -0
- package/lib/version.js +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,22 @@
|
|
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
|
+
## [16.5.0](https://github.com/invertase/react-native-firebase/compare/v16.4.6...v16.5.0) (2022-12-16)
|
7
|
+
|
8
|
+
### Features
|
9
|
+
|
10
|
+
- **app:** migrate `app` module to a modular API ([#6694](https://github.com/invertase/react-native-firebase/issues/6694)) ([c285016](https://github.com/invertase/react-native-firebase/commit/c285016618bb79fd3a559d5fdcb983bb2aadaa77))
|
11
|
+
|
12
|
+
### Bug Fixes
|
13
|
+
|
14
|
+
- **app, sdks:** ios-sdk 10.3.0 / android-sdk 31.1.1 ([00708b6](https://github.com/invertase/react-native-firebase/commit/00708b680cd837ed23d41b27bb76b2895e719f79))
|
15
|
+
|
16
|
+
### [16.4.6](https://github.com/invertase/react-native-firebase/compare/v16.4.5...v16.4.6) (2022-11-18)
|
17
|
+
|
18
|
+
### Bug Fixes
|
19
|
+
|
20
|
+
- **app, android:** firebase-android-sdk 31.1.0 ([af089c0](https://github.com/invertase/react-native-firebase/commit/af089c00496aa55e66ea83e87b8cf54c8144c9fb))
|
21
|
+
|
6
22
|
### [16.4.5](https://github.com/invertase/react-native-firebase/compare/v16.4.4...v16.4.5) (2022-11-16)
|
7
23
|
|
8
24
|
### Bug Fixes
|
package/lib/index.js
CHANGED
@@ -216,6 +216,10 @@ export function deleteApp(name, nativeInitialized) {
|
|
216
216
|
|
217
217
|
const app = APP_REGISTRY[name];
|
218
218
|
|
219
|
+
if (app === undefined) {
|
220
|
+
throw new Error(`Firebase App named '${name}' already deleted`);
|
221
|
+
}
|
222
|
+
|
219
223
|
const nativeModule = getAppModule();
|
220
224
|
|
221
225
|
return nativeModule.deleteApp(name).then(() => {
|
@@ -0,0 +1,33 @@
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
2
|
+
import {
|
3
|
+
deleteApp as deleteAppCompat,
|
4
|
+
getApp,
|
5
|
+
getApps,
|
6
|
+
initializeApp,
|
7
|
+
setLogLevel,
|
8
|
+
} from '../internal';
|
9
|
+
|
10
|
+
/**
|
11
|
+
* Renders this app unusable and frees the resources of all associated services.
|
12
|
+
* @param app - FirebaseApp - The app to delete.
|
13
|
+
* @returns
|
14
|
+
*/
|
15
|
+
export function deleteApp(app) {
|
16
|
+
return deleteAppCompat(app.name, app._nativeInitialized);
|
17
|
+
}
|
18
|
+
|
19
|
+
/**
|
20
|
+
* Registers a library's name and version for platform logging purposes.
|
21
|
+
*/
|
22
|
+
export function registerVersion() {
|
23
|
+
throw new Error('registerVersion is only supported on Web');
|
24
|
+
}
|
25
|
+
|
26
|
+
/**
|
27
|
+
* Sets log handler for all Firebase SDKs.
|
28
|
+
*/
|
29
|
+
export function onLog(logCallback, options) {
|
30
|
+
throw new Error('onLog is only supported on Web');
|
31
|
+
}
|
32
|
+
|
33
|
+
export { getApps, initializeApp, getApp, setLogLevel };
|
package/lib/version.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
// Generated by genversion.
|
2
|
-
module.exports = '16.
|
2
|
+
module.exports = '16.5.0';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@react-native-firebase/app",
|
3
|
-
"version": "16.
|
3
|
+
"version": "16.5.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",
|
@@ -65,7 +65,7 @@
|
|
65
65
|
},
|
66
66
|
"sdkVersions": {
|
67
67
|
"ios": {
|
68
|
-
"firebase": "10.
|
68
|
+
"firebase": "10.3.0",
|
69
69
|
"iosTarget": "11.0",
|
70
70
|
"macosTarget": "10.13"
|
71
71
|
},
|
@@ -73,12 +73,12 @@
|
|
73
73
|
"minSdk": 19,
|
74
74
|
"targetSdk": 33,
|
75
75
|
"compileSdk": 33,
|
76
|
-
"firebase": "31.
|
76
|
+
"firebase": "31.1.1",
|
77
77
|
"firebaseCrashlyticsGradle": "2.9.2",
|
78
78
|
"firebasePerfGradle": "1.4.2",
|
79
79
|
"gmsGoogleServicesGradle": "4.3.14",
|
80
80
|
"playServicesAuth": "20.3.0"
|
81
81
|
}
|
82
82
|
},
|
83
|
-
"gitHead": "
|
83
|
+
"gitHead": "54f60128502e25e1026a2e093ef42ae46977cbe6"
|
84
84
|
}
|