build_info_macos 1.0.2 copy "build_info_macos: ^1.0.2" to clipboard
build_info_macos: ^1.0.2 copied to clipboard

PlatformmacOS

macOS implementation of Flutter plugin that retrieves build date and time and installation date and time.

build_info_macos #

The macOS implementation of build_info.

Usage #

This package is endorsed, which means you can simply use build_info normally. This package will be automatically included in your app when you do, so you do not need to add it to your pubspec.yaml.

However, if you import this package to use any of its APIs directly, you should add it to your pubspec.yaml as usual.

About implementation of macOS version #

The macOS version of build_info works as follows.

  1. Call the BuildInfo.fromPlatform method from Flutter.
  2. Use path(forResource:ofType:) to get the last modification date and time of the bundled _CodeSignature/CodeResources file and use it as the build date and time.
  3. Get the bundle creation date and time using MDItemCreateWithURL as the installation date and time.

If each date and time cannot be obtained, it will be null.

0
likes
160
points
696
downloads

Publisher

verified publishercraftsoft.dev

Weekly Downloads

macOS implementation of Flutter plugin that retrieves build date and time and installation date and time.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

build_info_platform_interface, flutter

More

Packages that depend on build_info_macos