build_info_linux 1.1.0
build_info_linux: ^1.1.0 copied to clipboard
Linux implementation of Flutter plugin that retrieves build date and time and installation date and time.
build_info_linux #
The Linux 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 Linux version #
The Linux version of build_info works as follows.
- At build time, linux/CMakeLists.txt defines the BUILD_INFO_TIMESTAMP constant and sets the build time in milliseconds.
- Call the BuildInfo.fromPlatform method from Flutter.
- The value of the BUILD_INFO_TIMESTAMP constant is set as the build date and time.
In the Linux version, the installation date and time is always null.