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

refactor(device_info_plus): Declare proper nullability for iOS properties #1728

Merged
merged 1 commit into from
Apr 29, 2023

Conversation

vbuberen
Copy link
Collaborator

Description

One more refactor similar to #1246, but this time for iOS.
According to https://developer.apple.com/documentation/uikit/uidevice and https://pubs.opengroup.org/onlinepubs/7908799/xsh/sysutsname.h.html almost all properties that we return with the plugin are not nullable. So this PR updates nullability of properties to match the iOS specs.

Related Issues

Closes #1670

Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I titled the PR using Conventional Commits.
  • I did not modify the CHANGELOG.md nor the pubspec.yaml files.
  • All existing and new tests are passing.
  • The analyzer (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?

  • Yes, this is a breaking change (please indicate that with a ! in the title as explained in Conventional Commits).
  • No, this is not a breaking change.

@vbuberen vbuberen enabled auto-merge (squash) April 28, 2023 13:57
@vbuberen vbuberen disabled auto-merge April 29, 2023 17:12
@vbuberen vbuberen merged commit 9f43303 into main Apr 29, 2023
@vbuberen vbuberen deleted the refactor/device_info_ios_nullability branch April 29, 2023 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[device_info_plus]: IosDeviceInfo parameters are nullable
1 participant