@react-native-firebase/analytics 21.7.2 → 21.7.4
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 +10 -0
- package/lib/modular/index.js +4 -4
- package/lib/version.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,16 @@
|
|
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
|
+
## [21.7.4](https://github.com/invertase/react-native-firebase/compare/v21.7.3...v21.7.4) (2025-02-08)
|
7
|
+
|
8
|
+
### Bug Fixes
|
9
|
+
|
10
|
+
- the init calls for modular should use modular getApp() ([79da98b](https://github.com/invertase/react-native-firebase/commit/79da98bf4ecf7860db61b2813b87673f1cd0adfd))
|
11
|
+
|
12
|
+
## [21.7.3](https://github.com/invertase/react-native-firebase/compare/v21.7.2...v21.7.3) (2025-02-08)
|
13
|
+
|
14
|
+
**Note:** Version bump only for package @react-native-firebase/analytics
|
15
|
+
|
6
16
|
## [21.7.2](https://github.com/invertase/react-native-firebase/compare/v21.7.1...v21.7.2) (2025-02-05)
|
7
17
|
|
8
18
|
**Note:** Version bump only for package @react-native-firebase/analytics
|
package/lib/modular/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { getApp } from '@react-native-firebase/app';
|
2
2
|
|
3
3
|
/**
|
4
4
|
* @typedef {import('@firebase/app').FirebaseApp} FirebaseApp
|
@@ -48,9 +48,9 @@ import { firebase } from '..';
|
|
48
48
|
*/
|
49
49
|
export function getAnalytics(app) {
|
50
50
|
if (app) {
|
51
|
-
return
|
51
|
+
return getApp(app.name).analytics();
|
52
52
|
}
|
53
|
-
return
|
53
|
+
return getApp().analytics();
|
54
54
|
}
|
55
55
|
|
56
56
|
/**
|
@@ -61,7 +61,7 @@ export function getAnalytics(app) {
|
|
61
61
|
*/
|
62
62
|
// eslint-disable-next-line
|
63
63
|
export function initializeAnalytics(app, options) {
|
64
|
-
return
|
64
|
+
return getApp(app.name).analytics();
|
65
65
|
}
|
66
66
|
|
67
67
|
/**
|
package/lib/version.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
// Generated by genversion.
|
2
|
-
module.exports = '21.7.
|
2
|
+
module.exports = '21.7.4';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@react-native-firebase/analytics",
|
3
|
-
"version": "21.7.
|
3
|
+
"version": "21.7.4",
|
4
4
|
"author": "Invertase <oss@invertase.io> (http://invertase.io)",
|
5
5
|
"description": "React Native Firebase - The analytics module provides out of the box support with Google Analytics for Firebase. Integration with the Android & iOS allows for in-depth analytical insight reporting, such as device information, location, user actions and more.",
|
6
6
|
"main": "lib/index.js",
|
@@ -22,7 +22,7 @@
|
|
22
22
|
"analytics"
|
23
23
|
],
|
24
24
|
"peerDependencies": {
|
25
|
-
"@react-native-firebase/app": "21.7.
|
25
|
+
"@react-native-firebase/app": "21.7.4"
|
26
26
|
},
|
27
27
|
"publishConfig": {
|
28
28
|
"access": "public"
|
@@ -30,5 +30,5 @@
|
|
30
30
|
"dependencies": {
|
31
31
|
"superstruct": "^2.0.2"
|
32
32
|
},
|
33
|
-
"gitHead": "
|
33
|
+
"gitHead": "82c4c7391fee6597726e5363d78400f11a644e47"
|
34
34
|
}
|