-
-
Notifications
You must be signed in to change notification settings - Fork 376
chore: Convert SentryNSDataSwizzling and SentryNSFileManagerSwizzling to Swift #7209
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?
chore: Convert SentryNSDataSwizzling and SentryNSFileManagerSwizzling to Swift #7209
Conversation
…for swizzling functionality
🚨 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:
|
Semver Impact of This PR🟢 Patch (bug fixes) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨Metrics
Other
Bug Fixes 🐛
Build / dependencies / internal 🔧Deps
Other
Other
🤖 This preview updates automatically when you update the PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7209 +/- ##
=============================================
+ Coverage 85.037% 85.096% +0.058%
=============================================
Files 468 470 +2
Lines 28305 28302 -3
Branches 12535 12533 -2
=============================================
+ Hits 24070 24084 +14
+ Misses 4194 3958 -236
- Partials 41 260 +219
... and 36 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
Performance metrics 🚀
|
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 21cd5ba | 1218.68 ms | 1255.54 ms | 36.86 ms |
| adeec82 | 1220.43 ms | 1254.94 ms | 34.51 ms |
| 41b4993 | 1215.15 ms | 1248.14 ms | 32.99 ms |
| 2f4ddaa | 1227.26 ms | 1260.04 ms | 32.78 ms |
| d29a425 | 1209.96 ms | 1239.00 ms | 29.04 ms |
| 778dadf | 1207.69 ms | 1246.09 ms | 38.40 ms |
| b87b34f | 1203.00 ms | 1237.17 ms | 34.17 ms |
| e1e5f3b | 1220.60 ms | 1241.63 ms | 21.04 ms |
| 93ef486 | 1220.22 ms | 1244.96 ms | 24.74 ms |
| 3bf0d3f | 1202.12 ms | 1237.23 ms | 35.11 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 21cd5ba | 24.14 KiB | 1.04 MiB | 1.02 MiB |
| adeec82 | 24.14 KiB | 1.04 MiB | 1.02 MiB |
| 41b4993 | 24.14 KiB | 1.06 MiB | 1.04 MiB |
| 2f4ddaa | 24.14 KiB | 1.04 MiB | 1.02 MiB |
| d29a425 | 24.14 KiB | 1.04 MiB | 1.02 MiB |
| 778dadf | 24.14 KiB | 1.04 MiB | 1.02 MiB |
| b87b34f | 24.14 KiB | 1.06 MiB | 1.04 MiB |
| e1e5f3b | 24.14 KiB | 1.06 MiB | 1.04 MiB |
| 93ef486 | 24.14 KiB | 1.06 MiB | 1.04 MiB |
| 3bf0d3f | 24.14 KiB | 1.04 MiB | 1.02 MiB |
📜 Description
Converted SentryNSDataSwizzling and SentryNSFileManagerSwizzling to Swift, keeping some helper in ObjC for the swizzling.
💡 Motivation and Context
Converts some classes required to unlock other conversions to Swift.
💚 How did you test it?
📝 Checklist
You have to check all boxes before merging:
sendDefaultPIIis enabled.