-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[device_info_plus] Added more information for Windows #814
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
cc @mhadaily. Thanks a lot! |
|
Very cool, thanks! I will test this before approving and merging when I got time. Meanwhile, is there any way you could add a test or two? so then codecov won't complain. |
|
Thanks for the follow up @miquelbeltran! I improved the tests for Windows, but it seems we're currently using EDIT: Other plugins don't seem to have plus_plugins/.github/workflows/device_info_plus.yaml Lines 68 to 79 in 08a7a35
Any solution that seems good to you? |
|
I saw that the test_and_coverage job is failing in the device_info_plus_windows project. Can you take a look? I haven't looked into it, but I guess you need to have a way to mock the calls to the missing dll in the tests |
|
Please merge this! this is a must for managing devices!! |
Agreed - what do we need to do to get this over the line? |
|
I resolved the merge conflicts, once CI finishes I will merge and release. |
|
merged and published |
This reverts commit 055da82.
|
This PR had to be reverted because the changes were not put in a major version, a new PR will come with the changes reapplied. |
* [device_info_plus_platform_interface] add more attributes to WindowsDeviceInfo * [device_info_plus_platform_interface] bump version to 4.0.0 * [device_info_plus_windows] feat: add more info (#177) * [device_info_plus_windows] bump version to 5.0.0 & depend on device_info_plus_platform_interface 4.0.0 * [device_info_plus_windows] update tests * [device_info_plus] bump version to 5.0.0 & re-introduce #814 * [device_info_plus] test WindowsDeviceInfo values in integration test * [device_info_plus] integration test: registeredOwner can be null on Windows
Description
Now
device_info_plusfetches a lot more information on Windows compared to before.This has many use-cases like identifying Windows version, getting username, install date, build number or product ID (for software license handling) etc.
Reference Images
[sensitive data is hidden]
Windows 10
Windows 11
{ 'computerName': computerName, 'numberOfCores': numberOfCores, 'systemMemoryInMegabytes': systemMemoryInMegabytes, 'userName': userName, 'majorVersion': majorVersion, 'minorVersion': minorVersion, 'buildNumber': buildNumber, 'platformId': platformId, 'csdVersion': csdVersion, 'servicePackMajor': servicePackMajor, 'servicePackMinor': servicePackMinor, 'suitMask': suitMask, 'productType': productType, 'reserved': reserved, 'buildLab': buildLab, 'buildLabEx': buildLabEx, 'digitalProductId': digitalProductId, 'displayVersion': displayVersion, 'editionId': editionId, 'installDate': installDate, 'productId': productId, 'productName': productName, 'registeredOwner': registeredOwner, 'releaseId': releaseId, 'deviceId': deviceId, }Related Issues
Closes #177
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]).This will ensure a smooth and quick review process.
pubspec.yamlandCHANGELOG.md.///).flutter analyze) does not report any problems on my PR.Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?