@react-native-firebase/app 21.6.0 → 21.6.1
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 +6 -0
- package/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseVersion.java +1 -1
- package/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseModule.java +11 -7
- package/ios/RNFBApp/RNFBVersion.m +1 -1
- package/lib/version.js +1 -1
- package/package.json +2 -2
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
|
+
## [21.6.1](https://github.com/invertase/react-native-firebase/compare/v21.6.0...v21.6.1) (2024-11-25)
|
7
|
+
|
8
|
+
### Bug Fixes
|
9
|
+
|
10
|
+
- **android, app:** fix hot-reload on react-native <= 0.73 ([81e5fc2](https://github.com/invertase/react-native-firebase/commit/81e5fc2b6c89fdb4aa5f0f5aa95e1e90dae5f2e4))
|
11
|
+
|
6
12
|
## [21.6.0](https://github.com/invertase/react-native-firebase/compare/v21.5.0...v21.6.0) (2024-11-20)
|
7
13
|
|
8
14
|
### Features
|
package/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseModule.java
CHANGED
@@ -92,12 +92,13 @@ public class ReactNativeFirebaseModule extends ReactContextBaseJavaModule
|
|
92
92
|
return executorService.getTransactionalExecutor(identifier);
|
93
93
|
}
|
94
94
|
|
95
|
-
|
96
|
-
//
|
97
|
-
//
|
95
|
+
// On react-native 0.73 this is called, but simply calls `invalidate()`
|
96
|
+
// https://github.com/facebook/react-native/blob/0.73-stable/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/BaseJavaModule.java#L65-L72
|
97
|
+
// This is no longer called ever for react-native >= 0.74 and is only here for
|
98
|
+
// compatibility with older versions. We delegate to the new `invalidate`
|
98
99
|
// method, which all modules should implement now
|
99
100
|
// Remove this method when minimum supported react-native is 0.74
|
100
|
-
|
101
|
+
// @noinspection removal
|
101
102
|
@SuppressWarnings({"deprecation", "removal"})
|
102
103
|
@Deprecated
|
103
104
|
public void onCatalystInstanceDestroy() {
|
@@ -107,11 +108,14 @@ public class ReactNativeFirebaseModule extends ReactContextBaseJavaModule
|
|
107
108
|
}
|
108
109
|
|
109
110
|
// This should have an @Override annotation but we cannot do
|
110
|
-
// that until our minimum supported react-native version is 0.74
|
111
|
-
//
|
111
|
+
// that until our minimum supported react-native version is 0.74
|
112
|
+
//
|
113
|
+
// No need to call super.invalidate and in fact it is dangerous to do so:
|
114
|
+
// - did not exist before react-native 0.73
|
115
|
+
// - on 0.74 it calls onCatalystInstanceDestroy which would infinite loop here
|
116
|
+
// - on 0.75+ it is empty - meant as sub-class hook only
|
112
117
|
@CallSuper
|
113
118
|
public void invalidate() {
|
114
|
-
super.invalidate();
|
115
119
|
executorService.shutdown();
|
116
120
|
}
|
117
121
|
|
package/lib/version.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
// Generated by genversion.
|
2
|
-
module.exports = '21.6.
|
2
|
+
module.exports = '21.6.1';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@react-native-firebase/app",
|
3
|
-
"version": "21.6.
|
3
|
+
"version": "21.6.1",
|
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",
|
@@ -89,5 +89,5 @@
|
|
89
89
|
"playServicesAuth": "21.2.0"
|
90
90
|
}
|
91
91
|
},
|
92
|
-
"gitHead": "
|
92
|
+
"gitHead": "3623a504a6d07fa148390bd3f97d6c06fea8955d"
|
93
93
|
}
|