-
Notifications
You must be signed in to change notification settings - Fork 38
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
Exception handler for Telemetry SDK #123
Conversation
alfwatt
commented
Apr 5, 2019
- Stubs documentation comments for the existing Public API
- Marks some Events constructors as to be deprecated, pending replacements
- Cleanup of MMETestHost
- Update name headers, remove empty class
MapboxMobileEvents.xcodeproj/xcshareddata/xcschemes/MMETestHost.xcscheme
Show resolved
Hide resolved
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.
Minor things :)
Codecov Report
@@ Coverage Diff @@
## master #123 +/- ##
==========================================
+ Coverage 83.36% 84.02% +0.65%
==========================================
Files 73 75 +2
Lines 4010 4238 +228
==========================================
+ Hits 3343 3561 +218
- Misses 667 677 +10 |
e2b1690
to
6bfc851
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.
Looking good. Loving the improvements!
- Better imports in the .h, better import order in the .m - Group the deprecated event constructors, document the rest - Add scripts to project - MapboxMobileMetrics -> MapboxMobileEvents - Add MMEErrorDomain and associated values to MMEConstants - MMEEvent marks a number of deprecated methods for later warning flags - MMEEvent routes all event construction through to the designated initializer which now reports errors - MMEEventsManager adds Error & Exception Reporting - Some tests now fail because MMEEvent is immutable, will update - Move deviceOrientation and contentSizeScale into UIKit+MMEMobileEvents - Add dateWithDate: to MMEDate - Event equality uses the storage properties for efficiency, does not separately consider name - Fix some of the broken tests - Don't break encapsulation in MMEvent or MMEDate - Add MMEDateFakes to allow for sloppy matching of dates in tests - Group Categories in a Folder - Fix Static Analyzer warnings in APIClient - Add MME_DEPRECATED_GOTO - Xcode 10.2 updates and English -> en conversion - Add MMECrashTests.mm for basic crash event testing - Add `+ commentEventData` to MMECommonEventData - Fix tests which were broken on device - Turn on code coverage for testing in the Xcode project - Add NS_ASSUME_NONNULL blocks on MMEEvent, update tests to reflect - Fix nested test cases for encode decide of dates and events - Implement all the @Try{} blocks for the MMEventsManager Exception Free API
@alfwatt just added some comments I had pending; I see there have been some changes since I first wrote those, so apologies if any are out of date 😢 |
@julianrex that's a huge help, working through these issue now |
Tests use the private constructor `initShared`
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.
Sorry for all the typo nitpicks at the bottom. I think jazzy would end up being more maintainable than HeaderDoc, but if you want to leave that as tail work, that’s understandable.
@@ -53,3 +83,8 @@ brew install carthage | |||
cd $PROJECT_DIR | |||
carthage bootstrap | |||
``` | |||
|
|||
<style> |
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.
GitHub-flavored Markdown doesn’t support <style>
tags, so it just shows up as gibberish at the bottom.
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.
Renders as display:none
for me
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.
Co-Authored-By: Minh Nguyễn <[email protected]>
Co-Authored-By: Minh Nguyễn <[email protected]>
Co-Authored-By: Minh Nguyễn <[email protected]>
Co-Authored-By: Minh Nguyễn <[email protected]>
…initialized yet. Add test to expose the crasher and validate that the forced singleton constructor is working.