Viewing version 4.1.0. Open the latest package page.
system_info2
4.1.0Provides easy access to useful information about the system (architecture, bitness, kernel, memory, operating system, CPU, user).
Readme
system_info2
A fork of system_info as the original maintainer no longer wishes to do so.
Thanks to onepub.dev for allowing me the time and resources to support this package.
Provides easy access to useful information about the system (architecture, bitness, kernel, memory, operating system, CPU, user).
system_info2 lets you discover specific hardware characteristics of the OS you are running on includeing:
- kernelArchitecture
- Kernel bitness
- Kernel name
- Kernel version
- Operating system name
- Operating system version
- User directory
- User id
- User name
- User space bitness
Basic examples:
if (SysInfo.operatingSystemName == "Ubuntu") {
log.info("We love Ubuntu users");
}
Documentation
You can find the manual at:
Changelog
4.1.0
- Merge pull request #14 from GabrielTorelo/feat/storage_information
- chore(example): adding the storage data to the example
- feat(system_info): provides and comments functions to get data from storage
- feat(storage): creates functions to get total storage and available storage
- feat(utils): creates function to obtain 'StatFs' values and convert to map
- Merge pull request #11 from dev-kasibhatla/system_info3-compatibility
- Add getAvailablePhysicalMemory()
4.0.0
- upgraded to support dart 3.0
- removed dependency on deprecated file_utils package by coping the required classes into system_info.
3.0.2
- Updated to kernel.dart processorToArchitecure map
3.0.1
- breaking: changed SysInfo.kernelArchitecture to return a ProcessorArchitecture rather than a string as it provides a more useful abstraction.
- Introduced the new SysInfo.rawKernelArchitecture which provides the same value as the original SysInfo.kernelArchitecture.
3.0.0
- Breaking Change: removed all classes/methods marked as @deprecated in 2.x. To make your life easier be sure to remove all deprecated warnings before upgrading to 3.x
- Breaking change,
ProcessorArchitecture.aarch64renamed toProcessorArchitecture.arm64 - significant refactoring of the code base by breaking out code into seperate dart files to improve readability.
2.0.4
- fixed getFreePhysicalMemory - big thanks to @jingluoguo for the patch
2.0.3
- removed trailing slashes of homepage and documenation.
- fix of the readme.
2.0.2
- released the manual and updated the readme to point to it.
- made processors redundant and replaced with cores.
- Applied lint hard and fixed incorrect camel case usage.
2.0.1
Acknowledged onepub.dev's support.
2.0.0
Forked an created a supported release.
- 1.0.1
- 1.0.1
- 1.0.0
- Merge pull request #3 from bsutton/master
- Corrected the version no.
- migrate to nnbd
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1.0
- 0.0.16
- 0.0.15
- Merge pull request #1 from martinsik/master
- fixed _getKernelBitness for "macos"
- 0.0.14
- 0.0.12
- 0.0.12
- 0.0.12
- 0.0.11
- 0.0.11
- 0.0.10
- 0.0.9
- 0.0.9
- 0.0.8
- 0.0.7
- 0.0.6
- 0.0.6
- 0.0.5
- 0.0.5
- 0.0.4
- 0.0.3
- 0.0.2
- 0.0.1
- Initial commit
1.0.1
- This package is no longer supported because it was flagged by Google Dart developers as being published by an unknown person. Publisher Unknown. As a normal person, I believe that hardly anyone would want to use software from unknown publishers.
1.0.0
- The source code has been migrated to null safety. Thanks to the author of this work, Brett Sutton (github.com/bsutton).
0.1.3
- Minor changes in processor architecture recognition
0.1.2
- The source code has been modified in accordance with Google’s guidelines about the effectiveness of the Dart language
0.1.1
- To avoid downgrading the rating on https://pub.dartlang.org, the source code has been changed to fit Google’s ever-changing recommendations on what a good (pedantic) source code should be.
0.1.0
- Adaptation to Dart 2.0
0.0.16
- Fixed bug in detection of
user space bitnesson Mac OS X
0.0.15
- Fixed bug in detection of
bitness of kernelon Mac OS X
0.0.14
- Added statistics
getVirtualMemorySize()about the current memory usage by the current process
0.0.12
- Breaking change,
ProcessorArchitecture.ARM64renamed toProcessorArchitecture.AARCH64
0.0.11
- Fixed bug in detection of
kernel architectureon Windows. More universal algorithm independent from the architecture name, allows detect any architecture (X86/ AMD64/ IA64/ etc) - Impoved detection of
bitness of kernelon Windows. Added suport ofIA64 - Impoved detection of
bitness of user spaceon Windows. Added suport ofIA64
0.0.10
- Implemented
getFreePhysicalMemory()andgetTotalVirtualMemory()on Mac OS X
0.0.9
- Fixed bug in detection of
bitness of kernelon Linux
0.0.8
- Detection of
bitness of kernelon Linux are based on the found file formats oflibc.so.*
0.0.7
- Partial support of
processor architecturestatistics
0.0.6
- Renamed method
physicalMemoryFreeSize()togetFreePhysicalMemory() - Renamed method
physicalMemoryTotalSize()togetTotalPhysicalMemory() - Renamed method
virtualMemoryFreeSize()togetFreeVirtualMemory() - Renamed method
virtualMemoryTotalSize()togetTotalVirtualMemory()
0.0.5
- Partial support of
phycical memoryandvirtual memorystatistics
0.0.4
- Fixed a bug when parsing comments in the file
/boot/configon Linux
0.0.3
- Changed the algorithm for detecting the number of physical processor sockets on Windows
0.0.1
- Initial release
Installing
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add 'system_info2:4.1.0'pubspec.yaml
name: system_info2
version: 4.1.0
homepage: https://sysinfo.onepub.dev
documentation: https://sysinfo.onepub.dev
description: Provides easy access to useful information about the system (architecture, bitness, kernel, memory, operating system, CPU, user).
repository: https://github.com/onepub-dev/system_info
environment:
sdk: '>=2.19.0 <4.0.0'
dependencies:
globbing: ^1.0.0
path: ^1.8.0
dev_dependencies:
lint_hard: ^6.2.1
Version history
| Version | Published | Archive | SHA-256 |
|---|---|---|---|
| 2.0.0 | On demand | Download | 4d2bf5e8…a3f676 |
| 2.0.1 | On demand | Download | bf274e9f…500b20 |
| 2.0.2 | On demand | Download | e515bf22…f77618 |
| 2.0.3 | On demand | Download | 59d9d035…c67d9f |
| 2.0.4 | On demand | Download | 90621f3b…22a886 |
| 3.0.0 | On demand | Download | 080e23ae…ab8d95 |
| 3.0.1 | On demand | Download | e9a8b428…6b7704 |
| 3.0.2 | On demand | Download | af2f948e…6d8bc9 |
| 4.0.0 | On demand | Download | 65206bbe…f3efc9 |
| 4.1.0 | Cached · Upstream SHA-256 matched | Download | b937736e…65ac43 |
| 4.2.0 | Cached · Upstream SHA-256 matched | Download | 2d5e586c…1a1541 |
Dependencies
globbing "^1.0.0"
path "^1.8.0"