From cf2bf51c4d6dda54b6f31091ba229f4bc8086127 Mon Sep 17 00:00:00 2001 From: Eric Griffin Date: Mon, 17 Aug 2026 01:39:58 -0400 Subject: [PATCH] Move pigeon to dev_dependencies in geocoding_darwin pigeon is a build-time code generator. Nothing under lib/ imports package:pigeon: the generated lib/src/geocoding/geocoding.g.dart imports only dart:* and package:flutter/*, and the whole lib/ tree references just package:flutter and package:geocoding_platform_interface. Only pigeons/clgeocoder.dart, the input schema, imports it, and a dev_dependency covers that. Declaring it as a regular dependency propagated pigeon's own constraints to every consuming application. geocoding_android already declares it under dev_dependencies; this brings the Darwin package in line. Fixes #304. --- geocoding_darwin/CHANGELOG.md | 8 ++++++++ geocoding_darwin/pubspec.yaml | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/geocoding_darwin/CHANGELOG.md b/geocoding_darwin/CHANGELOG.md index 0a8b254..0c29b91 100644 --- a/geocoding_darwin/CHANGELOG.md +++ b/geocoding_darwin/CHANGELOG.md @@ -1,3 +1,11 @@ +## 1.0.3 + +- Moves `pigeon` to `dev_dependencies`, matching `geocoding_android`. + It is only used to generate `lib/src/geocoding/geocoding.g.dart` at + build time and is not imported at runtime, so declaring it as a + regular dependency propagated its version constraints to every + consuming application. + ## 1.0.2 - Registers the `GeocodingDarwinFactory` class as `dartPluginClass` factory to diff --git a/geocoding_darwin/pubspec.yaml b/geocoding_darwin/pubspec.yaml index a738b7c..7b947fb 100644 --- a/geocoding_darwin/pubspec.yaml +++ b/geocoding_darwin/pubspec.yaml @@ -2,7 +2,7 @@ name: geocoding_darwin description: |- A Flutter Geocoding plugin which provides easy geocoding and reverse-geocoding features for iOS and macOS. -version: 1.0.2 +version: 1.0.3 repository: https://github.com/baseflow/flutter-geocoding environment: @@ -13,13 +13,13 @@ dependencies: flutter: sdk: flutter geocoding_platform_interface: ^5.0.0 - pigeon: ^26.1.2 plugin_platform_interface: ^2.0.2 dev_dependencies: flutter_test: sdk: flutter flutter_lints: ^6.0.0 + pigeon: ^26.1.2 flutter: plugin: