Uh oh!
There was an error while loading. Please reload this page.
[webview_flutter_android] Adds internal wrapper methods for native WebViewClient. - #8964
Conversation
| implementation 'androidx.annotation:annotation:1.9.1' | ||
| implementation 'androidx.webkit:webkit:1.12.1' | ||
| testImplementation 'junit:junit:4.13.2' | ||
| testImplementation 'org.mockito:mockito-core:5.16.1' |
There was a problem hiding this comment.
This was required for me to run tests locally. I'm not sure if this is just me or not.
| namespace 'io.flutter.plugins.webviewflutterexample' | ||
| compileSdk = flutter.compileSdkVersion | ||
| ndkVersion = flutter.ndkVersion |
There was a problem hiding this comment.
This was also required for met to run tests locally.
WebViewClient.stuartmorgan-g
commented
Apr 10, 2025
Wrong issue link? That one is about |
stuartmorgan-g
left a comment
There was a problem hiding this comment.
LGTM with a few minor comments
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| WebView webView, | ||
| FileChooserParams params, | ||
| )? onShowFileChooser; | ||
| ) onShowFileChooser; |
There was a problem hiding this comment.
Why the change to non-nullable on these callbacks?
There was a problem hiding this comment.
This was caused by #8567. They are already implemented in the AndroidWebViewController: https://github.com/flutter/packages/blob/main/packages/webview_flutter/webview_flutter_android/lib/src/android_webview_controller.dart#L187. The method just wasn't required on the Dart side.
…ative `WebViewClient`. (flutter/packages#8964)
…ative `WebViewClient`. (flutter/packages#8964)
…ative `WebViewClient`. (flutter/packages#8964)
flutter/packages@f26b681...2fcc403 2025-04-15 10687576+bparrishMines@users.noreply.github.com [camera_android_camerax] Updates internal API wrapper to use ProxyApis (flutter/packages#8618) 2025-04-14 stuartmorgan@google.com [tool] Run a config-only build before Xcode analyze (flutter/packages#9075) 2025-04-14 10687576+bparrishMines@users.noreply.github.com [webview_flutter_android] Adds internal wrapper methods for native `WebViewClient`. (flutter/packages#8964) 2025-04-14 10687576+bparrishMines@users.noreply.github.com [webview_flutter_wkwebview] Fixes `loadFlutterAsset` exception and updates native wrapper for `SecTrust` and `SecCertificate` (flutter/packages#9016) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC flutter-ecosystem@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
flutter/packages@f26b681...2fcc403 2025-04-15 10687576+bparrishMines@users.noreply.github.com [camera_android_camerax] Updates internal API wrapper to use ProxyApis (flutter/packages#8618) 2025-04-14 stuartmorgan@google.com [tool] Run a config-only build before Xcode analyze (flutter/packages#9075) 2025-04-14 10687576+bparrishMines@users.noreply.github.com [webview_flutter_android] Adds internal wrapper methods for native `WebViewClient`. (flutter/packages#8964) 2025-04-14 10687576+bparrishMines@users.noreply.github.com [webview_flutter_wkwebview] Fixes `loadFlutterAsset` exception and updates native wrapper for `SecTrust` and `SecCertificate` (flutter/packages#9016) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC flutter-ecosystem@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
flutter/packages@f26b681...2fcc403 2025-04-15 10687576+bparrishMines@users.noreply.github.com [camera_android_camerax] Updates internal API wrapper to use ProxyApis (flutter/packages#8618) 2025-04-14 stuartmorgan@google.com [tool] Run a config-only build before Xcode analyze (flutter/packages#9075) 2025-04-14 10687576+bparrishMines@users.noreply.github.com [webview_flutter_android] Adds internal wrapper methods for native `WebViewClient`. (flutter/packages#8964) 2025-04-14 10687576+bparrishMines@users.noreply.github.com [webview_flutter_wkwebview] Fixes `loadFlutterAsset` exception and updates native wrapper for `SecTrust` and `SecCertificate` (flutter/packages#9016) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC flutter-ecosystem@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
flutter/packages@f26b681...2fcc403 2025-04-15 10687576+bparrishMines@users.noreply.github.com [camera_android_camerax] Updates internal API wrapper to use ProxyApis (flutter/packages#8618) 2025-04-14 stuartmorgan@google.com [tool] Run a config-only build before Xcode analyze (flutter/packages#9075) 2025-04-14 10687576+bparrishMines@users.noreply.github.com [webview_flutter_android] Adds internal wrapper methods for native `WebViewClient`. (flutter/packages#8964) 2025-04-14 10687576+bparrishMines@users.noreply.github.com [webview_flutter_wkwebview] Fixes `loadFlutterAsset` exception and updates native wrapper for `SecTrust` and `SecCertificate` (flutter/packages#9016) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC flutter-ecosystem@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
…ebViewClient`. (flutter#8964) This adds the SSL classes for flutter#7893 and a few extra `WebViewClient` methods. ## Pre-Review Checklist [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
…ebViewClient`. (flutter#8964) This adds the SSL classes for flutter#7893 and a few extra `WebViewClient` methods. ## Pre-Review Checklist [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
…ebViewClient`. (flutter#8964) This adds the SSL classes for flutter#7893 and a few extra `WebViewClient` methods. ## Pre-Review Checklist [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
…ebViewClient`. (flutter#8964) This adds the SSL classes for flutter#7893 and a few extra `WebViewClient` methods. ## Pre-Review Checklist [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
flutter/packages@f26b681...2fcc403 2025-04-15 10687576+bparrishMines@users.noreply.github.com [camera_android_camerax] Updates internal API wrapper to use ProxyApis (flutter/packages#8618) 2025-04-14 stuartmorgan@google.com [tool] Run a config-only build before Xcode analyze (flutter/packages#9075) 2025-04-14 10687576+bparrishMines@users.noreply.github.com [webview_flutter_android] Adds internal wrapper methods for native `WebViewClient`. (flutter/packages#8964) 2025-04-14 10687576+bparrishMines@users.noreply.github.com [webview_flutter_wkwebview] Fixes `loadFlutterAsset` exception and updates native wrapper for `SecTrust` and `SecCertificate` (flutter/packages#9016) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC flutter-ecosystem@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
…ebViewClient`. (flutter#8964) This adds the SSL classes for flutter#7893 and a few extra `WebViewClient` methods. ## Pre-Review Checklist [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
…ebViewClient`. (flutter#8964) This adds the SSL classes for flutter#7893 and a few extra `WebViewClient` methods. ## Pre-Review Checklist [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
This adds the SSL classes for #7893 and a few extra
WebViewClientmethods.Pre-Review Checklist
dart format.)[shared_preferences]pubspec.yamlwith an appropriate new version according to the pub versioning philosophy, or I have commented below to indicate which version change exemption this PR falls under1.CHANGELOG.mdto add a description of the change, following repository CHANGELOG style, or I have commented below to indicate which CHANGELOG exemption this PR falls under1.///).If you need help, consider asking for advice on the #hackers-new channel on Discord.
Footnotes
Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. ↩↩2↩3