Skip to content

Commit c861bc3

Browse files
committed
Merge branch 'hotfix/0.21.1'
2 parents 129c449 + 9be5fb6 commit c861bc3

4 files changed

Lines changed: 27 additions & 7 deletions

File tree

Core/Package.swift

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ let package = Package(
269269
name: "PlusFeatureFlag",
270270
dependencies: [
271271
].pro([
272-
"LicenseManagement"
272+
"LicenseManagement",
273273
])
274274
),
275275

@@ -398,10 +398,18 @@ import Foundation
398398

399399
func isProIncluded(file: StaticString = #file) -> Bool {
400400
let filePath = "\(file)"
401-
let url = URL(fileURLWithPath: filePath)
401+
let fileURL = URL(fileURLWithPath: filePath)
402+
let rootURL = fileURL
402403
.deletingLastPathComponent()
403404
.deletingLastPathComponent()
404-
.appendingPathComponent("Pro/Package.swift")
405-
return FileManager.default.fileExists(atPath: url.path)
405+
let folderURL = rootURL.appendingPathComponent("Pro")
406+
if !FileManager.default.fileExists(atPath: folderURL.path) {
407+
return false
408+
}
409+
let packageManifestURL = folderURL.appendingPathComponent("Package.swift")
410+
if !FileManager.default.fileExists(atPath: packageManifestURL.path) {
411+
return false
412+
}
413+
return true
406414
}
407415

Core/Sources/SuggestionWidget/ChatWindowView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ struct ChatTitleBar: View {
114114
EmptyView()
115115
}
116116
.opacity(0)
117-
.keyboardShortcut("W", modifiers: [.command])
117+
.keyboardShortcut("w", modifiers: [.command])
118118

119119
Spacer()
120120
}

Version.xcconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
APP_VERSION = 0.21.0
2-
APP_BUILD = 220
1+
APP_VERSION = 0.21.1
2+
APP_BUILD = 221

appcast.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@
33
<channel>
44
<title>Copilot for Xcode</title>
55

6+
<item>
7+
<title>0.21.1</title>
8+
<pubDate>Sun, 13 Aug 2023 17:02:38 +0800</pubDate>
9+
<sparkle:version>221</sparkle:version>
10+
<sparkle:shortVersionString>0.21.1</sparkle:shortVersionString>
11+
<sparkle:minimumSystemVersion>12.0</sparkle:minimumSystemVersion>
12+
<sparkle:releaseNotesLink>
13+
https://github.com/intitni/CopilotForXcode/releases/tag/0.21.1
14+
</sparkle:releaseNotesLink>
15+
<enclosure url="https://github.com/intitni/CopilotForXcode/releases/download/0.21.1/Copilot.for.Xcode.app.zip" length="31114478" type="application/octet-stream" sparkle:edSignature="5sy6qTLc/NidIemMn2jftJKPMlXNJWbqhghXDzLvk2j9zsBI6xtoG6xIWBYBtBtwoQcZZtG4cwn2VDl5c5YGBw=="/>
16+
</item>
17+
618
<item>
719
<title>0.21.0</title>
820
<pubDate>Wed, 09 Aug 2023 15:45:24 +0800</pubDate>

0 commit comments

Comments
 (0)