@@ -43,12 +43,11 @@ let package = Package(
4343 . package ( url: " https://github.com/ChimeHQ/LanguageClient " , exact: " 0.3.1 " ) ,
4444 . package ( url: " https://github.com/ChimeHQ/LanguageServerProtocol " , exact: " 0.8.0 " ) ,
4545 . package ( url: " https://github.com/apple/swift-async-algorithms " , from: " 0.1.0 " ) ,
46- . package ( url: " https://github.com/raspu/Highlightr " , from: " 2.1.0 " ) ,
47- . package ( url: " https://github.com/JohnSundell/Splash " , branch: " master " ) ,
4846 . package ( url: " https://github.com/gonzalezreal/swift-markdown-ui " , from: " 2.1.0 " ) ,
4947 . package ( url: " https://github.com/sparkle-project/Sparkle " , from: " 2.0.0 " ) ,
5048 . package ( url: " https://github.com/kishikawakatsumi/KeychainAccess " , from: " 4.2.2 " ) ,
5149 . package ( url: " https://github.com/pointfreeco/swift-parsing " , from: " 0.12.1 " ) ,
50+ . package ( url: " https://github.com/pointfreeco/swift-dependencies " , from: " 0.5.1 " ) ,
5251 . package (
5352 url: " https://github.com/pointfreeco/swift-composable-architecture " ,
5453 from: " 0.55.0 "
@@ -90,6 +89,7 @@ let package = Package(
9089 . product( name: " Preferences " , package : " Tool " ) ,
9190 . product( name: " AsyncAlgorithms " , package : " swift-async-algorithms " ) ,
9291 . product( name: " ComposableArchitecture " , package : " swift-composable-architecture " ) ,
92+ . product( name: " Dependencies " , package : " swift-dependencies " ) ,
9393 ] . pro ( [
9494 " ProChatTabs " ,
9595 ] )
@@ -209,8 +209,8 @@ let package = Package(
209209 . target(
210210 name: " ChatGPTChatTab " ,
211211 dependencies: [
212- " SharedUIComponents " ,
213212 " ChatService " ,
213+ . product( name: " SharedUIComponents " , package : " Tool " ) ,
214214 . product( name: " OpenAIService " , package : " Tool " ) ,
215215 . product( name: " Logger " , package : " Tool " ) ,
216216 . product( name: " ChatTab " , package : " Tool " ) ,
@@ -220,22 +220,12 @@ let package = Package(
220220
221221 // MARK: - UI
222222
223- . target(
224- name: " SharedUIComponents " ,
225- dependencies: [
226- " Highlightr " ,
227- " Splash " ,
228- . product( name: " Preferences " , package : " Tool " ) ,
229- ]
230- ) ,
231- . testTarget( name: " SharedUIComponentsTests " , dependencies: [ " SharedUIComponents " ] ) ,
232-
233223 . target(
234224 name: " SuggestionWidget " ,
235225 dependencies: [
236226 " ChatGPTChatTab " ,
237227 " UserDefaultsObserver " ,
238- " SharedUIComponents " ,
228+ . product ( name : " SharedUIComponents " , package : " Tool " ) ,
239229 . product( name: " AppMonitoring " , package : " Tool " ) ,
240230 . product( name: " Environment " , package : " Tool " ) ,
241231 . product( name: " ChatTab " , package : " Tool " ) ,
0 commit comments