Skip to content

Commit

Permalink
fix: Tuist add missing catalyst destination (#1386)
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinperignon authored Apr 16, 2024
2 parents e65eb77 + 7852edc commit 9791be1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Project.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ import Foundation
import ProjectDescription
import ProjectDescriptionHelpers


let project = Project(name: "Mail",
packages: [],
targets: [
.target(name: "Infomaniak Mail",
destinations: .iOS,
destinations: Constants.destinations,
product: .app,
bundleId: "com.infomaniak.mail",
deploymentTargets: Constants.deploymentTarget,
Expand Down Expand Up @@ -84,7 +85,7 @@ let project = Project(name: "Mail",
],
settings: .settings(base: Constants.testSettings)),
.target(name: "MailShareExtension",
destinations: .iOS,
destinations: Constants.destinations,
product: .appExtension,
bundleId: "com.infomaniak.mail.ShareExtension",
deploymentTargets: Constants.deploymentTarget,
Expand Down Expand Up @@ -122,7 +123,7 @@ let project = Project(name: "Mail",
],
settings: .settings(base: Constants.baseSettings)),
.target(name: "MailNotificationServiceExtension",
destinations: .iOS,
destinations: Constants.destinations,
product: .appExtension,
bundleId: "com.infomaniak.mail.NotificationServiceExtension",
deploymentTargets: Constants.deploymentTarget,
Expand All @@ -143,7 +144,7 @@ let project = Project(name: "Mail",
],
settings: .settings(base: Constants.baseSettings)),
.target(name: "MailAppIntentsExtension",
destinations: .iOS,
destinations: Constants.destinations,
product: .extensionKitExtension,
bundleId: "com.infomaniak.mail.MailAppIntentsExtension",
deploymentTargets: Constants.appIntentsDeploymentTarget,
Expand All @@ -167,7 +168,7 @@ let project = Project(name: "Mail",
],
settings: .settings(base: Constants.baseSettings)),
.target(name: "MailResources",
destinations: .iOS,
destinations: Constants.destinations,
product: .staticLibrary,
bundleId: "com.infomaniak.mail.resources",
deploymentTargets: Constants.deploymentTarget,
Expand All @@ -182,7 +183,7 @@ let project = Project(name: "Mail",
],
settings: .settings(base: Constants.baseSettings)),
.target(name: "MailCore",
destinations: .iOS,
destinations: Constants.destinations,
product: .framework,
bundleId: "com.infomaniak.mail.core",
deploymentTargets: Constants.deploymentTarget,
Expand Down
2 changes: 2 additions & 0 deletions Tuist/ProjectDescriptionHelpers/Constants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,7 @@ public enum Constants {

public static let appIntentsDeploymentTarget = DeploymentTargets.iOS("16.4")

public static let destinations = Set<Destination>([.iPhone, .iPad, .macCatalyst])

public static let swiftlintScript = TargetScript.post(path: "scripts/lint.sh", name: "Swiftlint")
}

0 comments on commit 9791be1

Please sign in to comment.