Skip to content

ref: Migrate app state manager to Swift#8734

Description

@github-actions

Note

The pull request "ref: Migrate app state manager to Swift" was created by @philprime but did not reference an issue. Therefore this issue was created for better visibility in external tools like Linear.

馃摐 Description

Migrates the private app-state lifecycle manager from Objective-C into SentryAppStateManager.

The manager now owns lifecycle notification observation and uses a composed dependency-provider interface for its crash reporter, file manager, sysctl wrapper, dispatch queue, and notification center.

馃挕 Motivation and Context

The Objective-C helper had a single consumer. Inlining its behavior keeps app-state lifecycle logic together while removing the obsolete private Objective-C header and implementation.

馃挌 How did you test it?

  • make format
  • make analyze
  • make build-ios FOR_AGENTS=true
  • make test-ios FOR_AGENTS=true ONLY_TESTING=SentryTests/SentryAppStateManagerTests,SentryTests/SentryAppStartTrackerTests,SentryTests/SentryWatchdogTerminationLogicTests,SentryTests/SentryWatchdogTerminationTrackerTests,SentryTests/SentryWatchdogTerminationIntegrationTests

馃摑 Checklist

  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.
  • Public API changes reviewed by another Mobile SDK team member or implemented according to the develop docs spec.
  • If I added a new public API, I also added it to the SentryObjC wrapper.

Metadata

Metadata

Assignees

Labels

autocreatedThis issue was created automatically by one of the workflows

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions