-
-
Notifications
You must be signed in to change notification settings - Fork 341
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
29 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
Sources/SentrySwiftUI/SentryInternal/SentryTraceOrigin.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// This file is a subset of the fields defined in `Sources/Swift/Transactions/SentryTraceOrigin.swift`. | ||
// | ||
// As the main file is internal in `Sentry`, it can not be exposed to the `SentrySwiftUI` module. | ||
// This file is a workaround to expose the `SentrySpanOperation` class to the `SentrySwiftUI` module. | ||
// | ||
// ATTENTION: This file should be kept in sync with the main file. | ||
// Please add new fields or methods in the main file if possible. | ||
// | ||
// Discarded Approach 1: | ||
// - Define `@interface SentryTraceOrigin` in `SentryInternal.h` | ||
// - Swift class is exposed to Objective-C in auto-generated `Sentry-Swift.h` | ||
// - Conflict: Duplicate interface definition | ||
// | ||
// Discarded Approach 2: | ||
// - Declare Swift class `SentryTraceOrigin` in main file as `public`. | ||
// - Auto-generated `Sentry-Swift.h` is manually imported to `SentrySwift.h` | ||
// - Issue: Internal class is public for SDK users, which is not desired | ||
|
||
enum SentryTraceOrigin: String { | ||
case autoUITimeToDisplay = "auto.ui.time_to_display" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters