Skip to content

Commit 805ca02

Browse files
fix(app-check, android): fix unnecessary deprecation warning (#12578)
1 parent 88d86e9 commit 805ca02

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/firebase_app_check/firebase_app_check/android/src/main/java/io/flutter/plugins/firebase/appcheck/FlutterFirebaseAppCheckPlugin.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import com.google.firebase.appcheck.FirebaseAppCheck;
1717
import com.google.firebase.appcheck.debug.DebugAppCheckProviderFactory;
1818
import com.google.firebase.appcheck.playintegrity.PlayIntegrityAppCheckProviderFactory;
19-
import com.google.firebase.appcheck.safetynet.SafetyNetAppCheckProviderFactory;
19+
import com.google.firebase.appcheck.safetynet.*;
2020
import io.flutter.embedding.engine.plugins.FlutterPlugin;
2121
import io.flutter.plugin.common.BinaryMessenger;
2222
import io.flutter.plugin.common.EventChannel;
@@ -88,6 +88,8 @@ private Task<String> getLimitedUseAppCheckToken(Map<String, Object> arguments) {
8888
return taskCompletionSource.getTask();
8989
}
9090

91+
// SafetyNet is deprecated and is already annotated as such on the user facing Dart API. Please remove annotation when SafetyNet is removed.
92+
@SuppressWarnings("deprecation")
9193
private Task<Void> activate(Map<String, Object> arguments) {
9294
TaskCompletionSource<Void> taskCompletionSource = new TaskCompletionSource<>();
9395

0 commit comments

Comments
 (0)