diff --git a/Core/Package.swift b/Core/Package.swift index b0392ee9..73e215ec 100644 --- a/Core/Package.swift +++ b/Core/Package.swift @@ -269,7 +269,7 @@ let package = Package( name: "PlusFeatureFlag", dependencies: [ ].pro([ - "LicenseManagement" + "LicenseManagement", ]) ), @@ -398,10 +398,18 @@ import Foundation func isProIncluded(file: StaticString = #file) -> Bool { let filePath = "\(file)" - let url = URL(fileURLWithPath: filePath) + let fileURL = URL(fileURLWithPath: filePath) + let rootURL = fileURL .deletingLastPathComponent() .deletingLastPathComponent() - .appendingPathComponent("Pro/Package.swift") - return FileManager.default.fileExists(atPath: url.path) + let folderURL = rootURL.appendingPathComponent("Pro") + if !FileManager.default.fileExists(atPath: folderURL.path) { + return false + } + let packageManifestURL = folderURL.appendingPathComponent("Package.swift") + if !FileManager.default.fileExists(atPath: packageManifestURL.path) { + return false + } + return true } diff --git a/Core/Sources/SuggestionWidget/ChatWindowView.swift b/Core/Sources/SuggestionWidget/ChatWindowView.swift index f64072c5..ff8f2f72 100644 --- a/Core/Sources/SuggestionWidget/ChatWindowView.swift +++ b/Core/Sources/SuggestionWidget/ChatWindowView.swift @@ -114,7 +114,7 @@ struct ChatTitleBar: View { EmptyView() } .opacity(0) - .keyboardShortcut("W", modifiers: [.command]) + .keyboardShortcut("w", modifiers: [.command]) Spacer() } diff --git a/Version.xcconfig b/Version.xcconfig index 99817aa1..ae69d64e 100644 --- a/Version.xcconfig +++ b/Version.xcconfig @@ -1,2 +1,2 @@ -APP_VERSION = 0.21.0 -APP_BUILD = 220 +APP_VERSION = 0.21.1 +APP_BUILD = 221 diff --git a/appcast.xml b/appcast.xml index fb20d4a5..37a7e2d0 100644 --- a/appcast.xml +++ b/appcast.xml @@ -3,6 +3,18 @@ Copilot for Xcode + + 0.21.1 + Sun, 13 Aug 2023 17:02:38 +0800 + 221 + 0.21.1 + 12.0 + + https://github.com/intitni/CopilotForXcode/releases/tag/0.21.1 + + + + 0.21.0 Wed, 09 Aug 2023 15:45:24 +0800