@react-native-firebase/app 21.4.1 → 21.5.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,13 @@
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.5.0](https://github.com/invertase/react-native-firebase/compare/v21.4.1...v21.5.0) (2024-11-16)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **android:** forward-port to non-deprecated data collection API ([2c87eeb](https://github.com/invertase/react-native-firebase/commit/2c87eeb3f0e8053ab02d4f6cce047ad61a6310fa))
11
+ - **android:** rn74 forward-port onCatalystInstanceDestroy -> invalidate ([83696ea](https://github.com/invertase/react-native-firebase/commit/83696ea4c944b2be0b8fd9f2fc1db212800cbcf8))
12
+
6
13
  ## [21.4.1](https://github.com/invertase/react-native-firebase/compare/v21.4.0...v21.4.1) (2024-11-13)
7
14
 
8
15
  ### Bug Fixes
@@ -18,5 +18,5 @@ package io.invertase.firebase.app;
18
18
  */
19
19
  // generated file - do not modify or commit
20
20
  public class ReactNativeFirebaseVersion {
21
- public static String VERSION = "21.4.1";
21
+ public static String VERSION = "21.5.0";
22
22
  }
@@ -98,7 +98,7 @@ public class RCTConvertFirebase {
98
98
 
99
99
  if (appConfig.hasKey("automaticDataCollectionEnabled")) {
100
100
  firebaseApp.setDataCollectionDefaultEnabled(
101
- appConfig.getBoolean("automaticDataCollectionEnabled"));
101
+ Boolean.valueOf(appConfig.getBoolean("automaticDataCollectionEnabled")));
102
102
  }
103
103
 
104
104
  if (appConfig.hasKey("automaticResourceManagement")) {
@@ -92,9 +92,26 @@ public class ReactNativeFirebaseModule extends ReactContextBaseJavaModule
92
92
  return executorService.getTransactionalExecutor(identifier);
93
93
  }
94
94
 
95
- @Override
96
- @CallSuper
95
+
96
+ // This is no longer called as of react-native 0.74 and is only here for
97
+ // compatibility with older versions. It delegates to thew new `invalidate`
98
+ // method, which all modules should implement now
99
+ // Remove this method when minimum supported react-native is 0.74
100
+ /** @noinspection removal*/
101
+ @SuppressWarnings({"deprecation", "removal"})
102
+ @Deprecated
97
103
  public void onCatalystInstanceDestroy() {
104
+ // This should call the child class invalidate, which will then call super.invalidate,
105
+ // and everything will work correctly up and down the inheritance hierarchy to shut down
106
+ invalidate();
107
+ }
108
+
109
+ // This should have an @Override annotation but we cannot do
110
+ // that until our minimum supported react-native version is 0.74, since the
111
+ // method did not exist before then
112
+ @CallSuper
113
+ public void invalidate() {
114
+ super.invalidate();
98
115
  executorService.shutdown();
99
116
  }
100
117
 
@@ -17,6 +17,7 @@ package io.invertase.firebase.common;
17
17
  *
18
18
  */
19
19
 
20
+ import android.annotation.SuppressLint;
20
21
  import android.app.ActivityManager;
21
22
  import android.content.Context;
22
23
  import android.graphics.Point;
@@ -181,6 +182,7 @@ public class SharedUtils {
181
182
  return false;
182
183
  }
183
184
 
185
+ @SuppressLint("DiscouragedApi")
184
186
  public static int getResId(Context ctx, String resName) {
185
187
  int resourceId = ctx.getResources().getIdentifier(resName, "string", ctx.getPackageName());
186
188
 
@@ -18,4 +18,4 @@
18
18
  #import <React/RCTVersion.h>
19
19
 
20
20
  // generated file - do not modify or commit
21
- NSString* const RNFBVersionString = @"21.4.1";
21
+ NSString* const RNFBVersionString = @"21.5.0";
package/lib/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- module.exports = '21.4.1';
2
+ module.exports = '21.5.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-firebase/app",
3
- "version": "21.4.1",
3
+ "version": "21.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",
@@ -90,5 +90,5 @@
90
90
  "playServicesAuth": "21.2.0"
91
91
  }
92
92
  },
93
- "gitHead": "1c4301c4f57fe6fe8235e73e13a523ad1af156ad"
93
+ "gitHead": "ca6b846408d5f1773adb84b94c6dcb8c6a7c658a"
94
94
  }