diff --git a/Plugin/UtilityPlugin/ProjectDescriptionHelpers/Dependency+Carthage.swift b/Plugin/UtilityPlugin/ProjectDescriptionHelpers/Dependency+Carthage.swift new file mode 100644 index 000000000..3680231db --- /dev/null +++ b/Plugin/UtilityPlugin/ProjectDescriptionHelpers/Dependency+Carthage.swift @@ -0,0 +1,10 @@ +import ProjectDescription + +public extension TargetDependency { + struct Carthage {} +} + +public extension TargetDependency.Carthage { + static let Realm = TargetDependency.external(name: "Realm") + static let RealmSwift = TargetDependency.external(name: "RealmSwift") +} diff --git a/Plugin/UtilityPlugin/ProjectDescriptionHelpers/Dependency+SPM.swift b/Plugin/UtilityPlugin/ProjectDescriptionHelpers/Dependency+SPM.swift index 9413150a3..2ad216bac 100644 --- a/Plugin/UtilityPlugin/ProjectDescriptionHelpers/Dependency+SPM.swift +++ b/Plugin/UtilityPlugin/ProjectDescriptionHelpers/Dependency+SPM.swift @@ -27,8 +27,6 @@ public extension TargetDependency.SPM { static let FirebaseAnalytics = TargetDependency.external(name: "FirebaseAnalyticsWithoutAdIdSupport") static let FirebaseCrashlytics = TargetDependency.external(name: "FirebaseCrashlytics") static let NVActivityIndicatorView = TargetDependency.external(name: "NVActivityIndicatorView") - static let Realm = TargetDependency.external(name: "Realm") - static let RealmSwift = TargetDependency.external(name: "RealmSwift") // MARK: Native SPM static let YouTubePlayerKit = TargetDependency.package(product: "YouTubePlayerKit") diff --git a/Projects/Modules/ThirdPartyLib/Project.swift b/Projects/Modules/ThirdPartyLib/Project.swift index 306340ec8..a635f570d 100644 --- a/Projects/Modules/ThirdPartyLib/Project.swift +++ b/Projects/Modules/ThirdPartyLib/Project.swift @@ -6,8 +6,8 @@ let project = Project.makeModule( name: "ThirdPartyLib", product: .framework, dependencies: [ - .SPM.Realm, - .SPM.RealmSwift, + .Carthage.Realm, + .Carthage.RealmSwift, .SPM.NaverLogin, .SPM.RxSwift, .SPM.RxMoya, diff --git a/Tuist/Dependencies.swift b/Tuist/Dependencies.swift index 3e4215977..47abf0bbc 100644 --- a/Tuist/Dependencies.swift +++ b/Tuist/Dependencies.swift @@ -1,7 +1,9 @@ import ProjectDescription let dependencies = Dependencies( - carthage: nil, + carthage: [ + .github(path: "realm/realm-swift", requirement: .upToNext("10.46.0")) + ], swiftPackageManager: SwiftPackageManagerDependencies( [ .remote(url: "https://github.com/Moya/Moya.git", requirement: .upToNextMajor(from: "15.0.3")), @@ -22,7 +24,6 @@ let dependencies = Dependencies( .remote(url: "https://github.com/cbpowell/MarqueeLabel.git", requirement: .upToNextMajor(from: "4.3.0")), .remote(url: "https://github.com/firebase/firebase-ios-sdk.git", requirement: .upToNextMajor(from: "10.7.0")), .remote(url: "https://github.com/ninjaprox/NVActivityIndicatorView.git", requirement: .upToNextMajor(from: "5.1.1")), - .remote(url: "https://github.com/realm/realm-swift", requirement: .upToNextMajor(from: "10.46.0")) ], baseSettings: .settings( configurations: [