Skip to content
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

Support Flutter 3.10 (& Rework Tile Providers) #1512

Merged
merged 5 commits into from
May 11, 2023

Conversation

JaffaKetchup
Copy link
Member

@JaffaKetchup JaffaKetchup commented May 11, 2023

  • Migrated to Flutter 3.10 (removed support for Flutter <3.10)
    • Added new entry method to (and removed deprecated entry methods from) custom network tile image provider
    • Migrated example app with dart fix
  • Reworked tile provider implementations to improve performance and meet guidelines
    • Removed (now unnecessary) HttpOverrides/zoning strategies
    • Removed fallback to NetworkTileProvider when FileTileProvider used on web
  • Removed 'Delete Old Runs' workflow to prevent deletion of built artifacts

Includes breaking changes.

Reworked tile provider implementations to improve performance and meet guidelines
Removed 'Delete Old Runs' workflow to prevent deletion of built artifacts
@JaffaKetchup JaffaKetchup changed the title Updated to Flutter 3.10 & Reworked Tile Providers Reworked Tile Providers (& support Flutter 3.10) May 11, 2023
Copy link
Collaborator

@TesteurManiak TesteurManiak left a comment

Choose a reason for hiding this comment

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

Just some very minor nitpick, otherwise LGTM 👍

Removed fallback to `NetworkTileProvider` when `FileTileProvider` used on web
@JaffaKetchup JaffaKetchup changed the title Reworked Tile Providers (& support Flutter 3.10) Support Flutter 3.10 (& Rework Tile Providers) May 11, 2023
@JaffaKetchup
Copy link
Member Author

Checks won't be 100% successful: see axel-op/dart-package-analyzer#23. However, if everything is building, it can be bypassed.

Copy link
Collaborator

@TesteurManiak TesteurManiak left a comment

Choose a reason for hiding this comment

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

image

@JaffaKetchup JaffaKetchup merged commit 5fb3b3b into master May 11, 2023
@JaffaKetchup JaffaKetchup deleted the rework_tile_providers branch May 11, 2023 15:01
JaffaKetchup pushed a commit that referenced this pull request May 15, 2023
#1512 (5fb3b3b) bumped the minimum Flutter SDK to 3.10, but did not change the minimum Dart SDK. This PR changes the Dart SDK to 3.0 minimum, enabling the new features and performance benefits.

In addition, this PR:

* Removes the Tuple dependency in favour of Records
* Uses new pattern matching switches in some locations
* Seals the `TileDisplay` class to benefit from new pattern matching switches, instead of switching on `runtimeType`
* Deprecates `TileUpdateTransformers.alwaysLoadAndPrune`, as it should be unnecessary compared to `ignoreTapEvents`
* Improves some documentation
* Includes some other more minor improvements/changes

This PR also fixes the failing Android builds by upgrading Gradle.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants