Quick prompting for stuff on debug/test builds (#296)

This commit is contained in:
Max Goedjen
2021-12-31 14:59:12 -08:00
committed by GitHub
parent 6eee29e1fa
commit f249932ff2
6 changed files with 48 additions and 31 deletions

View File

@@ -5,6 +5,7 @@ import SecretKit
protocol AgentStatusCheckerProtocol: ObservableObject {
var running: Bool { get }
var developmentBuild: Bool { get }
}
class AgentStatusChecker: ObservableObject, AgentStatusCheckerProtocol {
@@ -36,6 +37,12 @@ class AgentStatusChecker: ObservableObject, AgentStatusCheckerProtocol {
return nil
}
// Whether Secretive is being run in an Xcode environment.
var developmentBuild: Bool {
Bundle.main.bundleURL.absoluteString.contains("/Library/Developer/Xcode")
}
}