flutter-plugins icon indicating copy to clipboard operation
flutter-plugins copied to clipboard

Warnings about Java applets

Open lishaduck opened this issue 7 months ago • 0 comments

desktop_webview_window tries to enable Java applets, leading to this warning when running or building:

/Users/dukese01/.pub-cache/hosted/pub.dev/desktop_webview_window-0.2.3/macos/Classes/WebViewLayoutController.swift:90:39: warning: 'javaEnabled' was deprecated in macOS 10.15: Java is no longer supported
    webView.configuration.preferences.javaEnabled = true

Reproduce Steps

Steps to reproduce the behavior:

  1. Add flutter_web_auth_2 (depends on desktop_webview_window)
  2. Build for macOS
  3. See warning

Expected behavior

Shouldn't try to enable Java applets.

https://github.com/MixinNetwork/flutter-plugins/blob/6c2845f959617afd0db70f19b3e3f4e946137ebc/packages/desktop_webview_window/macos/Classes/WebViewLayoutController.swift#L90

Version (please complete the following information):

  • Flutter Version: 3.29.2
  • OS: macOS
  • plugin: desktop_webview_window

lishaduck avatar Apr 14 '25 14:04 lishaduck