Skip to content

Commit 5fc2fd7

Browse files
authored
[webview_flutter_wkwebview] Remove specialization of 'map' to fix Swift warning (#9810)
Seen when [upgrading to Xcode 26](https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8706580056383404657/+/u/Run_package_tests/validate_iOS_and_macOS_podspecs/stdout). Introduced in #8311. Fixes flutter/flutter#173744 ## Pre-Review Checklist **Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the `gemini-code-assist` bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed. [^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.
1 parent 0fad9d8 commit 5fc2fd7

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

packages/webview_flutter/webview_flutter_wkwebview/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 3.23.2
2+
3+
* Removes specialization of 'map' to fix a Swift warning.
4+
15
## 3.23.1
26

37
* Removes code for versions of iOS older than 13.0.

packages/webview_flutter/webview_flutter_wkwebview/darwin/webview_flutter_wkwebview/Sources/webview_flutter_wkwebview/HTTPCookieProxyAPIDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class HTTPCookieProxyAPIDelegate: PigeonApiDelegateHTTPCookie {
1414
) throws -> HTTPCookie {
1515
let registrar = pigeonApi.pigeonRegistrar as! ProxyAPIRegistrar
1616

17-
let keyValueTuples = try! properties.map<[(HTTPCookiePropertyKey, Any)], PigeonError> {
17+
let keyValueTuples = try properties.map {
1818
key, value in
1919

2020
let newKey: HTTPCookiePropertyKey

packages/webview_flutter/webview_flutter_wkwebview/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: webview_flutter_wkwebview
22
description: A Flutter plugin that provides a WebView widget based on Apple's WKWebView control.
33
repository: https://github.com/flutter/packages/tree/main/packages/webview_flutter/webview_flutter_wkwebview
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+webview%22
5-
version: 3.23.1
5+
version: 3.23.2
66

77
environment:
88
sdk: ^3.9.0

0 commit comments

Comments
 (0)