Skip to content

Commit 998bb29

Browse files
[webview_flutter] Updates the README with the migration of WebView.initialCookies and Hybrid Composition on (flutter#3470)
[webview_flutter] Updates the README with the migration of `WebView.initialCookies` and Hybrid Composition on
1 parent 80cd50a commit 998bb29

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

packages/webview_flutter/webview_flutter/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 4.0.7
2+
3+
* Updates the README with the migration of `WebView.initialCookies` and Hybrid Composition on
4+
Android.
5+
16
## 4.0.6
27

38
* Updates iOS minimum version in README.

packages/webview_flutter/webview_flutter/README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,10 @@ for more details.
175175

176176
### PlatformView Implementation on Android
177177

178-
The PlatformView implementation for Android is currently no longer configurable. It uses Texture
179-
Layer Hybrid Composition on versions 23+ and automatically fallbacks to Hybrid Composition for
180-
version 19-23. See https://github.com/flutter/flutter/issues/108106 for progress on manually
181-
switching to Hybrid Composition on versions 23+.
178+
The PlatformView implementation for Android uses Texture Layer Hybrid Composition on versions 23+
179+
and automatically fallbacks to Hybrid Composition for version 19-23. See section
180+
`Platform-Specific Features` and [AndroidWebViewWidgetCreationParams.displayWithHybridComposition](https://pub.dev/documentation/webview_flutter_android/latest/webview_flutter_android/AndroidWebViewWidgetCreationParams/displayWithHybridComposition.html)
181+
to manually switch to Hybrid Composition on versions 23+.
182182

183183
### API Changes
184184

@@ -194,6 +194,8 @@ Below is a non-exhaustive list of changes to the API:
194194
been replaced by `WebViewController.getScrollPosition`.
195195
* `WebViewController.runJavaScriptReturningResult` now returns an `Object` and not a `String`. This
196196
will attempt to return a `bool` or `num` if the return value can be parsed.
197+
* `WebView.initialCookies` has been removed. Use `WebViewCookieManager.setCookie` before calling
198+
`WebViewController.loadRequest`.
197199
* `CookieManager` is replaced by `WebViewCookieManager`.
198200
* `NavigationDelegate.onWebResourceError` callback includes errors that are not from the main frame.
199201
Use the `WebResourceError.isForMainFrame` field to filter errors.

packages/webview_flutter/webview_flutter/pubspec.yaml

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

77
environment:
88
sdk: ">=2.17.0 <3.0.0"

0 commit comments

Comments
 (0)