Skip to content

fix(geocoding_darwin): declare pigeon as a dev_dependency - #314

Open
bjrochem72 wants to merge 1 commit into
Baseflow:mainfrom
bjrochem72:fix/geocoding-darwin-pigeon-dev-dependency
Open

fix(geocoding_darwin): declare pigeon as a dev_dependency#314
bjrochem72 wants to merge 1 commit into
Baseflow:mainfrom
bjrochem72:fix/geocoding-darwin-pigeon-dev-dependency

Conversation

@bjrochem72

@bjrochem72 bjrochem72 commented Aug 12, 2026

Copy link
Copy Markdown

Moves pigeon from dependencies to dev_dependencies in geocoding_darwin.

Pigeon is a build-time code generator. The generated lib/src/geocoding/geocoding.g.dart is self-contained and doesn't import package:pigeon at runtime, so it doesn't need to be a runtime dependency. geocoding_android already declares it under dev_dependencies; this just brings geocoding_darwin in line.

Because it's a regular dependency today, pigeon is pulled into every app that depends on geocoding, and pigeon's analyzer >=10.0.0 <13.0.0 constraint then caps the whole app's analyzer at 12. That blocks any package in the app that needs analyzer 13+. In our project it prevents upgrading riverpod_generator/riverpod_lint (3.4+) and drift_dev, which all require analyzer ^13, and there's no workaround short of dropping geocoding since it's the only path pulling pigeon in.

Fixes #304.

Verification:

  • grep -rn "package:pigeon" geocoding_darwin/lib returns nothing (no runtime use).
  • flutter pub get in the example app still resolves.

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.

[Bug]: Geolocator 5.0.0 introduced restrictions on pigeon usage

1 participant