Skip to content

Commit 5507d3c

Browse files
committed
chore(app_check): remove deprecated AndroidSafetyNetProvider and update activation parameters
1 parent b8dcd16 commit 5507d3c

File tree

4 files changed

+11
-16
lines changed

4 files changed

+11
-16
lines changed

docs/app-check/default-providers.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ Future<void> main() async {
8484
// Default provider for Android is the Play Integrity provider. You can use the "providerAndroid" parameter to choose
8585
// your preferred provider. Choose from:
8686
// 1. AndroidDebugProvider for debug environments
87-
// 2. AndroidSafetyNetProvider (will be deprecated in the future)
88-
// 3. AndroidPlayIntegrityProvider
87+
// 2. AndroidPlayIntegrityProvider
8988
providerAndroid: AndroidDebugProvider(),
9089
// Default provider for iOS/macOS is the Device Check provider. You can use the "providerApple" parameter to choose
9190
// your preferred provider. Choose from:

packages/firebase_app_check/firebase_app_check_platform_interface/lib/src/android_providers.dart

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,3 @@ class AndroidDebugProvider extends AndroidAppCheckProvider {
3232
class AndroidPlayIntegrityProvider extends AndroidAppCheckProvider {
3333
const AndroidPlayIntegrityProvider() : super('playIntegrity');
3434
}
35-
36-
/// Safety Net provider for Android.
37-
///
38-
/// @deprecated Safety Net provider is deprecated and will be removed in a future release.
39-
/// Play Integrity is the recommended provider.
40-
///
41-
/// See documentation: https://firebase.google.com/docs/app-check/android/safetynet-provider
42-
class AndroidSafetyNetProvider extends AndroidAppCheckProvider {
43-
@Deprecated(
44-
'Safety Net provider is deprecated and will be removed in a future release. '
45-
'Play Integrity is the recommended provider.',
46-
)
47-
const AndroidSafetyNetProvider() : super('safetyNet');
48-
}

packages/firebase_app_check/firebase_app_check_platform_interface/lib/src/method_channel/method_channel_firebase_app_check.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ class MethodChannelFirebaseAppCheck extends FirebaseAppCheckPlatform {
7575

7676
@override
7777
Future<void> activate({
78+
@Deprecated(
79+
'Use providerWeb instead. '
80+
'This parameter will be removed in a future major release.',
81+
)
7882
WebProvider? webProvider,
7983
@Deprecated(
8084
'Use providerAndroid instead. '
@@ -86,6 +90,7 @@ class MethodChannelFirebaseAppCheck extends FirebaseAppCheckPlatform {
8690
'This parameter will be removed in a future major release.',
8791
)
8892
AppleProvider? appleProvider,
93+
WebProvider? providerWeb,
8994
AndroidAppCheckProvider? providerAndroid,
9095
AppleAppCheckProvider? providerApple,
9196
}) async {

packages/firebase_app_check/firebase_app_check_platform_interface/lib/src/platform_interface/platform_interface_firebase_app_check.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ abstract class FirebaseAppCheckPlatform extends PlatformInterface {
7676
///
7777
/// For more information, see [the Firebase Documentation](https://firebase.google.com/docs/app-check)
7878
Future<void> activate({
79+
@Deprecated(
80+
'Use providerWeb instead. '
81+
'This parameter will be removed in a future major release.',
82+
)
7983
WebProvider? webProvider,
8084
@Deprecated(
8185
'Use providerAndroid instead. '
@@ -87,6 +91,7 @@ abstract class FirebaseAppCheckPlatform extends PlatformInterface {
8791
'This parameter will be removed in a future major release.',
8892
)
8993
AppleProvider? appleProvider,
94+
WebProvider? providerWeb,
9095
AndroidAppCheckProvider? providerAndroid,
9196
AppleAppCheckProvider? providerApple,
9297
}) {

0 commit comments

Comments
 (0)