Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

[webview_flutter] Default Android to hybrid composition#4576

Merged
stuartmorgan-g merged 5 commits intoflutter:masterfrom
stuartmorgan-g:webview-android-hybrid-default
Dec 8, 2021
Merged

[webview_flutter] Default Android to hybrid composition#4576
stuartmorgan-g merged 5 commits intoflutter:masterfrom
stuartmorgan-g:webview-android-hybrid-default

Conversation

@stuartmorgan-g
Copy link
Copy Markdown
Contributor

Switches the default implemention on Android from virtual display to
hybrid composition. This is a breaking change.

Part of flutter/flutter#93335

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the relevant style guides and ran the auto-formatter. (Unlike the flutter/flutter repo, the flutter/plugins repo does use dart format.)
  • I signed the CLA.
  • The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
  • I listed at least one issue that this PR fixes in the description above.
  • I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.
  • I updated CHANGELOG.md to add a description of the change, following repository CHANGELOG style.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

Switches the default implemention on Android from virtual display to
hybrid composition. This is a breaking change.

Part of flutter/flutter#93335
@google-cla google-cla bot added the cla: yes label Dec 3, 2021
@stuartmorgan-g stuartmorgan-g marked this pull request as draft December 3, 2021 18:44
@github-actions github-actions bot added the p: webview_flutter Edits files for a webview_flutter plugin label Dec 3, 2021
@stuartmorgan-g
Copy link
Copy Markdown
Contributor Author

I've marked this as a Draft only so that we don't accidentally land it before the other things we want in 3.0 have landed; it's ready for review.

final String? currentUrl = await controller.currentUrl();
expect(currentUrl, primaryUrl);
});
}, skip: !Platform.isAndroid || _skipDueToIssue86757);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately this, like pretty much all of our other Android integration tests, currently fails :/

## NEXT
## 3.0.0

* **BREAKING CHANGE**: On Android, hybrid composition (SurfaceAndroidWebView)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need to think about this one, but at a high level, I don't see why changing the backend should be considered a breaking change.

Copy link
Copy Markdown
Contributor Author

@stuartmorgan-g stuartmorgan-g Dec 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default behavior is fundamentally changing; it's safer to do it as part of a breaking change.

(Strictly speaking though, no, this doesn't have to be a breaking change.)

@stuartmorgan-g stuartmorgan-g marked this pull request as ready for review December 7, 2021 22:47
@stuartmorgan-g stuartmorgan-g merged commit d7f7b89 into flutter:master Dec 8, 2021
@stuartmorgan-g stuartmorgan-g deleted the webview-android-hybrid-default branch December 8, 2021 00:48
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 8, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 8, 2021
amantoux pushed a commit to amantoux/plugins that referenced this pull request Dec 11, 2021
Switches the default implemention on Android from virtual display to
hybrid composition. This is a breaking change.

Part of flutter/flutter#93335
KyleFin pushed a commit to KyleFin/plugins that referenced this pull request Dec 21, 2021
Switches the default implemention on Android from virtual display to
hybrid composition. This is a breaking change.

Part of flutter/flutter#93335
@TheJulianJES
Copy link
Copy Markdown

Nothing major, but while this was updated:

/// The default value is [SurfaceAndroidWebView] on Android and [CupertinoWebView] on iOS.

This comment wasn't updated:

/// The default value is [AndroidWebView] on Android and [CupertinoWebView] on iOS.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes p: webview_flutter Edits files for a webview_flutter plugin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants