Skip to content

Commit

Permalink
✨ Feat: #1 - Tuist 외부 종속성 SPM대체
Browse files Browse the repository at this point in the history
  • Loading branch information
usa4060 committed Nov 30, 2023
1 parent bec8cf9 commit 80f3b21
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 40 deletions.
32 changes: 32 additions & 0 deletions .package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"pins" : [
{
"identity" : "rxgesture",
"kind" : "remoteSourceControl",
"location" : "https://github.com/RxSwiftCommunity/RxGesture",
"state" : {
"revision" : "1b137c576b4aaaab949235752278956697c9e4a0",
"version" : "4.0.4"
}
},
{
"identity" : "rxswift",
"kind" : "remoteSourceControl",
"location" : "https://github.com/ReactiveX/RxSwift",
"state" : {
"revision" : "9dcaa4b333db437b0fbfaf453fad29069044a8b4",
"version" : "6.6.0"
}
},
{
"identity" : "snapkit",
"kind" : "remoteSourceControl",
"location" : "https://github.com/SnapKit/SnapKit",
"state" : {
"revision" : "f222cbdf325885926566172f6f5f06af95473158",
"version" : "5.6.0"
}
}
],
"version" : 2
}
29 changes: 18 additions & 11 deletions DesignSystem/Resources/Project.swift
Original file line number Diff line number Diff line change
Expand Up @@ -129,22 +129,29 @@ let profile = BaseProjectProfile()
let project: Project = .init(
name: profile.projectName,
organizationName: "com.softsquared.cmc",
// settings: .settings(configurations: [
// .debug(name: "DEV"),
// .release(name: "Release")
// ]),
packages: [
.remote(
url: "https://github.com/ReactiveX/RxSwift",
requirement: .upToNextMajor(from: "6.5.0")),
.remote(
url: "https://github.com/RxSwiftCommunity/RxGesture",
requirement: .upToNextMajor(from: "4.0.0")),
.remote(
url: "https://github.com/SnapKit/SnapKit",
requirement: .upToNextMajor(from: "5.0.0"))
],
targets: profile.generateTarget()
)


extension BaseProjectProfile {
fileprivate func commonDependencies() -> [TargetDependency] {
return [
.external(name: "RxSwift"),
.external(name: "RxCocoa"),
.external(name: "RxRelay"),
.external(name: "RxGesture"),
.external(name: "SnapKit")
]
return [
.package(product: "RxSwift"),
.package(product: "RxCocoa"),
.package(product: "RxRelay"),
.package(product: "RxGesture"),
.package(product: "SnapKit")
]
}
}
21 changes: 16 additions & 5 deletions Project.swift
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,17 @@ let profile = BaseProjectProfile()
let project: Project = .init(
name: profile.projectName,
organizationName: "com.softsquared.cmc",
packages: [
.remote(
url: "https://github.com/ReactiveX/RxSwift",
requirement: .upToNextMajor(from: "6.5.0")),
.remote(
url: "https://github.com/RxSwiftCommunity/RxGesture",
requirement: .upToNextMajor(from: "4.0.0")),
.remote(
url: "https://github.com/SnapKit/SnapKit",
requirement: .upToNextMajor(from: "5.0.0"))
],
settings: .settings(configurations: [
.debug(name: "Dev"),
.release(name: "Release")
Expand All @@ -140,11 +151,11 @@ let project: Project = .init(
extension BaseProjectProfile {
fileprivate func commonDependencies() -> [TargetDependency] {
return [
.external(name: "RxSwift"),
.external(name: "RxCocoa"),
.external(name: "RxRelay"),
.external(name: "RxGesture"),
.external(name: "SnapKit")
.package(product: "RxSwift"),
.package(product: "RxCocoa"),
.package(product: "RxRelay"),
.package(product: "RxGesture"),
.package(product: "SnapKit")
]
}
}
24 changes: 0 additions & 24 deletions Tuist/Dependencies.swift

This file was deleted.

0 comments on commit 80f3b21

Please sign in to comment.