From a099c38a87f39dcea61a0bf946dd6e77169cbd62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Bujnovsk=C3=BD?= <2659269+miakh@users.noreply.github.com> Date: Wed, 2 Sep 2026 03:20:47 +0200 Subject: [PATCH] Fix vector MBTiles resolution with flutter_map 8 --- .github/workflows/on-pull-request.yml | 8 ++++---- pubspec.yaml | 6 ++++++ vector_map_tiles_mbtiles/CHANGELOG.md | 5 +++++ vector_map_tiles_mbtiles/pubspec.yaml | 6 +++--- .../test/pmtiles_tile_provider_test.dart | 1 - 5 files changed, 18 insertions(+), 8 deletions(-) diff --git a/.github/workflows/on-pull-request.yml b/.github/workflows/on-pull-request.yml index 238b91a..2684462 100644 --- a/.github/workflows/on-pull-request.yml +++ b/.github/workflows/on-pull-request.yml @@ -61,10 +61,10 @@ jobs: flutter pub get flutter test --no-pub -r expanded --coverage --coverage-path=../coverage/flutter_map_pmtiles.lcov.info cd .. - # cd vector_map_tiles_mbtiles - # flutter pub get - # flutter test --no-pub -r expanded --coverage --coverage-path=../coverage/vector_map_tiles_mbtiles.lcov.info - # cd .. + cd vector_map_tiles_mbtiles + flutter pub get + flutter test --no-pub -r expanded + cd .. # cd vector_map_tiles_pmtiles # flutter pub get # flutter test --no-pub -r expanded --coverage --coverage-path=../coverage/vector_map_tiles_pmtiles.lcov.info diff --git a/pubspec.yaml b/pubspec.yaml index 151d6aa..9e5d217 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -15,6 +15,12 @@ workspace: dev_dependencies: melos: ^7.0.0 +# The workspace contains plugins spanning multiple flutter_map generations. +# Resolve their shared test graph with the versions required by flutter_map 8. +dependency_overrides: + latlong2: ^0.10.1 + mbtiles: ^0.5.1 + melos: scripts: test: diff --git a/vector_map_tiles_mbtiles/CHANGELOG.md b/vector_map_tiles_mbtiles/CHANGELOG.md index 678018f..dd5b44d 100644 --- a/vector_map_tiles_mbtiles/CHANGELOG.md +++ b/vector_map_tiles_mbtiles/CHANGELOG.md @@ -1,3 +1,8 @@ +## [1.2.2] + +- Support `mbtiles` 0.5 and `latlong2` 0.10 so the package resolves with + `vector_map_tiles` 9 and `flutter_map` 8. + ## [1.2.1] 2025-02-05 - Support for flutter_map v8 diff --git a/vector_map_tiles_mbtiles/pubspec.yaml b/vector_map_tiles_mbtiles/pubspec.yaml index 7d7d980..736d3ac 100644 --- a/vector_map_tiles_mbtiles/pubspec.yaml +++ b/vector_map_tiles_mbtiles/pubspec.yaml @@ -3,7 +3,7 @@ description: Mapbox MBTiles vector tile provider for vector_map_files / flutter_ repository: https://github.com/josxha/flutter_map_plugins issue_tracker: https://github.com/josxha/flutter_map_plugins/issues topics: [ flutter-map, vector-map-tiles, map, mbtiles ] -version: 1.2.1 +version: 1.2.2 resolution: workspace funding: - https://paypal.me/joschaeckert @@ -16,7 +16,7 @@ environment: dependencies: flutter: sdk: flutter - mbtiles: ^0.4.0 + mbtiles: ^0.5.1 vector_map_tiles: ^9.0.0-beta.8 dev_dependencies: @@ -25,7 +25,7 @@ dev_dependencies: test: ^1.24.9 mocktail: ^1.0.5 build_runner: ^2.4.8 - latlong2: ^0.9.0 + latlong2: ^0.10.1 flutter_map: ^8.0.0 very_good_analysis: ^10.0.0 vector_tile_renderer: ^6.0.0 diff --git a/vector_map_tiles_mbtiles/test/pmtiles_tile_provider_test.dart b/vector_map_tiles_mbtiles/test/pmtiles_tile_provider_test.dart index 0385244..cd9dd78 100644 --- a/vector_map_tiles_mbtiles/test/pmtiles_tile_provider_test.dart +++ b/vector_map_tiles_mbtiles/test/pmtiles_tile_provider_test.dart @@ -1,7 +1,6 @@ import 'dart:typed_data'; import 'package:flutter_test/flutter_test.dart'; -import 'package:latlong2/latlong.dart'; import 'package:mbtiles/mbtiles.dart'; import 'package:mocktail/mocktail.dart'; import 'package:vector_map_tiles/vector_map_tiles.dart';