@react-native-firebase/app-check 17.5.0 → 18.1.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,22 @@
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
+ ## [18.1.0](https://github.com/invertase/react-native-firebase/compare/v18.0.0...v18.1.0) (2023-06-22)
7
+
8
+ **Note:** Version bump only for package @react-native-firebase/app-check
9
+
10
+ ## [18.0.0](https://github.com/invertase/react-native-firebase/compare/v17.5.0...v18.0.0) (2023-06-05)
11
+
12
+ ### ⚠ BREAKING CHANGES
13
+
14
+ - **app, sdk:** the "safetyNet" provider for App Check has been removed
15
+ from the underlying firebase-android-sdk and we have removed it here. You
16
+ should upgrade to the "playIntegrity" provider for App Check
17
+
18
+ ### Features
19
+
20
+ - **app, sdk:** android-sdk v32 - app-check safetyNet provider is removed ([a0e76ec](https://github.com/invertase/react-native-firebase/commit/a0e76ecab65c69a19055a84bc19c069482b1bc88))
21
+
6
22
  ## [17.5.0](https://github.com/invertase/react-native-firebase/compare/v17.4.3...v17.5.0) (2023-05-11)
7
23
 
8
24
  ### Bug Fixes
@@ -90,7 +90,6 @@ dependencies {
90
90
  api appProject
91
91
  implementation platform("com.google.firebase:firebase-bom:${ReactNative.ext.getVersion('firebase', 'bom')}")
92
92
  implementation 'com.google.firebase:firebase-appcheck-playintegrity'
93
- implementation "com.google.firebase:firebase-appcheck-safetynet"
94
93
  implementation "com.google.firebase:firebase-appcheck-debug"
95
94
  }
96
95
 
@@ -27,7 +27,6 @@ import com.google.firebase.appcheck.debug.DebugAppCheckProviderFactory;
27
27
  import com.google.firebase.appcheck.debug.InternalDebugSecretProvider;
28
28
  import com.google.firebase.appcheck.debug.internal.DebugAppCheckProvider;
29
29
  import com.google.firebase.appcheck.playintegrity.PlayIntegrityAppCheckProviderFactory;
30
- import com.google.firebase.appcheck.safetynet.SafetyNetAppCheckProviderFactory;
31
30
  import com.google.firebase.inject.Provider;
32
31
  import java.util.concurrent.ExecutorService;
33
32
  import java.util.concurrent.Executors;
@@ -87,10 +86,6 @@ public class ReactNativeFirebaseAppCheckProvider implements AppCheckProvider {
87
86
  }
88
87
  }
89
88
 
90
- if ("safetyNet".equals(providerName)) {
91
- delegateProvider = SafetyNetAppCheckProviderFactory.getInstance().create(app);
92
- }
93
-
94
89
  if ("playIntegrity".equals(providerName)) {
95
90
  delegateProvider = PlayIntegrityAppCheckProviderFactory.getInstance().create(app);
96
91
  }
package/lib/index.d.ts CHANGED
@@ -121,9 +121,9 @@ export namespace FirebaseAppCheckTypes {
121
121
  export interface ReactNativeFirebaseAppCheckProviderAndroidOptions
122
122
  extends ReactNativeFirebaseAppCheckProviderOptions {
123
123
  /**
124
- * The android provider to use, either `safetyNet` or `playIntegrity`. default is `playIntegrity`, `safetyNet` is deprecated.
124
+ * The android provider to use, either `debug` or `playIntegrity`. default is `playIntegrity`.
125
125
  */
126
- provider?: 'debug' | 'safetyNet' | 'playIntegrity';
126
+ provider?: 'debug' | 'playIntegrity';
127
127
  }
128
128
 
129
129
  export interface ReactNativeFirebaseAppCheckProvider extends AppCheckProvider {
@@ -212,14 +212,14 @@ export namespace FirebaseAppCheckTypes {
212
212
  * Activate App Check
213
213
  * On iOS App Check is activated with DeviceCheck provider simply by including the module, using the token auto refresh default or
214
214
  * the specific value (if configured) in firebase.json, but calling this does no harm.
215
- * On Android you must call this and it will install the SafetyNet provider in release builds, the Debug provider if debuggable.
215
+ * On Android if you call this it will install the PlayIntegrity provider in release builds, the Debug provider if debuggable.
216
216
  * On both platforms you may use this method to alter the token refresh setting after startup.
217
217
  * On iOS if you want to set a specific AppCheckProviderFactory (for instance to FIRAppCheckDebugProviderFactory or
218
218
  * FIRAppAttestProvider) you must manually do that in your AppDelegate.m prior to calling [FIRApp configure]
219
219
  *
220
220
  * @deprecated use initializeAppCheck to gain access to all platform providers and firebase-js-sdk v9 compatibility
221
221
  * @param siteKeyOrProvider - This is ignored, Android uses DebugProviderFactory if the app is debuggable (https://firebase.google.com/docs/app-check/android/debug-provider)
222
- * Android uses SafetyNetProviderFactory for release builds.
222
+ * Android uses PlayIntegrityProviderFactory for release builds.
223
223
  * iOS uses DeviceCheckProviderFactory by default unless altered in AppDelegate.m manually
224
224
  * @param isTokenAutoRefreshEnabled - If true, enables SDK to automatically
225
225
  * refresh AppCheck token as needed. If undefined, the value will default
package/lib/index.js CHANGED
@@ -105,7 +105,7 @@ class FirebaseAppCheckModule extends FirebaseModule {
105
105
  rnfbProvider = new ReactNativeFirebaseAppCheckProvider();
106
106
  rnfbProvider.configure({
107
107
  android: {
108
- provider: 'safetyNet',
108
+ provider: 'playIntegrity',
109
109
  },
110
110
  apple: {
111
111
  provider: 'deviceCheck',
package/lib/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- module.exports = '17.5.0';
2
+ module.exports = '18.1.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-firebase/app-check",
3
- "version": "17.5.0",
3
+ "version": "18.1.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",
@@ -23,10 +23,10 @@
23
23
  "appCheck"
24
24
  ],
25
25
  "peerDependencies": {
26
- "@react-native-firebase/app": "17.5.0"
26
+ "@react-native-firebase/app": "18.1.0"
27
27
  },
28
28
  "publishConfig": {
29
29
  "access": "public"
30
30
  },
31
- "gitHead": "a58ea4bfd72c903d43844da30d4f3bf5feb0f057"
31
+ "gitHead": "1c2dd42a9a2207a25e326be866ccc15f4d7b9c21"
32
32
  }