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-5682] Make max persisted events/sessions spec compliant #966

Merged
merged 1 commit into from
Jan 12, 2021

Conversation

nickdowell
Copy link
Contributor

@nickdowell nickdowell commented Jan 12, 2021

Goal

Make maxPersistedEvents and maxPersistedSessions more closely follow the specification

  • Defaults of 32 and 128, respectively
  • No upper limit

Changeset

Adjusted the implementation and documentation to closely follow the specification and Android implementation.

Removed the custom getters - these are no longer required since the properties are now nonatomic.

Adjusted the unit tests.

Note when using XCTAssert macros that the expected value should be passed as the second argument, as demonstrated in Apple's documentation. Many of our existing tests do not follow this convention, but new code should.

Testing

Manually ran the unit tests.

@github-actions
Copy link

Infer: No issues found 🎉

Bugsnag.framework binary size decreased by 8 bytes from 1,058,936 to 1,058,928 🎉

Generated by 🚫 Danger

@nickdowell nickdowell marked this pull request as ready for review January 12, 2021 09:16
@nickdowell nickdowell merged commit 1aab7a5 into next Jan 12, 2021
@nickdowell nickdowell deleted the nickdowell/max-persisted-spec-compliance branch January 12, 2021 13:07
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