Skip to content
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

feat(device): Add realDiskTotal and realDiskFree properties #694

Merged
merged 2 commits into from
Nov 17, 2021

Conversation

jcesarmobile
Copy link
Member

diskTotal and diskFree are returning the values from the wrong volume on android and diskFree is not accurate on iOS.

This PR adds new realDiskTotal and realDiskFree properties with the proper values instead of returning them in the old properties just in case somebody was relying on them, but they are being deprecated in favor of the new ones.

closes #693

@jcesarmobile jcesarmobile merged commit 3f67643 into main Nov 17, 2021
@jcesarmobile jcesarmobile deleted the real-storage branch November 17, 2021 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: Device.getInfo() gets wrong values for diskFree and diskTotal
3 participants