Skip to content

[geocoding]: Raise minimum SDK to Dart 3.12 and Flutter 3.44 - #340

Draft
rickdijk wants to merge 3 commits into
mainfrom
rick/fpl-58-sdk-3-12-geocoding
Draft

rickdijk wants to merge 3 commits into
mainfrom
rick/fpl-58-sdk-3-12-geocoding

Conversation

@rickdijk

@rickdijk rickdijk commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Raises the SDK floor of geocoding to Dart ^3.12.0 and Flutter >=3.44.0, matching the Flutter team's own packages (FPL-48).

  • environment: in pubspec.yaml and example/pubspec.yaml → sdk: ^3.12.0, flutter: ">=3.44.0". Dependency constraints unchanged.
  • Version 5.0.1 → 5.1.0, CHANGELOG entry added.
  • Separate commit: dart format . (stable 3.47.4) reformats example/lib/main.dart, lib/geocoding.dart and test/geocoding_test.dart.
  • Separate commit: analyzer fix. With Dart 3.12, prefer_initializing_formals flags _locale = locale in the private Geocoding._fromPlatformCreationParams constructor, because a private field can now be initialised from a named parameter. It now uses this._locale; callers still pass locale:. No public API change.

Merge order (FPL-48): 1. geocoding_platform_interface → 2. geocoding_darwin (geocoding_android is already on ^3.12.0 / >=3.44.0, no PR) → 3. geocoding. Maurits merges and releases. This PR goes last.

Linear: FPL-58

Verification (run in geocoding/)

Check Flutter 3.44.9 Flutter stable 3.47.4
flutter pub get ✅ ✅
flutter analyze ✅ No issues ✅ No issues
flutter test ✅ 7 passed ✅ 7 passed
pub downgrade + analyze ✅ No issues n/a

Before the analyzer-fix commit, flutter analyze reported the one prefer_initializing_formals info on both versions.

CI note: app_facing fails, not caused by this PR

The Failed to resolve package URI "package:flutter_lints/flutter.yaml" lines in the log are warnings from dart format (it runs before the example has its packages). That step passes with 0 files changed. Analyze and tests pass on CI too (7 tests).

The failing step is flutter build apk --release in geocoding/example:

Your project's Gradle version (9.1.0) is lower than Flutter's minimum supported version of 9.3.1.

CI runs the latest stable (Flutter 3.50.1), which raised the minimum Gradle version. geocoding/example/android/gradle/wrapper/gradle-wrapper.properties has been on Gradle 9.1.0 on main since July, and this PR doesn't touch geocoding/example/android, so main fails the same way on 3.50.1 (its last CI run, 5 Nov, used an older stable). Fixing it means bumping the example's Gradle wrapper (and possibly AGP), which belongs in its own PR.

🤖 Generated with Claude Code

rickdijk and others added 3 commits November 30, 2026 16:33
Linear: FPL-58

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Dart 3.12 allows initializing a private field from a named parameter,
so prefer_initializing_formals now flags the explicit _locale assignment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant