You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[webview_flutter] Support for handling basic authentication requests (Android) (flutter#5454)
Adds the Android implementation for basic http authentication.
This PR is part of a series of PRs that aim to closeflutter#83556.
The PR that contains all changes can be found at flutter/packages#4140.
Copy file name to clipboardExpand all lines: packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/GeneratedAndroidWebView.java
+175Lines changed: 175 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2523,6 +2523,29 @@ public void doUpdateVisitedHistory(
Copy file name to clipboardExpand all lines: packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/WebViewClientFlutterApiImpl.java
+21Lines changed: 21 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@
6
6
7
7
importandroid.annotation.SuppressLint;
8
8
importandroid.os.Build;
9
+
importandroid.webkit.HttpAuthHandler;
9
10
importandroid.webkit.WebResourceError;
10
11
importandroid.webkit.WebResourceRequest;
11
12
importandroid.webkit.WebView;
@@ -230,6 +231,26 @@ public void doUpdateVisitedHistory(
Copy file name to clipboardExpand all lines: packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/WebViewClientHostApiImpl.java
+21-1Lines changed: 21 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@
9
9
importandroid.graphics.Bitmap;
10
10
importandroid.os.Build;
11
11
importandroid.view.KeyEvent;
12
+
importandroid.webkit.HttpAuthHandler;
12
13
importandroid.webkit.WebResourceError;
13
14
importandroid.webkit.WebResourceRequest;
14
15
importandroid.webkit.WebView;
@@ -38,7 +39,7 @@ public static class WebViewClientImpl extends WebViewClient {
38
39
/**
39
40
* Creates a {@link WebViewClient} that passes arguments of callbacks methods to Dart.
40
41
*
41
-
* @param flutterApi handles sending messages to Dart
42
+
* @param flutterApi handles sending messages to Dart.
0 commit comments