Skip to content

Commit

Permalink
Migrate Realm from Apple SPM to Tuist dependency manager
Browse files Browse the repository at this point in the history
  • Loading branch information
dogo committed May 4, 2024
1 parent 6c11580 commit f520aa4
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 42 deletions.
23 changes: 0 additions & 23 deletions .package.resolved

This file was deleted.

4 changes: 0 additions & 4 deletions Project.swift
Expand Up @@ -12,10 +12,6 @@ let project = Project(
name: "swdestiny-trades",
organizationName: "Diogo Autilio",
options: options,
packages: [
.remote(url: "https://github.com/realm/realm-swift",
requirement: .upToNextMajor(from: "10.42.0"))
],
settings: Project.settings(),
targets: Project.targets(),
schemes: Project.schemes(),
Expand Down
18 changes: 18 additions & 0 deletions Tuist/Package.resolved
Expand Up @@ -180,6 +180,24 @@
"version" : "2.3.1"
}
},
{
"identity" : "realm-core",
"kind" : "remoteSourceControl",
"location" : "https://github.com/realm/realm-core.git",
"state" : {
"revision" : "a5e87a39cffdcc591f3203c11cfca68100d0b9a6",
"version" : "13.26.0"
}
},
{
"identity" : "realm-swift",
"kind" : "remoteSourceControl",
"location" : "https://github.com/realm/realm-swift",
"state" : {
"revision" : "eafdd3720a8cc750bdd38bf776082d2c8cf743fc",
"version" : "10.46.0"
}
},
{
"identity" : "sdwebimage",
"kind" : "remoteSourceControl",
Expand Down
3 changes: 2 additions & 1 deletion Tuist/Package.swift
Expand Up @@ -27,6 +27,7 @@ let package = Package(
.package(url: "https://github.com/zvonicek/ImageSlideshow", from: "1.9.1"),
.package(url: "https://github.com/firebase/firebase-ios-sdk", from: "10.20.0"),
.package(url: "https://github.com/SwiftKickMobile/SwiftMessages", from: "10.0.0-beta"),
.package(url: "https://github.com/uber/ios-snapshot-test-case", from: "8.0.0")
.package(url: "https://github.com/uber/ios-snapshot-test-case", from: "8.0.0"),
.package(url: "https://github.com/realm/realm-swift", exact: "10.46.0")
]
)
17 changes: 3 additions & 14 deletions Tuist/ProjectDescriptionHelpers/Target.swift
Expand Up @@ -34,9 +34,8 @@ public extension Project {
.external(name: "PKHUD"),
.external(name: "SketchKit"),
.external(name: "SwiftMessages"),
.package(product: "RealmSwift")
],
settings: Settings.default
.external(name: "RealmSwift")
]
),
.target(
name: "SWDestinyTradesTests",
Expand All @@ -51,19 +50,9 @@ public extension Project {
],
dependencies: [
.target(name: "SWDestinyTrades"),
.external(name: "iOSSnapshotTestCase"),
.package(product: "Realm") // Fix unit test linkage issue
.external(name: "iOSSnapshotTestCase")
]
)
]
}
}

public extension Settings {

static let `default`: Settings = .settings(
base: SettingsDictionary().otherLinkerFlags(["-ObjC"]),
configurations: [],
defaultSettings: .recommended
)
}

0 comments on commit f520aa4

Please sign in to comment.