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

Exception handler for Telemetry SDK #123

Merged
merged 13 commits into from
Jun 4, 2019
Merged

Exception handler for Telemetry SDK #123

merged 13 commits into from
Jun 4, 2019

Conversation

alfwatt
Copy link
Contributor

@alfwatt 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

@alfwatt alfwatt requested a review from rclee April 5, 2019 06:06
Copy link
Contributor

@rclee rclee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor things :)

MapboxMobileEvents/MMEEvent.h Show resolved Hide resolved
MapboxMobileEvents/MMEEvent.h Show resolved Hide resolved
MapboxMobileEvents/MMETypes.h Outdated Show resolved Hide resolved
MapboxMobileEvents/MMEEvent.m Show resolved Hide resolved
MapboxMobileEvents/MMEEvent.m Show resolved Hide resolved
@alfwatt alfwatt requested a review from rclee May 4, 2019 00:02
@alfwatt alfwatt marked this pull request as ready for review May 7, 2019 17:27
@codecov-io
Copy link

codecov-io commented May 7, 2019

Codecov Report

Merging #123 into master will increase coverage by 0.65%.
The diff coverage is 78.24%.

@@            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

@alfwatt alfwatt force-pushed the aw-issue-mt-287 branch 2 times, most recently from e2b1690 to 6bfc851 Compare May 8, 2019 21:16
Copy link
Contributor

@rclee rclee left a 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!

MapboxMobileEvents/MMEEvent.h Show resolved Hide resolved
MapboxMobileEvents/MMEEvent.m Outdated Show resolved Hide resolved
MapboxMobileEvents/MMEEventsManager.h Outdated Show resolved Hide resolved
MapboxMobileEventsTests/MMECrashTests.mm Outdated Show resolved Hide resolved
MapboxMobileEventsTests/MMECrashTests.mm Show resolved Hide resolved
MapboxMobileEventsTests/MMEDateFakes.m Outdated Show resolved Hide resolved
MapboxMobileEventsTests/MMEEventTests.mm Show resolved Hide resolved
MapboxMobileEventsTests/MMEEventTests.mm Outdated Show resolved Hide resolved
MapboxMobileEventsTests/MMEEventTests.mm Outdated Show resolved Hide resolved
@alfwatt alfwatt requested review from julianrex, akitchen, 1ec5 and rclee and removed request for akitchen May 14, 2019 17:32
- 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
MapboxMobileEvents/MMECommonEventData.m Show resolved Hide resolved
MapboxMobileEvents/MMECommonEventData.m Outdated Show resolved Hide resolved
MapboxMobileEvents/MMECommonEventData.m Show resolved Hide resolved
MapboxMobileEvents/MMEConstants.h Show resolved Hide resolved
MapboxMobileEvents/MMEEvent.m Show resolved Hide resolved
MapboxMobileEvents/MMEEvent.m Show resolved Hide resolved
MapboxMobileEvents/MMEEvent.m Show resolved Hide resolved
MapboxMobileEvents/MMEEvent.m Show resolved Hide resolved
MapboxMobileEvents/MMEEvent.m Outdated Show resolved Hide resolved
@julianrex
Copy link
Contributor

@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 😢

@alfwatt
Copy link
Contributor Author

alfwatt commented May 21, 2019

@julianrex that's a huge help, working through these issue now

@alfwatt alfwatt requested a review from julianrex May 29, 2019 17:53
Tests use the private constructor `initShared`
Copy link
Contributor

@1ec5 1ec5 left a 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.

LICENSE.md Show resolved Hide resolved
Makefile Show resolved Hide resolved
MapboxMobileEvents/MMEConstants.h Show resolved Hide resolved
MapboxMobileEvents/MMEConstants.h Show resolved Hide resolved
MapboxMobileEvents/MMEEvent.h Show resolved Hide resolved
readme.md Outdated Show resolved Hide resolved
readme.md Outdated Show resolved Hide resolved
readme.md Outdated Show resolved Hide resolved
@@ -53,3 +83,8 @@ brew install carthage
cd $PROJECT_DIR
carthage bootstrap
```

<style>
Copy link
Contributor

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.

Copy link
Contributor Author

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On GitHub?

github

alfwatt and others added 2 commits May 30, 2019 13:14
Co-Authored-By: Minh Nguyễn <[email protected]>
Co-Authored-By: Minh Nguyễn <[email protected]>
alfwatt and others added 5 commits May 30, 2019 13:52
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.
@alfwatt alfwatt merged commit 32316c0 into master Jun 4, 2019
@rclee rclee deleted the aw-issue-mt-287 branch February 12, 2020 22:13
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.

5 participants