Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions DevCycle/Models/UserConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,11 @@ public struct EvalReason {
return EvalReason(reason: "DEFAULT", details: details)
}

public static func openFeatureEvalReason(reason: String) -> EvalReason {
return EvalReason(reason: reason, details: "")
#if DEBUG
Copy link
Member

Choose a reason for hiding this comment

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

is there not #if TEST?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

not built in, it would require a custom implementation. Using #if DEBUG is recommend, since it works for all Debug builds (and is automatically set as part of the build stages in Xcode / command line)

public static func createOFEvalReason(reason: String) -> EvalReason {
return EvalReason(reason: reason, details: "OpenFeature Testing")
}
#endif
}

public typealias EvalMetaData = [String: Any]
Expand Down
Loading