File tree 3 files changed +33
-3
lines changed
3 files changed +33
-3
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ func customCommands() -> [[XCSourceEditorCommandDefinitionKey: Any]] {
79
79
[
80
80
XCSourceEditorCommandDefinitionKey . classNameKey: CustomCommand . className ( ) ,
81
81
XCSourceEditorCommandDefinitionKey
82
- . identifierKey: identifierPrefix + " CustomCommand \( $0. name. hashValue ) " ,
82
+ . identifierKey: identifierPrefix + " CustomCommand \( $0. name. sha1HexString ) " ,
83
83
. nameKey: $0. name,
84
84
]
85
85
}
@@ -94,3 +94,21 @@ func customCommands() -> [[XCSourceEditorCommandDefinitionKey: Any]] {
94
94
95
95
return definitions
96
96
}
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 3
3
<channel >
4
4
<title >Copilot for Xcode</title >
5
5
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
+
6
18
<item >
7
19
<title >0.13.1</title >
8
20
<pubDate >Sat, 22 Apr 2023 23:07:44 +0800</pubDate >
You can’t perform that action at this time.
0 commit comments