@react-native-firebase/analytics 23.5.0 → 23.6.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,12 @@
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.6.0](https://github.com/invertase/react-native-firebase/compare/v23.5.0...v23.6.0) (2025-12-08)
7
+
8
+ ### Performance Improvements
9
+
10
+ - **analytics:** skip validateStruct in release mode ([#8716](https://github.com/invertase/react-native-firebase/issues/8716)) ([2b7bbb1](https://github.com/invertase/react-native-firebase/commit/2b7bbb1a4d7d53dca289fcd24eb7010a82fe0eae))
11
+
6
12
  ## [23.5.0](https://github.com/invertase/react-native-firebase/compare/v23.4.1...v23.5.0) (2025-10-30)
7
13
 
8
14
  **Note:** Version bump only for package @react-native-firebase/analytics
@@ -1,4 +1,6 @@
1
1
  /* groovylint-disable DuplicateStringLiteral */
2
+
3
+ import com.android.Version
2
4
  import io.invertase.gradle.common.PackageJson
3
5
 
4
6
  buildscript {
@@ -37,11 +39,8 @@ def jsonTargetSdk = appPackageJson['sdkVersions']['android']['targetSdk']
37
39
  def jsonCompileSdk = appPackageJson['sdkVersions']['android']['compileSdk']
38
40
  def coreVersionDetected = appPackageJson['version']
39
41
  def coreVersionRequired = packageJson['peerDependencies'][appPackageJson['name']]
40
- // Only log after build completed so log warning appears at the end
41
42
  if (coreVersionDetected != coreVersionRequired) {
42
- gradle.buildFinished {
43
- project.logger.warn("ReactNativeFirebase WARNING: NPM package '${packageJson['name']}' depends on '${appPackageJson['name']}' v${coreVersionRequired} but found v${coreVersionDetected}, this might cause build issues or runtime crashes.")
44
- }
43
+ project.logger.warn("ReactNativeFirebase WARNING: NPM package '${packageJson['name']}' depends on '${appPackageJson['name']}' v${coreVersionRequired} but found v${coreVersionDetected}, this might cause build issues or runtime crashes.")
45
44
  }
46
45
 
47
46
  project.ext {
@@ -117,7 +116,7 @@ if (rootProject.ext && rootProject.ext.firebaseJson) {
117
116
  }
118
117
 
119
118
  android {
120
- def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')[0].toInteger()
119
+ def agpVersion = Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')[0].toInteger()
121
120
  if (agpVersion >= 7) {
122
121
  namespace = 'io.invertase.firebase.analytics'
123
122
  }
package/lib/struct.js CHANGED
@@ -18,6 +18,10 @@ import { isUndefined } from '@react-native-firebase/app/lib/common/validate';
18
18
  import { create } from 'superstruct';
19
19
 
20
20
  export const validateStruct = (value = {}, struct, prefix = '') => {
21
+ // skip superstruct create in release for performance reasons
22
+ if (!__DEV__) {
23
+ return value;
24
+ }
21
25
  try {
22
26
  return create(value, struct);
23
27
  } catch (e) {
package/lib/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- module.exports = '23.5.0';
2
+ module.exports = '23.6.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-firebase/analytics",
3
- "version": "23.5.0",
3
+ "version": "23.6.0",
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": "23.5.0"
25
+ "@react-native-firebase/app": "23.6.0"
26
26
  },
27
27
  "publishConfig": {
28
28
  "access": "public",
@@ -31,5 +31,5 @@
31
31
  "dependencies": {
32
32
  "superstruct": "^2.0.2"
33
33
  },
34
- "gitHead": "5d27948f349d4d6c977c55036e2afd13df8d622f"
34
+ "gitHead": "748e89f9bfcdfbee971c627cd8a698963ba09f33"
35
35
  }