Skip to content

Commit eb4d3d8

Browse files
committed
Merge branch 'release/0.13.2'
2 parents 0f6d469 + b6f4acb commit eb4d3d8

File tree

3 files changed

+33
-3
lines changed

3 files changed

+33
-3
lines changed

EditorExtension/SourceEditorExtension.swift

+19-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func customCommands() -> [[XCSourceEditorCommandDefinitionKey: Any]] {
7979
[
8080
XCSourceEditorCommandDefinitionKey.classNameKey: CustomCommand.className(),
8181
XCSourceEditorCommandDefinitionKey
82-
.identifierKey: identifierPrefix + "CustomCommand\($0.name.hashValue)",
82+
.identifierKey: identifierPrefix + "CustomCommand\($0.name.sha1HexString)",
8383
.nameKey: $0.name,
8484
]
8585
}
@@ -94,3 +94,21 @@ func customCommands() -> [[XCSourceEditorCommandDefinitionKey: Any]] {
9494

9595
return definitions
9696
}
97+
98+
import CryptoKit
99+
100+
// CryptoKit.Digest utils
101+
extension Digest {
102+
var bytes: [UInt8] { Array(makeIterator()) }
103+
var data: Data { Data(bytes) }
104+
105+
var hexStr: String {
106+
bytes.map { String(format: "%02X", $0) }.joined()
107+
}
108+
}
109+
110+
extension String {
111+
var sha1HexString: String {
112+
Insecure.SHA1.hash(data: data(using: .utf8) ?? Data()).hexStr
113+
}
114+
}

Version.xcconfig

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
APP_VERSION = 0.13.1
2-
APP_BUILD = 105
1+
APP_VERSION = 0.13.2
2+
APP_BUILD = 106

appcast.xml

+12
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.13.2</title>
8+
<pubDate>Sun, 23 Apr 2023 18:03:30 +0800</pubDate>
9+
<sparkle:version>106</sparkle:version>
10+
<sparkle:shortVersionString>0.13.2</sparkle:shortVersionString>
11+
<sparkle:minimumSystemVersion>12.0</sparkle:minimumSystemVersion>
12+
<sparkle:releaseNotesLink>
13+
https://github.com/intitni/CopilotForXcode/releases/tag/0.13.2
14+
</sparkle:releaseNotesLink>
15+
<enclosure url="https://github.com/intitni/CopilotForXcode/releases/download/0.13.2/Copilot.for.Xcode.app.zip" length="20097678" type="application/octet-stream" sparkle:edSignature="S24JlT75iDd2Ovxbscwtqqgolcwfe5xymzjfbg2k3U3ZYjLH/3uFWp5RN5zyqWzCGsv4bIzWtY/JBHW2MlkQDg=="/>
16+
</item>
17+
618
<item>
719
<title>0.13.1</title>
820
<pubDate>Sat, 22 Apr 2023 23:07:44 +0800</pubDate>

0 commit comments

Comments
 (0)