Skip to content

Commit

Permalink
Merge branch 'release/0.1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
ctreffs committed Mar 26, 2020
2 parents 83fe805 + 557d67a commit 0ef7799
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Sources/Simctl/SimctlClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,11 @@ extension SimctlClient {
case .uninstallApp:
return .uninstallApp

case .setStatusBarOverrides,
.clearStatusBarOverrides:
case .setStatusBarOverrides:
return .statusBarOverrides

case .clearStatusBarOverrides:
return .statusBarOverridesClear
}
}

Expand Down
2 changes: 1 addition & 1 deletion Sources/SimctlCLI/SimctlServer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ final class SimctlServer {
/// Callback to be executed on clear status bar override request.
/// - Parameter closure: The closure to be executed.
func onClearStatusBarOverrides(_ closure: @escaping (UUID, String?) -> Result<String, Swift.Error>) {
server.GET[ServerPath.statusBarOverrides.rawValue] = { request in
server.GET[ServerPath.statusBarOverridesClear.rawValue] = { request in
guard let deviceId = request.headerValue(for: .deviceUdid, UUID.init) else {
return .badRequest(.text("Device Udid missing or corrupt."))
}
Expand Down
1 change: 1 addition & 0 deletions Sources/SimctlShared/SimctlShared.swift
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ public enum ServerPath: String {
case iCloudSync = "/simctl/iCloudSync"
case uninstallApp = "/simctl/uninstallApp"
case statusBarOverrides = "/simctl/statusBarOverrides"
case statusBarOverridesClear = "/simctl/statusBarOverridesClear"
}

/// Some permission changes will terminate the application if running.
Expand Down

0 comments on commit 0ef7799

Please sign in to comment.