package_info_plus_watchos 0.1.0 copy "package_info_plus_watchos: ^0.1.0" to clipboard
package_info_plus_watchos: ^0.1.0 copied to clipboard

watchOS implementation of the package_info_plus plugin, reading app name, version, build number, and install metadata from NSBundle via dart:ffi.

package_info_plus_watchos #

The watchOS implementation of package_info_plus.

Scaffolded with flutter-watchos plugin port and finished by hand as an FFI implementation over NSBundle — see PORTING_REPORT.md.

Usage #

This is a federated plugin implementation. Apps that already depend on package_info_plus and target watchOS only need to add this package as a dependency, alongside the upstream plugin:

dependencies:
  package_info_plus: ^8.0.0
  package_info_plus_watchos: ^0.1.0

PackageInfo.fromPlatform() then works on the watch — no imports needed in app code.

API coverage #

Field watchOS
appName CFBundleDisplayName / CFBundleName
packageName CFBundleIdentifier
version CFBundleShortVersionString
buildNumber CFBundleVersion
buildSignature — empty (Android-only concept)
installerStore — null (no App Store installer-source API on watchOS)
installTime / updateTime — null (no watchOS API)

Example on the watch screen #

The package ships the upstream example app and its official integration test verbatim. The upstream UI is phone-designed and does not fit a watch screen at native density, so the example's runner opts into the flutter-watchos content scale (watchos/Runner/Info.plist):

<key>FlutterWatchOSContentScale</key>
<real>0.4</real>

This lays the app out in a proportionally larger logical space rendered smaller — same layout, smaller components — without touching the example's Dart code. With it, the full official integration test passes on the watch simulator.

License #

The FlutterWatch Authors under a BSD-3-Clause license. See LICENSE for the full text.

0
likes
140
points
98
downloads

Documentation

API reference

Publisher

verified publisherflutterwatch.dev

Weekly Downloads

watchOS implementation of the package_info_plus plugin, reading app name, version, build number, and install metadata from NSBundle via dart:ffi.

Homepage
Repository (GitHub)
View/report issues

Topics

#watchos #ffi #package-info

License

BSD-3-Clause (license)

Dependencies

ffi, flutter, package_info_plus_platform_interface

More

Packages that depend on package_info_plus_watchos

Packages that implement package_info_plus_watchos