-
-
Notifications
You must be signed in to change notification settings - Fork 354
Add sentry private SPM #5269
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
base: main
Are you sure you want to change the base?
Add sentry private SPM #5269
Conversation
18dd8b5
to
991acbd
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5269 +/- ##
=============================================
- Coverage 92.899% 92.791% -0.109%
=============================================
Files 688 689 +1
Lines 86276 86272 -4
Branches 31191 30103 -1088
=============================================
- Hits 80150 80053 -97
- Misses 6027 6121 +94
+ Partials 99 98 -1
... and 20 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
3d6456a
to
2271185
Compare
Performance metrics 🚀
|
Revision | Plain | With Sentry | Diff |
---|---|---|---|
e84bc3f | 1201.49 ms | 1232.82 ms | 31.33 ms |
676e429 | 1225.76 ms | 1235.49 ms | 9.73 ms |
d3630c3 | 1248.52 ms | 1262.70 ms | 14.18 ms |
97797b4 | 1199.27 ms | 1213.54 ms | 14.27 ms |
8d16504 | 1235.50 ms | 1258.76 ms | 23.26 ms |
90e653b | 1238.94 ms | 1258.20 ms | 19.26 ms |
2911760 | 1215.37 ms | 1248.76 ms | 33.39 ms |
6bc5ae5 | 1207.23 ms | 1216.66 ms | 9.43 ms |
f5a9f3f | 1238.20 ms | 1246.65 ms | 8.45 ms |
d1988b7 | 1205.20 ms | 1234.10 ms | 28.90 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
e84bc3f | 20.76 KiB | 434.72 KiB | 413.96 KiB |
676e429 | 21.58 KiB | 614.73 KiB | 593.15 KiB |
d3630c3 | 22.84 KiB | 403.19 KiB | 380.34 KiB |
97797b4 | 22.85 KiB | 408.72 KiB | 385.87 KiB |
8d16504 | 20.76 KiB | 434.92 KiB | 414.16 KiB |
90e653b | 21.58 KiB | 714.13 KiB | 692.55 KiB |
2911760 | 21.58 KiB | 697.69 KiB | 676.11 KiB |
6bc5ae5 | 20.76 KiB | 401.39 KiB | 380.63 KiB |
f5a9f3f | 22.31 KiB | 775.15 KiB | 752.83 KiB |
d1988b7 | 22.32 KiB | 819.55 KiB | 797.23 KiB |
acfe644
to
87282dc
Compare
bead0ae
to
5f54fc5
Compare
🚨 Detected changes in high risk code 🚨High-risk code can easily blow up and is hard to test. We had severe bugs in the past. Be extra careful when changing these files, and have an extra careful look at these:
|
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'm a bit unsure about the naming of _SentryPrivate
, because it contains public ObjC header files. That confuses me and feels wrong.
Also a bit confusing to me is that the Xcode structure doesn't match the folder structure. It can get confusing where to add a new public header file or a new header file in general. Do you think we should consider reflecting the actual folder structure with the Xcode groups so it's less confusing?
Apart from that, I think this PR goes in the right direction.
I would highly appreciate the Xcode project structure reflecting the file hierarchy. We can not use synchronized folders yet, due to using older Xcode versions, but at some point we could migrate. |
This adds a new SPM target "_SentryPrivate" to hold all the objc code that swift needs to access. The name matches the existing name, so Swift code that uses
@_implementationOnly import SentryPrivate
does not need to be changed to compile with SPM.A bit of code needed to be pulled out of SentryFileManager to be used from code that Swift depends on, without bringing all of SentryFileManager. I put that code all into
FileUtils.m
. Other than that the only other notable change is the addition of@_spi(Private) public
since Swift classes that are visible to objc need to be public in SPM.#skip-changelog