Bump to sentry-cocoa 10

Đang mở
#5,972 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
csharp, ios, objective-c

Hướng nghiên cứu

Start with the dependency update PR at deps/modules/sentry-cocoa, then read scripts/patch-cocoa-bindings.cs, the Cocoa and Android ApplyDataCollection implementations, and integration-test/ios.Tests.ps1. Check the API and defaults against sentry-cocoa's CHANGELOG_V10.md and develop-docs/KSCRASH_DOWNSTREAM_AUDIT.md for the released version. Done means resolving each listed API, crash behavior, and default decision, then raising SentryCocoaSupportedMajor to 10 and shipping in a .NET major.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Platform: Cocoa State: Needs Discussion

sentry-cocoa 10 isn't released yet. When it is, the dependency-update workflow opens a deps/modules/sentry-cocoa PR for it. That PR will fail to build: Sentry.Bindings.Cocoa stops when the submodule's major doesn't match SentryCocoaSupportedMajor, which is 9 (#5960). Do the steps below on that PR, then raise SentryCocoaSupportedMajor to 10. A new Cocoa major breaks the .NET SDK too, so it ships in a .NET major.

The list comes from the V10 build of sentry-cocoa 9.35.0 (SDK_V10), before 10.0 was released. Check it against sentry-cocoa's CHANGELOG_V10.md and develop-docs/KSCRASH_DOWNSTREAM_AUDIT.md at the released version.

Data collection

sendDefaultPii is gone, replaced by dataCollection. #5960 closes #5436 by forwarding only UserInfo, because 9.x has nothing else to map onto.

  • Add SentryObjCDataCollection* to KeepInterfaces in scripts/patch-cocoa-bindings.cs. Don't drop SentryObjCOptions.DataCollection with RemoveProperty.
  • In the Cocoa SentrySdk.ApplyDataCollection, map the resolved DataCollection onto nativeOptions.DataCollection, as DataCollectionExtensions.ApplyTo does on Android. Cocoa has no GraphQL category.
  • Always set UserInfo, even when DataCollection isn't configured. Cocoa's userInfo defaults to true, so leaving it unset turns on IP inference and the installation-ID user for apps with SendDefaultPii = false.
Other API changes
  • crashedLastRun and onCrashedLastRun are gone. Use lastRunStatus and onLastRunStatusDetermined, which 9.x already has.
  • enableAppHangTracking is gone, with no replacement, so SentryOptions.Native.EnableAppHangTracking needs a decision.
  • Session Replay's maskAllText and maskAllImages move to options.privacy.
  • SentryObjCBreadcrumb.data is read-only. ToCocoaBreadcrumb has to set each value with setDataValue:forKey:.
KSCrash
  • KSCrash replaces SentryCrash. Keep scripts/sentry-cocoa.xcconfig, because KSCrash's managed signal handling still reads SENTRY_CRASH_MANAGED_RUNTIME.
  • Run the crash cases in integration-test/ios.Tests.ps1. sentry-cocoa found duplicate SIGABRT events and spurious EXC_BAD_ACCESS events for .NET (getsentry/sentry-cocoa#8797).
Changed defaults

For each, decide whether to keep Cocoa's new default or set the 9.x one:

  • MetricKit (see #5950)
  • Scope persistence (see #5929)
  • The installation ID as the fallback user ID
  • File manager swizzling
Ngôn ngữ chính
C#
Star
775
Fork
262
Merge trung bình
1 ngày 16 giờ
Pull request đã merge (30 ngày)
118

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của getsentry/sentry-dotnet

Tất cả issue của getsentry/sentry-dotnet

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.