-
Notifications
You must be signed in to change notification settings - Fork 130
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: Add Bugsnag.getMetadata() #459
feat: Add Bugsnag.getMetadata() #459
Conversation
db3c507
to
24ab3bd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had a few queries about whether we need to implement additional methods for manipulating metadata that are listed in the spec. What has been implemented looks good - I left a few comments inline, some of which are more queries about how Objective-C works.
One thing to note is that the objective-c-ios example app still seems to be using event.metaData
and therefore fails to compile, so it'd be worth checking that doesn't affect any of the other example apps.
Thanks for the detailed feedback - dealt with individually inline.
This is an easy one to miss (it's not the first time I have). There's a larger piece of work needing to be done to unify the three Apple platforms in a single project which will simplify the burden going forwards. The original reason for the separation (Carthage issues) has been resolved. For now I'll update the PR template, adding an explicit check for the example app (as well as fixing the example apps). |
- Also amend lower-level equivalent functionality to match (i.e. return nil on non-existence) - Added a OOM metadata test - Updated the example applications to support the BugsnagConfiguration's designated initializer and include the README within the project.
24ab3bd
to
f4b69a9
Compare
- Also amend lower-level equivalent functionality to match (i.e. return nil on non-existence) - Added a OOM metadata test - Updated the example applications to support the BugsnagConfiguration's designated initializer and include the README within the project.
….com:bugsnag/bugsnag-cocoa into robinmacharg/Add-Bugsnag.getMetadata_section # Conflicts: # Source/BugsnagMetadata.h # Source/BugsnagMetadata.m
fd2d660
to
ac0775d
Compare
ac0775d
to
754879b
Compare
Goal
Provide metadata retrieval from the global
Bugsnag
class.Design
A class method was added to the
Bugsnag
class, exposed appropriately to Swift. Equivalent lower-level methods were renamed to align them with the implemented method. The functionality was changed from "create if not available" to "return nil if not available".Changeset
Bugsnag
andBugsnagMetadata
, along with appropriate unit test files.Tests
Unit tests were provided in Objective C (and Swift to confirm name exposure).
Review
Outstanding Questions
master
for fixes,next
forfeatures)