Removes ephemeral CocoaPods/Flutter symlink trees under example/ that can
make build_runner build hang forever with no error output and no CPU-idle
signal (it looks identical to a slow build, just one that never finishes).
Removes top-level shared declarations already defined by an earlier bridge
file compiled into the same Swift module, tracking what has been seen
cumulatively in alreadyDefined (caller keeps one set per module).
Why a generated file is stale given its header, or null when current.
Headers carry nitro_generator: <version> and (since 0.7.4)
spec-sha256: <hash>; a file without the hash line predates the stamp
and must be regenerated once. generatorVersion null skips that check
(path dep — nothing to compare).
The <key>: flow-map line, or the first <key>: block header that has
more-indented children, plus only those children (a sibling key is
excluded). Childless headers are skipped, so a top-level pub.dev
platforms: { android: } list never shadows flutter.plugin.platforms.
Synchronizes generated bridge files from lib/src/generated to native project roots.
platform is the platform directory name ('ios' or 'macos'). Defaults to 'ios'.
This is needed for Apple development as CocoaPods/SPM normally uses copies instead of symlinks.
(Re)generates the release/archive link anchors for a CocoaPods
<platform>/Classes/ directory from what is actually in it — see
appleLinkAnchorsTu for why they exist.