plumb 0.1.1
plumb: ^0.1.1 copied to clipboard
Native config for Flutter™. `plumb doctor` checks your app's Info.plist, entitlements and AndroidManifest against what its plugins' docs require. Read-only.
Changelog #
0.1.1 #
Safer to run on every build.
- Fix: if your Xcode project builds with other plists only (
INFOPLIST_FILE, e.g.Runner/Info-$(CONFIGURATION).plist), plumb no longer checks the unusedios/Runner/Info.plistand reports keys as missing that your app does have. It says so (ℹ) and lists the keys your plugins need as "not checked". Reported by the ServerBox maintainer after the launch study. - New: ignore a finding in
pubspec.yamlwith a reason (plumb: ignore: <finding id>: <reason>). Ignored findings don't count for--strict; entries that match nothing are reported as ℹ. --verboseshows each finding's id, to copy intoplumb: ignore:.- The report says how many plugins plumb has recipes for, since the others aren't checked.
- JSON (format 1, additive):
findings[].ignoredandsummary.ignored. - README: running plumb on every build (GitHub Actions, other CI, fastlane, your own build script) and ignoring findings.
0.1.0 #
Fewer false alarms, based on running plumb on popular open-source Flutter apps.
- image_picker: a missing
NSCameraUsageDescriptionis now ℹ ("needed if you useImageSource.camera") instead of ✗. Apps that only pick from the gallery don't need it. - camera: a missing
NSMicrophoneUsageDescriptionis now ℹ ("needed unless everyCameraControllerusesenableAudio: false") instead of ✗. - README: what to do when the
plumbcommand is not found (common on Windows), running it withdart pub global run plumb doctor, and the dev_dependency option (flutter pub add --dev plumb+dart run plumb doctor). - README: how to update,
actions/checkoutin the CI example, and wording that matches Apple's docs on missing purpose strings ("can crash", with a link). - README screenshot and JSON example updated to the new output.
- Releases are now published from GitHub Actions when a version tag is pushed.
Updating: dart pub global activate plumb. As a dev dependency, ^0.0.1 only
allows 0.0.1, so run flutter pub upgrade --major-versions plumb once. From
^0.1.0 on, later 0.1.x fixes arrive with a normal flutter pub upgrade, which
is why this release is 0.1.0 rather than 0.0.2.
0.0.1 #
First release: plumb doctor, a read-only check of native config.
- Checks
ios/Runner/Info.plist,ios/Runner/*.entitlementsandandroid/app/src/main/AndroidManifest.xml(plus the launcher activity's base class) against bundled recipes. - Recipes for 10 plugins, each written from the plugin's own docs and cited: camera, firebase_messaging, flutter_local_notifications, geolocator, google_maps_flutter, image_picker, local_auth, permission_handler, sign_in_with_apple, url_launcher.
- Flags placeholder purpose strings (empty,
TODO,your … here…) in every*UsageDescription, with or without a recipe. - Text output,
--json(format 1),--strict,--verbose,--[no-]color(respectsNO_COLOR). - Exit codes: 0 ok, 1
--strictfindings, 2 incomplete check, 64 usage error. - Never writes to the project it checks.
