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

Update web_ui and web_sdk min Dart SDK versions to 3.6 #54590

Closed
wants to merge 1 commit into from

Conversation

srujzs
Copy link
Contributor

@srujzs srujzs commented Aug 16, 2024

Some dart:js_interop APIs that are available since 3.6 have been annotated with @Since('3.6'). Since web_ui uses these APIs, analysis fails since the minimum SDK version is not >= 3.6.

Dart SDK change: https://dart-review.googlesource.com/c/sdk/+/380900

Some dart:js_interop APIs that are available since 3.6
have been annotated with "@SInCE('3.6')". Since web_ui
uses these APIs, analysis fails since the minimum SDK
version is not >= 3.6.

Dart SDK change: https://dart-review.googlesource.com/c/sdk/+/380900
@github-actions github-actions bot added the platform-web Code specifically for the web engine label Aug 16, 2024
@srujzs srujzs requested a review from yjbanov August 16, 2024 21:35
Copy link
Contributor

@yjbanov yjbanov left a comment

Choose a reason for hiding this comment

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

lgtm

@srujzs srujzs added the autosubmit Merge PR when tree becomes green via auto submit App label Aug 16, 2024
@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Aug 16, 2024
Copy link
Contributor

auto-submit bot commented Aug 16, 2024

auto label is removed for flutter/engine/54590, due to - The status or check suite Linux linux_host_engine has failed. Please fix the issues identified (or deflake) before re-applying this label.

@srujzs
Copy link
Contributor Author

srujzs commented Aug 16, 2024

The current Dart SDK version is 3.5.0-304.0.dev.
Because ui requires SDK version >=3.6.0-0 <4.0.0, version solving failed.

Hmm, it looks like the try bots aren't happy with this. It looks like they're using an older dev version instead, so this might be more involved than just updating the version constraints. I'll close this for now, revert the original CL, and then revisit. Thanks for the help!

@srujzs srujzs closed this Aug 16, 2024
copybara-service bot pushed a commit to dart-lang/sdk that referenced this pull request Aug 16, 2024
This reverts commit 14cf3b4.

Reason for revert: web_ui uses some of these APIs, but the pubspec SDK version is not >= 3.6. Therefore, Flutter analyze fails, which would then result in a broken roll. Updating the pubspec versions leads to try bot failures (flutter/engine#54590) so for now, revert.

Original change's description:
> [dart:js_interop] Add Since('3.6') annotations to new APIs
>
> Closes #56484
>
> Change-Id: I9d3da568aafeccbb855892ea5c2ba647371170bc
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/380900
> Reviewed-by: Kevin Moore <[email protected]>
> Reviewed-by: Leaf Petersen <[email protected]>
> Reviewed-by: Sigmund Cherem <[email protected]>
> Commit-Queue: Srujan Gaddam <[email protected]>
> Reviewed-by: Martin Kustermann <[email protected]>

Change-Id: Idfb021c5744d83a8004259f9c8774945a2612efd
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/380967
Reviewed-by: Leaf Petersen <[email protected]>
Bot-Commit: Rubber Stamper <[email protected]>
Commit-Queue: Srujan Gaddam <[email protected]>
copybara-service bot pushed a commit to dart-lang/sdk that referenced this pull request Aug 20, 2024
This reverts commit 7600900.

Reason for revert: flutter/engine#54626 has update the pubspecs for web_ui and web_sdk to include `3.6`.

Original change's description:
> Revert "[dart:js_interop] Add Since('3.6') annotations to new APIs"
>
> This reverts commit 14cf3b4.
>
> Reason for revert: web_ui uses some of these APIs, but the pubspec SDK version is not >= 3.6. Therefore, Flutter analyze fails, which would then result in a broken roll. Updating the pubspec versions leads to try bot failures (flutter/engine#54590) so for now, revert.
>
> Original change's description:
> > [dart:js_interop] Add Since('3.6') annotations to new APIs
> >
> > Closes #56484
> >
> > Change-Id: I9d3da568aafeccbb855892ea5c2ba647371170bc
> > Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/380900
> > Reviewed-by: Kevin Moore <[email protected]>
> > Reviewed-by: Leaf Petersen <[email protected]>
> > Reviewed-by: Sigmund Cherem <[email protected]>
> > Commit-Queue: Srujan Gaddam <[email protected]>
> > Reviewed-by: Martin Kustermann <[email protected]>
>
> Change-Id: Idfb021c5744d83a8004259f9c8774945a2612efd
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/380967
> Reviewed-by: Leaf Petersen <[email protected]>
> Bot-Commit: Rubber Stamper <[email protected]>
> Commit-Queue: Srujan Gaddam <[email protected]>

Change-Id: I5c37640e06456d270db2adfd70283456bde671ce
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/381308
Bot-Commit: Rubber Stamper <[email protected]>
Reviewed-by: Kevin Moore <[email protected]>
Commit-Queue: Srujan Gaddam <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
platform-web Code specifically for the web engine
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants