@react-native-firebase/analytics 14.0.1 → 14.2.2
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 +20 -0
- package/android/build.gradle +6 -1
- package/android/src/main/AndroidManifest.xml +1 -0
- package/android/src/reactnative/java/io/invertase/firebase/analytics/ReactNativeFirebaseAnalyticsModule.java +4 -0
- package/ios/RNFBAnalytics/RNFBAnalyticsModule.m +4 -0
- package/lib/version.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,26 @@
|
|
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
|
+
## [14.2.2](https://github.com/invertase/react-native-firebase/compare/v14.2.1...v14.2.2) (2022-01-06)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @react-native-firebase/analytics
|
9
|
+
|
10
|
+
## [14.2.1](https://github.com/invertase/react-native-firebase/compare/v14.2.0...v14.2.1) (2021-12-31)
|
11
|
+
|
12
|
+
**Note:** Version bump only for package @react-native-firebase/analytics
|
13
|
+
|
14
|
+
# [14.2.0](https://github.com/invertase/react-native-firebase/compare/v14.1.0...v14.2.0) (2021-12-31)
|
15
|
+
|
16
|
+
### Bug Fixes
|
17
|
+
|
18
|
+
- **analytics:** correct native types for extend_session parameter ([#5973](https://github.com/invertase/react-native-firebase/issues/5973)) ([23fdf61](https://github.com/invertase/react-native-firebase/commit/23fdf61a613c6cde6d5f3c807a7b13274fa3ab5a))
|
19
|
+
|
20
|
+
# [14.1.0](https://github.com/invertase/react-native-firebase/compare/v14.0.1...v14.1.0) (2021-12-18)
|
21
|
+
|
22
|
+
### Features
|
23
|
+
|
24
|
+
- **analytics, config:** expose automatic screenview reporting toggle ([#5948](https://github.com/invertase/react-native-firebase/issues/5948)) ([8836c01](https://github.com/invertase/react-native-firebase/commit/8836c01dcfa2f478f973a1a54253509c3368d963))
|
25
|
+
|
6
26
|
## [14.0.1](https://github.com/invertase/react-native-firebase/compare/v14.0.0...v14.0.1) (2021-12-15)
|
7
27
|
|
8
28
|
**Note:** Version bump only for package @react-native-firebase/analytics
|
package/android/build.gradle
CHANGED
@@ -70,6 +70,7 @@ String collectionDeactivated = 'false'
|
|
70
70
|
String adidEnabled = 'true'
|
71
71
|
String ssaidEnabled = 'true'
|
72
72
|
String personalizationEnabled = 'true'
|
73
|
+
String automaticScreenReportingEnabled = 'true'
|
73
74
|
|
74
75
|
// If nothing is defined, data collection defaults to true
|
75
76
|
String dataCollectionEnabled = 'true'
|
@@ -102,6 +103,9 @@ if (rootProject.ext && rootProject.ext.firebaseJson) {
|
|
102
103
|
if (rnfbConfig.isFlagEnabled('analytics_default_allow_ad_personalization_signals', true) == false) {
|
103
104
|
personalizationEnabled = 'false'
|
104
105
|
}
|
106
|
+
if (rnfbConfig.isFlagEnabled('google_analytics_automatic_screen_reporting_enabled', true) == false) {
|
107
|
+
automaticScreenReportingEnabled = 'false'
|
108
|
+
}
|
105
109
|
}
|
106
110
|
|
107
111
|
android {
|
@@ -112,7 +116,8 @@ android {
|
|
112
116
|
firebaseJsonCollectionDeactivated: collectionDeactivated,
|
113
117
|
firebaseJsonAdidEnabled: adidEnabled,
|
114
118
|
firebaseJsonSsaidEnabled: ssaidEnabled,
|
115
|
-
firebaseJsonPersonalizationEnabled: personalizationEnabled
|
119
|
+
firebaseJsonPersonalizationEnabled: personalizationEnabled,
|
120
|
+
firebaseJsonAutomaticScreenReportingEnabled: automaticScreenReportingEnabled
|
116
121
|
]
|
117
122
|
}
|
118
123
|
lintOptions {
|
@@ -12,5 +12,6 @@
|
|
12
12
|
<meta-data android:name="google_analytics_adid_collection_enabled" android:value="${firebaseJsonAdidEnabled}" />
|
13
13
|
<meta-data android:name="google_analytics_ssaid_collection_enabled" android:value="${firebaseJsonSsaidEnabled}" />
|
14
14
|
<meta-data android:name="google_analytics_default_allow_ad_personalization_signals" android:value="${firebaseJsonPersonalizationEnabled}" />
|
15
|
+
<meta-data android:name="google_analytics_automatic_screen_reporting_enabled" android:value="${firebaseJsonAutomaticScreenReportingEnabled}" />
|
15
16
|
</application>
|
16
17
|
</manifest>
|
@@ -175,6 +175,10 @@ public class ReactNativeFirebaseAnalyticsModule extends ReactNativeFirebaseModul
|
|
175
175
|
((Bundle) item).putInt(FirebaseAnalytics.Param.QUANTITY, (int) number);
|
176
176
|
}
|
177
177
|
}
|
178
|
+
if (bundle.containsKey(FirebaseAnalytics.Param.EXTEND_SESSION)) {
|
179
|
+
double number = bundle.getDouble(FirebaseAnalytics.Param.EXTEND_SESSION);
|
180
|
+
bundle.putLong(FirebaseAnalytics.Param.EXTEND_SESSION, (long) number);
|
181
|
+
}
|
178
182
|
return bundle;
|
179
183
|
}
|
180
184
|
}
|
@@ -155,6 +155,10 @@ RCT_EXPORT_METHOD(setDefaultEventParameters
|
|
155
155
|
}];
|
156
156
|
newParams[kFIRParameterItems] = [newItems copy];
|
157
157
|
}
|
158
|
+
NSNumber *extendSession = [newParams valueForKey:kFIRParameterExtendSession];
|
159
|
+
if ([extendSession isEqualToNumber:@1]) {
|
160
|
+
newParams[kFIRParameterExtendSession] = @YES;
|
161
|
+
}
|
158
162
|
return [newParams copy];
|
159
163
|
}
|
160
164
|
|
package/lib/version.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
// generated by genversion
|
2
|
-
module.exports = '14.
|
2
|
+
module.exports = '14.2.2';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@react-native-firebase/analytics",
|
3
|
-
"version": "14.
|
3
|
+
"version": "14.2.2",
|
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,10 +22,10 @@
|
|
22
22
|
"analytics"
|
23
23
|
],
|
24
24
|
"peerDependencies": {
|
25
|
-
"@react-native-firebase/app": "14.
|
25
|
+
"@react-native-firebase/app": "14.2.2"
|
26
26
|
},
|
27
27
|
"publishConfig": {
|
28
28
|
"access": "public"
|
29
29
|
},
|
30
|
-
"gitHead": "
|
30
|
+
"gitHead": "7b0de31e45be9ca7571583e77d1b06c3088df053"
|
31
31
|
}
|