Skip to main content

plumb 0.1.1 copy "plumb: ^0.1.1" to clipboard
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 unused ios/Runner/Info.plist and 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.yaml with a reason (plumb: ignore: <finding id>: <reason>). Ignored findings don't count for --strict; entries that match nothing are reported as ℹ.
  • --verbose shows each finding's id, to copy into plumb: ignore:.
  • The report says how many plugins plumb has recipes for, since the others aren't checked.
  • JSON (format 1, additive): findings[].ignored and summary.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 NSCameraUsageDescription is now ℹ ("needed if you use ImageSource.camera") instead of ✗. Apps that only pick from the gallery don't need it.
  • camera: a missing NSMicrophoneUsageDescription is now ℹ ("needed unless every CameraController uses enableAudio: false") instead of ✗.
  • README: what to do when the plumb command is not found (common on Windows), running it with dart pub global run plumb doctor, and the dev_dependency option (flutter pub add --dev plumb + dart run plumb doctor).
  • README: how to update, actions/checkout in 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/*.entitlements and android/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 (respects NO_COLOR).
  • Exit codes: 0 ok, 1 --strict findings, 2 incomplete check, 64 usage error.
  • Never writes to the project it checks.
2
likes
160
points
1.02k
downloads
screenshot

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Native config for Flutter™. `plumb doctor` checks your app's Info.plist, entitlements and AndroidManifest against what its plugins' docs require. Read-only.

Repository (GitHub)
View/report issues
Contributing

Topics

#flutter #cli #ios #android #lint

License

MIT (license)

Dependencies

args, package_config, path, pub_semver, xml, yaml

More

Packages that depend on plumb