-
Notifications
You must be signed in to change notification settings - Fork 28k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[webview_flutter_wkwebview] -[WKPreferences javaScriptEnabled]
is deprecated in iOS 14
#125901
Comments
-[WKPreferences javaScriptEnabled]
is deprecated in iOS 14
See discussion in #128714 about how we might go about addressing this in the current Dart/native mirroring structure. |
@bparrishMines @stuartmorgan Is there some way we can unblock this so we can increase the xcode-analyze minimum version? Should I exclude |
We don't have to remove the whole plugin to unblock the check, we could just |
Oh right... 🤦♀️ |
@jmagman It looks like WKWebpagePreferences requires iOS 13 and |
Thanks for taking care of that, @stuartmorgan! flutter/packages#6221 |
Hah, I wrote that part of the PR so long ago I forgot about it. The Flutter macOS template project apparently has stricter checks than iOS, so I had to fix up some things when I added macOS support. |
Bump Xcode analyze minimum check version iOS 13 -> iOS 14 and macOS 12.3 -> macOS 13. - Hit StoreKit2 deprecations. Exclude `in_app_purchase_storekit` to work around StoreKit 1 deprecation warnings. Added a TODO to remove the exclusion when StoreKit2 is adopted (this should happen in the next few weeks) flutter/flutter#116383. - Hit flutter/flutter#153587, fixed in #7513 - Hit flutter/flutter#125901 which was `#pragma`'d out in #6221 See related flutter/plugins#5778 and flutter/flutter#102835
webview_flutter_wkwebview
is using an API that was deprecated in iOS 14. Use an@availability
check to use the non-deprecated property, and fall back to the old one on < 14.https://github.com/flutter/packages/blob/c90dd9834ebfd3d9b06f5f99dae1dd7652de6053/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFPreferencesHostApi.m#L44
Deprecation says
Use WKWebpagePreferences.allowsContentJavaScript to disable content JavaScript on a per-navigation basis
. I don't thinkWKWebpagePreferences
is currently created in the plugin.You can see this by running:
$ dart run script/tool/bin/flutter_plugin_tools.dart xcode-analyze "--ios-min-version=14.0" --ios
https://github.com/flutter/packages/blob/c90dd9834ebfd3d9b06f5f99dae1dd7652de6053/.ci/targets/ios_platform_tests.yaml#L15
The text was updated successfully, but these errors were encountered: