Skip to content

chore(deps): update Cocoa SDK to v9.27.0 - #5539

Open
github-actions[bot] wants to merge 2 commits into
mainfrom
deps/modules/sentry-cocoa
Open

chore(deps): update Cocoa SDK to v9.27.0#5539
github-actions[bot] wants to merge 2 commits into
mainfrom
deps/modules/sentry-cocoa

Conversation

@github-actions

@github-actions github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Bumps modules/sentry-cocoa from 9.26.1 to 9.27.0.

Auto-generated by a dependency updater.

Changelog

9.27.0

Note

enableLogs and enableMetrics are now deprecated and will be removed in the next major version. Manual log and metric capture is no longer gated by these flags.

Improvements

  • Install idle Session Replay recovery infrastructure at zero sample rates. (#8865)
  • Manual log and metrics APIs are no longer gated by behind enableLogs / enableMetrics (#8918)

Features

  • Add manual Session Replay controls through SentrySDK.replay. (#8868)
    • Explicit start() and startBuffering() calls bypass the configured replay sample rates; sampling still controls automatic startup.
    • start() starts a full-session replay and does nothing if one is already recording.
    • startBuffering() keeps a rolling buffer that is sent on flush() or an error, then continues in session mode.
    • stop() ends the current replay; the next start() creates a new replay session.
    • pause() suspends recording until resume() and remains paused across background and foreground transitions and automatic replay restarts in the same process.
    • resume() continues the same manually paused replay.
    • flush() sends the current replay data to Sentry, or starts a full-session replay when recording is stopped.

Improvements

  • Install idle Session Replay recovery infrastructure at zero sample rates. (#8865)

Features

  • Copy app.vitals.start.type and app.vitals.start.screen onto standalone app.start children, including app.start.extended and user descendants (#8888)
  • Add maxFeatureFlags option to configure how many feature flag evaluations the scope retains, matching sentry-java. Defaults to 100 (#8858)
  • Add SentrySDK.internal.envelope.captureNonTerminating for hybrid SDKs, which keeps the current session running and reports it with the unhandled status when an unhandled exception doesn't terminate the process (#8654)
  • Add SentrySDK.internal.envelope.updateSessionForDroppedEventNonTerminating so hybrid SDKs can update the native session when an error is dropped by sampling, without sending an envelope (#8907)

Fixes

  • Silence spurious ERROR log in SentryCrashCxaThrowSwapper for empty sections (#8915)
  • Stop recording touch events while Session Replay is paused. (#8887)

Internal

  • Add visionOS support to internal screen APIs (#8913)

@github-actions github-actions Bot added the Dependencies Pull requests that update a dependency file label Sep 4, 2026
@bruno-garcia
bruno-garcia force-pushed the deps/modules/sentry-cocoa branch from 13a3706 to 86496c4 Compare September 4, 2026 03:01
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Sep 4, 2026
@codecov

codecov Bot commented Sep 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.71%. Comparing base (6c51ea5) to head (7d1a658).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5539      +/-   ##
==========================================
- Coverage   74.72%   74.71%   -0.01%     
==========================================
  Files         515      515              
  Lines       18948    18948              
  Branches     3696     3696              
==========================================
- Hits        14158    14157       -1     
- Misses       3906     3908       +2     
+ Partials      884      883       -1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bruno-garcia
bruno-garcia force-pushed the deps/modules/sentry-cocoa branch from 86496c4 to 4a393db Compare September 5, 2026 03:01
Comment on lines +1762 to +1764
// -(SentryObjCScope * _Nonnull)createScope;
[Export("createScope")]
SentryObjCScope CreateScope { get; }

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Bug: The createScope factory method is incorrectly bound as a C# property, which is semantically misleading as properties are expected to be idempotent.
Severity: LOW

Suggested Fix

Convert the CreateScope property back into a method in ApiDefinitions.cs. This can be done by changing the binding from SentryObjCScope CreateScope { get; } to SentryObjCScope CreateScope();. Consider updating the patch-cocoa-bindings.cs script to include CreateScope in the PropertyToMethod conversions for consistency.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent. Verify if this is a real issue. If it is, propose a fix; if not, explain why it's
not valid.

Location: src/Sentry.Bindings.Cocoa/ApiDefinitions.cs#L1762-L1764

Potential issue: The Objective-C method `createScope` is bound as a C# property
`CreateScope`. The name implies it's a factory method that creates a new scope object on
each invocation. However, C# conventions suggest properties should be idempotent or
return a cached value. This semantic mismatch could lead future developers to
incorrectly assume the property returns the same scope object, potentially causing
subtle bugs in scope management if the property value is cached. Other similar methods
in the codebase were explicitly converted to methods, suggesting this was an oversight.

Did we get this right? 👍 / 👎 to inform future reviews.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dependencies Pull requests that update a dependency file risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants