@react-native-firebase/app-check 22.2.1 → 22.4.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 +10 -0
- package/lib/version.js +1 -1
- package/package.json +3 -3
- package/plugin/build/ios/appDelegate.js +3 -3
- package/plugin/src/ios/appDelegate.ts +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
|
+
## [22.4.0](https://github.com/invertase/react-native-firebase/compare/v22.3.0...v22.4.0) (2025-07-10)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @react-native-firebase/app-check
|
|
9
|
+
|
|
10
|
+
## [22.3.0](https://github.com/invertase/react-native-firebase/compare/v22.2.1...v22.3.0) (2025-07-08)
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
- **app-check, expo:** init app-check shared instance before firebase in plugin ([#8559](https://github.com/invertase/react-native-firebase/issues/8559)) ([f0a0292](https://github.com/invertase/react-native-firebase/commit/f0a0292e979f51c39f917859bba19accea04eecc))
|
|
15
|
+
|
|
6
16
|
## [22.2.1](https://github.com/invertase/react-native-firebase/compare/v22.2.0...v22.2.1) (2025-06-10)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package @react-native-firebase/app-check
|
package/lib/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
module.exports = '22.
|
|
2
|
+
module.exports = '22.4.0';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native-firebase/app-check",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.4.0",
|
|
4
4
|
"author": "Invertase <oss@invertase.io> (http://invertase.io)",
|
|
5
5
|
"description": "React Native Firebase - App Check",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"appCheck"
|
|
26
26
|
],
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@react-native-firebase/app": "22.
|
|
28
|
+
"@react-native-firebase/app": "22.4.0",
|
|
29
29
|
"expo": ">=47.0.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"access": "public",
|
|
41
41
|
"provenance": true
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "7eaaf185aab15c7e4fc3c218af9be609fe7e0030"
|
|
44
44
|
}
|
|
@@ -82,14 +82,14 @@ import RNFBAppCheck`);
|
|
|
82
82
|
if (contents.includes(firebaseLine)) {
|
|
83
83
|
// Insert right after Firebase initialization
|
|
84
84
|
return contents.replace(firebaseLine, `${firebaseLine}
|
|
85
|
-
FirebaseApp.configure()
|
|
86
85
|
RNFBAppCheckModule.sharedInstance()
|
|
86
|
+
FirebaseApp.configure()
|
|
87
87
|
`);
|
|
88
88
|
}
|
|
89
89
|
// If Firebase initialization block not found, add both Firebase and App Check initialization
|
|
90
90
|
// This is to make sure Firebase is initialized before App Check
|
|
91
|
-
const methodInvocationBlock = `
|
|
92
|
-
|
|
91
|
+
const methodInvocationBlock = `RNFBAppCheckModule.sharedInstance()
|
|
92
|
+
FirebaseApp.configure()`;
|
|
93
93
|
const methodInvocationLineMatcher = /(?:factory\.startReactNative\()/;
|
|
94
94
|
if (!methodInvocationLineMatcher.test(contents)) {
|
|
95
95
|
config_plugins_1.WarningAggregator.addWarningIOS('@react-native-firebase/app-check', 'Unable to determine correct insertion point in AppDelegate.swift. Skipping App Check addition.');
|
|
@@ -101,16 +101,16 @@ import RNFBAppCheck`,
|
|
|
101
101
|
return contents.replace(
|
|
102
102
|
firebaseLine,
|
|
103
103
|
`${firebaseLine}
|
|
104
|
-
FirebaseApp.configure()
|
|
105
104
|
RNFBAppCheckModule.sharedInstance()
|
|
105
|
+
FirebaseApp.configure()
|
|
106
106
|
`,
|
|
107
107
|
);
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
// If Firebase initialization block not found, add both Firebase and App Check initialization
|
|
111
111
|
// This is to make sure Firebase is initialized before App Check
|
|
112
|
-
const methodInvocationBlock = `
|
|
113
|
-
|
|
112
|
+
const methodInvocationBlock = `RNFBAppCheckModule.sharedInstance()
|
|
113
|
+
FirebaseApp.configure()`;
|
|
114
114
|
|
|
115
115
|
const methodInvocationLineMatcher = /(?:factory\.startReactNative\()/;
|
|
116
116
|
|