Launch offer: the first 1,000 users get Settl free for a year* Claim your spot
settlbuilding in public

The Flutter native-deps landmine map (Kotlin pins, ML Kit collisions, signing)

Flutter saved me months. One codebase, live in both stores, that part is real. Then it billed me back in native dependency archaeology: a crash-SDK that pinned an old Kotlin version new Android Gradle rejects, a popular QR scanner dragging Google ML Kit pods that collide with Firebase, and iOS signing vs upload keys turning out to be two separate credential systems that fail independently.

The landmine map

  1. Kotlin/AGP version pins (Android). Any plugin bundling an old Kotlin stdlib can hard-block a Gradle upgrade. When the Android build breaks after flutter pub upgrade, check the transitive Kotlin pin before touching your own config:
cd android && ./gradlew app:dependencies | grep kotlin-stdlib
# find who pins the old version, then upgrade/replace THAT plugin
  1. iOS pod collisions (the ML Kit classic). Camera/scanner plugins often pull Google ML Kit pods whose versions collide with Firebase pods. pod install fails or, worse, links two versions of a shared dependency. My exit: dropped the popular scanner and shipped a lean C++-based one with no ML Kit footprint. Before adopting any plugin, read its .podspec dependencies, not its README.
  2. Prefer plugins with a small native surface. For each candidate ask: what does it pull in natively? A plugin that wraps 200MB of pods to draw a viewfinder is a liability, not a convenience.
  3. iOS signing ≠ upload credentials. Two independent systems: (a) code signing needs a Distribution certificate + provisioning profile in your local keychain; (b) upload auths via an App Store Connect API key. Fastlane can hold a perfectly valid ASC key and still die at exportArchive because the keychain has no cert. Fix the keychain in Xcode (Settings → Accounts → manage signing, archive once); the API key can't help you there.
  4. Pin and commit your native tooling versions. Kotlin, AGP, CocoaPods, Xcode: record the known-good combo. "Works on my machine" in Flutter is usually a native toolchain delta.
  5. Budget for the archaeology. Rule of thumb from my history: UI work is 2× faster cross-platform; anything touching camera, crash SDKs, auth, push, or store delivery costs that time back. Plan features accordingly.
  6. Upgrade one layer at a time. Flutter SDK, then plugins, then Gradle/Kotlin, then pods, with a build between each. Batched upgrades produce error messages from three layers at once.

Steal this for your app

Run this on your codebase

Paste this into Claude Code in your repo:

Audit this Flutter repo for native dependency landmines.
Run the Android dependency tree and list every transitive Kotlin stdlib and AGP pin; flag plugins pinning versions older than the project's.
Read the .podspec dependencies of every iOS plugin and flag ML Kit or Firebase pod version collisions and duplicated shared pods.
Rank plugins by native surface: list what each pulls in natively and flag heavyweight pods wrapped around small features.
Check that Kotlin, AGP, CocoaPods, and Xcode versions are pinned and the known-good combo is recorded in the repo.
Check release tooling: confirm code signing (cert plus provisioning profile) and App Store Connect upload keys are handled as separate systems.
Report findings as a checklist before changing anything.

Get the next one in your inbox