Skip to content

Commit

Permalink
Fix Example project
Browse files Browse the repository at this point in the history
  • Loading branch information
bradfol committed Aug 21, 2024
1 parent b643805 commit bdbbce5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 23 deletions.
Original file line number Diff line number Diff line change
@@ -1,24 +1,6 @@
{
"originHash" : "34fd4e568c3aa20d73aa77d14541b56e3bbf5fe47ce50cdb20bb9b76b3b2ea74",
"pins" : [
{
"identity" : "swift-argument-parser",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-argument-parser",
"state" : {
"revision" : "0fbc8848e389af3bb55c182bc19ca9d5dc2f255b",
"version" : "1.4.0"
}
},
{
"identity" : "swift-syntax",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-syntax.git",
"state" : {
"revision" : "303e5c5c36d6a558407d364878df131c3546fad8",
"version" : "510.0.2"
}
},
{
"identity" : "swinject",
"kind" : "remoteSourceControl",
Expand All @@ -33,8 +15,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/Swinject/SwinjectAutoregistration.git",
"state" : {
"revision" : "89f9357680ed65dbc95b66732fe3338aca79064a",
"version" : "2.8.4"
"revision" : "fd9ffae5f666d37b4b3c210af2e16a10598342e4",
"version" : "2.9.1"
}
}
],
Expand Down
6 changes: 5 additions & 1 deletion Example/KnitExample/KnitExampleAssembly.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ import Foundation
import Knit

// @knit internal
final class KnitExampleAssembly: Assembly {
final class KnitExampleAssembly: ModuleAssembly {

typealias TargetResolver = Resolver

static var dependencies: [any ModuleAssembly.Type] { [] }

func assemble(container: Container) {
container.addBehavior(ServiceCollector())
Expand Down
4 changes: 2 additions & 2 deletions Example/bootstrap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
cd ..
cd ../CLI
swift build --arch x86_64 --arch arm64 --product knit-cli
mv .build/apple/Products/Debug/knit-cli Example/
mv .build/apple/Products/Debug/knit-cli ../Example/

0 comments on commit bdbbce5

Please sign in to comment.