馃摐 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
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 formatmake analyzemake build-ios FOR_AGENTS=truemake test-ios FOR_AGENTS=true ONLY_TESTING=SentryTests/SentryAppStateManagerTests,SentryTests/SentryAppStartTrackerTests,SentryTests/SentryWatchdogTerminationLogicTests,SentryTests/SentryWatchdogTerminationTrackerTests,SentryTests/SentryWatchdogTerminationIntegrationTests馃摑 Checklist
sendDefaultPIIis enabled.