2020-04-21 18:24:45 +08:00
|
|
|
// swift-tools-version:5.1
|
2018-04-16 17:01:02 +08:00
|
|
|
|
|
|
|
import PackageDescription
|
|
|
|
|
|
|
|
let package = Package(
|
2018-07-23 19:59:52 +08:00
|
|
|
name: "tuist",
|
2020-02-10 03:17:28 +08:00
|
|
|
platforms: [.macOS(.v10_12)],
|
2018-06-24 21:22:19 +08:00
|
|
|
products: [
|
2018-07-23 19:59:52 +08:00
|
|
|
.executable(name: "tuist", targets: ["tuist"]),
|
|
|
|
.executable(name: "tuistenv", targets: ["tuistenv"]),
|
2018-06-24 21:22:19 +08:00
|
|
|
.library(name: "ProjectDescription",
|
|
|
|
type: .dynamic,
|
2018-06-26 13:47:42 +08:00
|
|
|
targets: ["ProjectDescription"]),
|
2019-02-18 23:40:47 +08:00
|
|
|
|
2019-02-16 15:34:07 +08:00
|
|
|
/// TuistGenerator
|
|
|
|
///
|
|
|
|
/// A high level Xcode generator library
|
|
|
|
/// responsible for generating Xcode projects & workspaces.
|
|
|
|
///
|
|
|
|
/// This library can be used in external tools that wish to
|
|
|
|
/// leverage Tuist's Xcode generation features.
|
|
|
|
///
|
|
|
|
/// Note: This library should be treated as **unstable** as
|
|
|
|
/// it is still under development and may include breaking
|
|
|
|
/// changes in future releases.
|
|
|
|
.library(name: "TuistGenerator",
|
|
|
|
targets: ["TuistGenerator"]),
|
2018-06-24 21:22:19 +08:00
|
|
|
],
|
2018-04-16 17:01:02 +08:00
|
|
|
dependencies: [
|
2020-06-03 17:34:30 +08:00
|
|
|
.package(url: "https://github.com/tuist/XcodeProj", .upToNextMajor(from: "7.11.0")),
|
2019-11-23 01:43:56 +08:00
|
|
|
.package(url: "https://github.com/IBM-Swift/BlueSignals", .upToNextMajor(from: "1.0.21")),
|
2019-12-07 21:27:18 +08:00
|
|
|
.package(url: "https://github.com/ReactiveX/RxSwift.git", .upToNextMajor(from: "5.0.1")),
|
2019-12-08 00:04:02 +08:00
|
|
|
.package(url: "https://github.com/rnine/Checksum.git", .upToNextMajor(from: "1.0.2")),
|
2020-02-10 03:17:28 +08:00
|
|
|
.package(url: "https://github.com/apple/swift-log.git", .upToNextMajor(from: "1.2.0")),
|
2020-06-05 19:30:13 +08:00
|
|
|
.package(url: "https://github.com/thii/xcbeautify.git", .upToNextMajor(from: "0.8.0")),
|
2020-03-15 16:32:14 +08:00
|
|
|
.package(url: "https://github.com/krzyzanowskim/CryptoSwift", .upToNextMajor(from: "1.3.0")),
|
2020-03-20 23:20:47 +08:00
|
|
|
.package(url: "https://github.com/stencilproject/Stencil", .branch("master")),
|
2020-03-23 00:29:17 +08:00
|
|
|
.package(url: "https://github.com/kishikawakatsumi/KeychainAccess.git", .upToNextMajor(from: "4.1.0")),
|
|
|
|
.package(url: "https://github.com/httpswift/swifter.git", .upToNextMajor(from: "1.4.7")),
|
2020-04-17 14:24:24 +08:00
|
|
|
.package(url: "https://github.com/apple/swift-tools-support-core", .upToNextMinor(from: "0.1.1")),
|
2020-06-05 19:30:13 +08:00
|
|
|
.package(url: "https://github.com/apple/swift-argument-parser", .exact("0.0.4")),
|
2018-06-26 13:47:42 +08:00
|
|
|
],
|
2018-04-16 17:01:02 +08:00
|
|
|
targets: [
|
2019-11-17 23:21:48 +08:00
|
|
|
.target(
|
|
|
|
name: "TuistCore",
|
2020-04-21 22:49:31 +08:00
|
|
|
dependencies: ["SwiftToolsSupport-auto", "TuistSupport", "XcodeProj"]
|
2019-11-17 23:21:48 +08:00
|
|
|
),
|
|
|
|
.target(
|
|
|
|
name: "TuistCoreTesting",
|
2020-02-14 15:45:37 +08:00
|
|
|
dependencies: ["TuistCore", "TuistSupportTesting"]
|
2019-11-17 23:21:48 +08:00
|
|
|
),
|
|
|
|
.testTarget(
|
|
|
|
name: "TuistCoreTests",
|
|
|
|
dependencies: ["TuistCore", "TuistCoreTesting", "TuistSupportTesting"]
|
|
|
|
),
|
|
|
|
.testTarget(
|
|
|
|
name: "TuistCoreIntegrationTests",
|
|
|
|
dependencies: ["TuistCore", "TuistSupportTesting"]
|
|
|
|
),
|
2018-06-24 20:57:33 +08:00
|
|
|
.target(
|
2018-07-23 19:59:52 +08:00
|
|
|
name: "TuistKit",
|
2020-04-21 22:49:31 +08:00
|
|
|
dependencies: ["XcodeProj", "SwiftToolsSupport-auto", "ArgumentParser", "TuistSupport", "TuistGenerator", "TuistCache", "TuistAutomation", "ProjectDescription", "Signals", "RxSwift", "RxBlocking", "Checksum", "TuistLoader", "TuistInsights", "TuistScaffold", "TuistSigning", "TuistCloud"]
|
2018-09-05 00:39:51 +08:00
|
|
|
),
|
2018-06-24 20:57:33 +08:00
|
|
|
.testTarget(
|
2018-07-23 19:59:52 +08:00
|
|
|
name: "TuistKitTests",
|
2020-06-05 19:30:13 +08:00
|
|
|
dependencies: ["TuistKit", "TuistAutomation", "TuistSupportTesting", "TuistCoreTesting", "ProjectDescription", "RxBlocking", "TuistLoaderTesting", "TuistCacheTesting", "TuistGeneratorTesting", "TuistScaffoldTesting", "TuistCloudTesting", "TuistAutomationTesting"]
|
2018-09-05 00:39:51 +08:00
|
|
|
),
|
2019-10-10 17:28:51 +08:00
|
|
|
.testTarget(
|
|
|
|
name: "TuistKitIntegrationTests",
|
2020-03-22 02:21:55 +08:00
|
|
|
dependencies: ["TuistKit", "TuistCoreTesting", "TuistSupportTesting", "ProjectDescription", "RxBlocking", "TuistLoaderTesting", "TuistCloudTesting"]
|
2019-10-10 17:28:51 +08:00
|
|
|
),
|
2018-06-24 18:02:00 +08:00
|
|
|
.target(
|
2018-07-23 19:59:52 +08:00
|
|
|
name: "tuist",
|
2020-02-20 15:56:50 +08:00
|
|
|
dependencies: ["TuistKit", "ProjectDescription"]
|
2018-09-05 00:39:51 +08:00
|
|
|
),
|
2018-07-02 15:55:59 +08:00
|
|
|
.target(
|
2018-07-23 19:59:52 +08:00
|
|
|
name: "TuistEnvKit",
|
2020-04-21 22:49:31 +08:00
|
|
|
dependencies: ["ArgumentParser", "SwiftToolsSupport-auto", "TuistSupport", "RxSwift", "RxBlocking"]
|
2018-09-05 00:39:51 +08:00
|
|
|
),
|
2018-07-02 15:55:59 +08:00
|
|
|
.testTarget(
|
2018-07-23 19:59:52 +08:00
|
|
|
name: "TuistEnvKitTests",
|
2019-11-01 15:35:06 +08:00
|
|
|
dependencies: ["TuistEnvKit", "TuistSupportTesting"]
|
2018-09-05 00:39:51 +08:00
|
|
|
),
|
2018-06-24 18:02:00 +08:00
|
|
|
.target(
|
2018-07-23 19:59:52 +08:00
|
|
|
name: "tuistenv",
|
2018-09-05 00:39:51 +08:00
|
|
|
dependencies: ["TuistEnvKit"]
|
|
|
|
),
|
2018-06-24 18:02:00 +08:00
|
|
|
.target(
|
|
|
|
name: "ProjectDescription",
|
2018-09-05 00:39:51 +08:00
|
|
|
dependencies: []
|
|
|
|
),
|
2018-04-16 17:01:02 +08:00
|
|
|
.testTarget(
|
|
|
|
name: "ProjectDescriptionTests",
|
2019-11-01 15:35:06 +08:00
|
|
|
dependencies: ["ProjectDescription", "TuistSupportTesting"]
|
2018-09-05 00:39:51 +08:00
|
|
|
),
|
2018-10-12 14:20:39 +08:00
|
|
|
.target(
|
2019-11-01 15:35:06 +08:00
|
|
|
name: "TuistSupport",
|
2020-04-21 22:49:31 +08:00
|
|
|
dependencies: ["SwiftToolsSupport-auto", "RxSwift", "RxRelay", "Logging", "KeychainAccess", "Swifter", "Signals"]
|
2018-10-12 14:20:39 +08:00
|
|
|
),
|
|
|
|
.target(
|
2019-11-01 15:35:06 +08:00
|
|
|
name: "TuistSupportTesting",
|
2020-04-21 22:49:31 +08:00
|
|
|
dependencies: ["TuistSupport", "SwiftToolsSupport-auto"]
|
2018-10-12 14:20:39 +08:00
|
|
|
),
|
|
|
|
.testTarget(
|
2019-11-01 15:35:06 +08:00
|
|
|
name: "TuistSupportTests",
|
2019-12-17 17:30:59 +08:00
|
|
|
dependencies: ["TuistSupport", "TuistSupportTesting", "RxBlocking"]
|
2018-10-12 14:20:39 +08:00
|
|
|
),
|
2019-12-09 04:48:47 +08:00
|
|
|
.testTarget(
|
|
|
|
name: "TuistSupportIntegrationTests",
|
|
|
|
dependencies: ["TuistSupport", "TuistSupportTesting", "RxBlocking"]
|
|
|
|
),
|
2019-02-16 15:34:07 +08:00
|
|
|
.target(
|
|
|
|
name: "TuistGenerator",
|
2020-04-21 22:49:31 +08:00
|
|
|
dependencies: ["XcodeProj", "SwiftToolsSupport-auto", "TuistCore", "TuistSupport"]
|
2019-02-16 15:34:07 +08:00
|
|
|
),
|
2020-03-02 16:58:05 +08:00
|
|
|
.target(
|
|
|
|
name: "TuistGeneratorTesting",
|
|
|
|
dependencies: ["TuistGenerator", "TuistCoreTesting", "TuistSupportTesting"]
|
|
|
|
),
|
2019-02-16 15:34:07 +08:00
|
|
|
.testTarget(
|
|
|
|
name: "TuistGeneratorTests",
|
2020-03-02 16:58:05 +08:00
|
|
|
dependencies: ["TuistGenerator", "TuistSupportTesting", "TuistCoreTesting", "TuistGeneratorTesting"]
|
2019-02-16 15:34:07 +08:00
|
|
|
),
|
2019-10-29 20:34:02 +08:00
|
|
|
.testTarget(
|
|
|
|
name: "TuistGeneratorIntegrationTests",
|
2020-03-11 23:45:52 +08:00
|
|
|
dependencies: ["TuistGenerator", "TuistSupportTesting", "TuistCoreTesting", "TuistGeneratorTesting"]
|
2019-10-29 20:34:02 +08:00
|
|
|
),
|
2019-12-19 22:42:10 +08:00
|
|
|
.target(
|
2020-02-07 13:33:59 +08:00
|
|
|
name: "TuistCache",
|
2020-04-21 22:49:31 +08:00
|
|
|
dependencies: ["XcodeProj", "SwiftToolsSupport-auto", "TuistCore", "TuistSupport", "Checksum", "RxSwift"]
|
2019-12-19 22:42:10 +08:00
|
|
|
),
|
|
|
|
.testTarget(
|
2020-02-07 13:33:59 +08:00
|
|
|
name: "TuistCacheTests",
|
2020-04-03 21:37:00 +08:00
|
|
|
dependencies: ["TuistCache", "TuistSupportTesting", "TuistCoreTesting", "RxBlocking", "TuistCacheTesting"]
|
2019-12-19 22:42:10 +08:00
|
|
|
),
|
2020-02-17 23:15:37 +08:00
|
|
|
.target(
|
|
|
|
name: "TuistCacheTesting",
|
2020-04-21 22:49:31 +08:00
|
|
|
dependencies: ["TuistCache", "SwiftToolsSupport-auto", "TuistCore", "RxTest", "RxSwift"]
|
2020-02-17 23:15:37 +08:00
|
|
|
),
|
2020-03-22 02:21:55 +08:00
|
|
|
.target(
|
|
|
|
name: "TuistCloud",
|
2020-04-21 22:49:31 +08:00
|
|
|
dependencies: ["XcodeProj", "SwiftToolsSupport-auto", "TuistCore", "TuistSupport", "Checksum", "RxSwift"]
|
2020-03-22 02:21:55 +08:00
|
|
|
),
|
|
|
|
.testTarget(
|
|
|
|
name: "TuistCloudTests",
|
|
|
|
dependencies: ["TuistCloud", "TuistSupportTesting", "TuistCoreTesting", "RxBlocking"]
|
|
|
|
),
|
|
|
|
.target(
|
|
|
|
name: "TuistCloudTesting",
|
2020-04-21 22:49:31 +08:00
|
|
|
dependencies: ["TuistCloud", "SwiftToolsSupport-auto", "TuistCore", "RxTest", "RxSwift"]
|
2020-03-22 02:21:55 +08:00
|
|
|
),
|
2019-12-19 22:42:10 +08:00
|
|
|
.testTarget(
|
2020-02-07 13:33:59 +08:00
|
|
|
name: "TuistCacheIntegrationTests",
|
2020-02-14 16:58:22 +08:00
|
|
|
dependencies: ["TuistCache", "TuistSupportTesting", "RxBlocking", "TuistCoreTesting"]
|
2019-12-19 22:42:10 +08:00
|
|
|
),
|
2020-03-12 23:01:13 +08:00
|
|
|
.target(
|
2020-03-17 02:11:52 +08:00
|
|
|
name: "TuistScaffold",
|
2020-04-21 22:49:31 +08:00
|
|
|
dependencies: ["SwiftToolsSupport-auto", "TuistCore", "TuistSupport", "Stencil"]
|
2020-03-12 23:01:13 +08:00
|
|
|
),
|
|
|
|
.target(
|
2020-03-17 02:11:52 +08:00
|
|
|
name: "TuistScaffoldTesting",
|
|
|
|
dependencies: ["TuistScaffold"]
|
2020-03-12 23:01:13 +08:00
|
|
|
),
|
2020-03-20 23:20:47 +08:00
|
|
|
.testTarget(
|
|
|
|
name: "TuistScaffoldTests",
|
2020-03-21 23:01:52 +08:00
|
|
|
dependencies: ["TuistScaffold", "TuistSupportTesting", "TuistCoreTesting"]
|
2020-03-20 23:20:47 +08:00
|
|
|
),
|
2020-03-12 23:01:13 +08:00
|
|
|
.testTarget(
|
2020-03-17 02:11:52 +08:00
|
|
|
name: "TuistScaffoldIntegrationTests",
|
|
|
|
dependencies: ["TuistScaffold", "TuistSupportTesting"]
|
2020-03-12 23:01:13 +08:00
|
|
|
),
|
2019-12-19 22:42:10 +08:00
|
|
|
.target(
|
2019-12-26 18:37:03 +08:00
|
|
|
name: "TuistAutomation",
|
2020-04-21 22:49:31 +08:00
|
|
|
dependencies: ["XcodeProj", "SwiftToolsSupport-auto", "TuistCore", "TuistSupport", "XcbeautifyLib"]
|
2019-12-19 22:42:10 +08:00
|
|
|
),
|
|
|
|
.testTarget(
|
|
|
|
name: "TuistAutomationTests",
|
|
|
|
dependencies: ["TuistAutomation", "TuistSupportTesting"]
|
|
|
|
),
|
2020-06-05 19:30:13 +08:00
|
|
|
.target(
|
|
|
|
name: "TuistAutomationTesting",
|
|
|
|
dependencies: ["TuistAutomation", "SwiftToolsSupport-auto", "TuistCore", "TuistCoreTesting", "ProjectDescription", "TuistSupportTesting"]
|
|
|
|
),
|
2019-12-19 22:42:10 +08:00
|
|
|
.testTarget(
|
|
|
|
name: "TuistAutomationIntegrationTests",
|
|
|
|
dependencies: ["TuistAutomation", "TuistSupportTesting"]
|
|
|
|
),
|
2020-03-11 20:18:25 +08:00
|
|
|
.target(
|
|
|
|
name: "TuistInsights",
|
2020-04-21 22:49:31 +08:00
|
|
|
dependencies: ["XcodeProj", "SwiftToolsSupport-auto", "TuistCore", "TuistSupport", "XcbeautifyLib"]
|
2020-03-11 20:18:25 +08:00
|
|
|
),
|
|
|
|
.testTarget(
|
|
|
|
name: "TuistInsightsTests",
|
|
|
|
dependencies: ["TuistInsights", "TuistSupportTesting"]
|
|
|
|
),
|
|
|
|
.testTarget(
|
|
|
|
name: "TuistInsightsIntegrationTests",
|
|
|
|
dependencies: ["TuistInsights", "TuistSupportTesting"]
|
|
|
|
),
|
2020-03-06 04:53:02 +08:00
|
|
|
.target(
|
|
|
|
name: "TuistSigning",
|
2020-03-15 16:32:14 +08:00
|
|
|
dependencies: ["TuistCore", "TuistSupport", "CryptoSwift"]
|
2020-03-06 04:53:02 +08:00
|
|
|
),
|
|
|
|
.testTarget(
|
|
|
|
name: "TuistSigningTests",
|
2020-03-22 02:50:54 +08:00
|
|
|
dependencies: ["TuistSigning", "TuistSupportTesting", "TuistCoreTesting"]
|
2020-03-06 04:53:02 +08:00
|
|
|
),
|
2019-12-26 17:52:05 +08:00
|
|
|
.target(
|
2019-12-26 18:37:03 +08:00
|
|
|
name: "TuistLoader",
|
2020-04-21 22:49:31 +08:00
|
|
|
dependencies: ["XcodeProj", "SwiftToolsSupport-auto", "TuistCore", "TuistSupport", "ProjectDescription"]
|
2019-12-26 17:52:05 +08:00
|
|
|
),
|
2019-12-26 18:37:03 +08:00
|
|
|
.target(
|
|
|
|
name: "TuistLoaderTesting",
|
2020-05-14 17:12:03 +08:00
|
|
|
dependencies: ["TuistLoader", "SwiftToolsSupport-auto", "TuistCore", "ProjectDescription", "TuistSupportTesting"]
|
2019-12-26 18:37:03 +08:00
|
|
|
),
|
2019-12-26 17:52:05 +08:00
|
|
|
.testTarget(
|
|
|
|
name: "TuistLoaderTests",
|
2020-03-17 17:21:16 +08:00
|
|
|
dependencies: ["TuistLoader", "TuistSupportTesting", "TuistLoaderTesting", "TuistCoreTesting"]
|
2019-12-26 17:52:05 +08:00
|
|
|
),
|
2019-12-26 18:37:03 +08:00
|
|
|
.testTarget(
|
|
|
|
name: "TuistLoaderIntegrationTests",
|
2020-02-20 15:56:50 +08:00
|
|
|
dependencies: ["TuistLoader", "TuistSupportTesting", "ProjectDescription"]
|
2019-12-26 18:37:03 +08:00
|
|
|
),
|
2019-04-18 04:23:23 +08:00
|
|
|
.testTarget(
|
|
|
|
name: "TuistIntegrationTests",
|
2020-04-21 18:24:45 +08:00
|
|
|
dependencies: ["TuistGenerator", "TuistSupportTesting", "TuistSupport", "TuistCoreTesting", "TuistLoaderTesting"]
|
2019-04-18 04:23:23 +08:00
|
|
|
),
|
2018-06-26 13:47:42 +08:00
|
|
|
]
|
2018-04-16 17:01:02 +08:00
|
|
|
)
|