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

[PLAT-6136] Fix missing / invalid device info when UIKit is not available #1022

Merged
merged 4 commits into from
Mar 5, 2021

Conversation

nickdowell
Copy link
Contributor

@nickdowell nickdowell commented Mar 4, 2021

Goal

Fixes missing osName and osVersion device fields for errors reported from app extensions that do not link against UIKit.

Also stops invalid batteryLevel and charging values being sent.

Changeset

BSG_KSSystemInfo now reads NSOperatingSystemVersion (that was used on macOS) on iOS and tvOS.

Hard-coded strings are now used for each OS name.

Testing

E2E tests have coverage of osName.

Manually tested with an app extension.

Manually verified that osVersion matches -[UIDevice systemVersion] on iOS 14.5 beta.

@nickdowell nickdowell changed the title Nickdowell/fix missing device info [PLAT-6136] Fix missing / invalid device info when UIKit is not available Mar 4, 2021
@github-actions
Copy link

github-actions bot commented Mar 4, 2021

Infer: No issues found 🎉

OCLint: No issues found 🎉

Bugsnag.framework binary size did not change - 1,084,888 bytes

Generated by 🚫 Danger

@nickdowell nickdowell force-pushed the nickdowell/fix-missing-device-info branch from 71cc83d to b4e2979 Compare March 5, 2021 09:12
@nickdowell nickdowell marked this pull request as ready for review March 5, 2021 10:05
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.

2 participants