-
-
Notifications
You must be signed in to change notification settings - Fork 359
chore(deps): v8: update Cocoa SDK to v9.3.0 #5515
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
Merged
Merged
Changes from 12 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
26dbd21
chore(deps): v8: update Cocoa SDK to v9.1.1
antonis a53dbaf
Merge branch 'v8' into antonis/cocoa-9.1.1
antonis f382a3d
Merge branch 'v8' into antonis/cocoa-9.1.1
antonis 446adfb
Merge branch 'v8' into antonis/cocoa-9.1.1
antonis 185e909
Merge branch 'v8' into antonis/cocoa-9.1.1
antonis aadf8b4
Bump to 9.2.0
antonis 6372f49
Merge branch 'v8' into antonis/cocoa-9.1.1
antonis 8cc8812
Bump to 9.3.0
antonis 1d0635f
chore: Move from using Hybrid SDK subspec to regular Sentry podspec (…
itaybre e47253d
Merge branch 'v8' into antonis/cocoa-9.1.1
antonis 90ae4d5
Adds changelog
antonis 2045daa
Merge branch 'v8' into antonis/cocoa-9.1.1
antonis 0f1f386
Remove RNSentry+formatters.h copy
antonis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #import "RNSentry+formatters.h" | ||
| #import "RNSentry.h" | ||
| #import "RNSentryBreadcrumb.h" | ||
| #import "RNSentryId.h" | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| #import <Foundation/Foundation.h> | ||
|
|
||
| // This file is a copy from | ||
| // https://github.com/getsentry/sentry-cocoa/blob/6c20265de0903b835a299e2e9da0f7af50af09f5/Sources/Sentry/include/HybridPublic/SentryFormatter.h | ||
|
|
||
| // 2 for the 0x prefix, plus 16 for the hex value, plus 1 for the null terminator | ||
| #define SENTRY_HEX_ADDRESS_LENGTH 19 | ||
|
|
||
| static inline NSString * | ||
| sentry_snprintfHexAddress(uint64_t value) | ||
| { | ||
| char buffer[SENTRY_HEX_ADDRESS_LENGTH]; | ||
| snprintf(buffer, SENTRY_HEX_ADDRESS_LENGTH, "0x%016llx", value); | ||
| NSString *nsString = [NSString stringWithCString:buffer encoding:NSASCIIStringEncoding]; | ||
| return nsString; | ||
| } | ||
|
|
||
| static inline NSString * | ||
| sentry_formatHexAddress(NSNumber *value) | ||
| { | ||
| /* | ||
| * We observed a 41% speedup by using snprintf vs +[NSString stringWithFormat:]. In a trial | ||
| * using a profile, we observed the +[NSString stringWithFormat:] using 282ms of CPU time, vs | ||
| * 164ms of CPU time for snprintf. There is also an assumed space improvement due to not needing | ||
| * to allocate as many instances of NSString, like for the format string literal, instead only | ||
| * using stack-bound C strings. | ||
| */ | ||
| return sentry_snprintfHexAddress([value unsignedLongLongValue]); | ||
| } | ||
|
|
||
| static inline NSString * | ||
| sentry_formatHexAddressUInt64(uint64_t value) | ||
| { | ||
| return sentry_snprintfHexAddress(value); | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Q: do we use this? why copy it here?
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.
Good catch @lucas-zimerman 👍
it was actually added with e1d97f3 in #5451
I think it is not needed now though. I removed it with 0f1f386. Let's see if the CI is happy 🤞