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 774ccf3 + c86f1cd commit 8a240b9
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Sources/Simctl/SimctlClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ extension SimctlClient {
return .statusBarOverrides

case .clearStatusBarOverrides:
return .statusBarOverridesClear
return .statusBarOverrides
}
}

Expand Down
2 changes: 1 addition & 1 deletion Sources/SimctlCLI/Commands.swift
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ extension ShellOutCommand {
/// Usage: simctl status_bar <device> clear
/// - Parameter device: The device Udid
static func simctlClearStatusBarOverrides(device: UUID) -> ShellOutCommand {
.init(string: "status_bar \(device.uuidString) clear")
.init(string: simctl("status_bar \(device.uuidString) clear"))
}

/// Set status bar overrides
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.statusBarOverridesClear.rawValue] = { request in
server.GET[ServerPath.statusBarOverrides.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: 0 additions & 1 deletion Sources/SimctlShared/SimctlShared.swift
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ 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
Binary file modified bin/SimctlCLI
Binary file not shown.

0 comments on commit 8a240b9

Please sign in to comment.