Skip to content

ref: Move ThreadInspector initialization to Swift #6406

@github-actions

Description

@github-actions

Note

The pull request "ref: Move ThreadInspector initialization to Swift" was created by @noahsmartin but did not reference an issue. Therefore this issue was created for better visibility in external tools like Linear.

This moves SentryThreadInspector to a class so that it an be initialized from a Swift file. This is a prerequisite for #6274 because the FileIOTracker will also need to be initialized in Swift (and is dependent on SentryThreadInspector)

These need to be moved to the Swift file instead of SentryDependencies.m because in SPM you cannot have Swift code access a Swift type that is forward declared in an objc header. The FileIOTracker has this kind of usage - so it needs to be made accessible from somewhere other than the SentryDependencies.h header.

#skip-changelog

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions