File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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+ }
Original file line number Diff line number Diff line change 1- APP_VERSION = 0.13.1
2- APP_BUILD = 105
1+ APP_VERSION = 0.13.2
2+ APP_BUILD = 106
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments