Skip to content

Commit

Permalink
⬆️ Update Tuist
Browse files Browse the repository at this point in the history
  • Loading branch information
olejnjak committed Dec 7, 2023
1 parent abc6c81 commit 2f1a1ce
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 34 deletions.
2 changes: 1 addition & 1 deletion ProjectTemplate/.tuist-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.27.1
3.35.2
2 changes: 2 additions & 0 deletions ProjectTemplate/Project.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ let project = Project(
"DEBUG_INFORMATION_FORMAT": "dwarf-with-dsym",
"EAGER_LINKING": true,
"ENABLE_MODULE_VERIFIER": true,
"ENABLE_USER_SCRIPT_SANDBOXING": true,
"IPHONEOS_DEPLOYMENT_TARGET": "15.0",
"MARKETING_VERSION": .string(version.description),
"OTHER_LDFLAGS": "-ObjC",
],
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import ProjectDescription

public extension Destinations {
static let app = Destinations.iOS
static let tests = app
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ private let codeSigning = CodeSigning.current(

let app = Target(
name: targetName,
platform: .iOS,
destinations: .app,
product: .app,
bundleId: bundleID,
deploymentTarget: .app,
infoPlist: .extendingSharedDefault(with: [
"ITSAppUsesNonExemptEncryption": false,
"UILaunchStoryboardName": "LaunchScreen.storyboard",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ private let basePath = "Modules/" + targetName

let appUI = Target(
name: targetName,
platform: .iOS,
destinations: .app,
product: .framework,
bundleId: "cz.ackee.\(projectName).\(targetName.toBundleID())",
deploymentTarget: .app,
sources: .init(globs: [
"\(basePath)/Sources/**",
.testing(at: basePath)
Expand All @@ -22,10 +21,9 @@ let appUI = Target(

let appUITests = Target(
name: appUI.name + "_Tests",
platform: .iOS,
destinations: .tests,
product: .unitTests,
bundleId: appUI.bundleId + ".tests",
deploymentTarget: .tests,
sources: "\(basePath)/Tests/**",
dependencies: [
.xctest,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ private let basePath = "Modules/" + targetName

let assets = Target(
name: targetName,
platform: .iOS,
destinations: .app,
product: .framework,
bundleId: "cz.ackee.\(projectName).\(targetName.toBundleID())",
deploymentTarget: .app,
resources: "\(basePath)/Resources/**"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ private let basePath = "Modules/" + targetName

let core = Target(
name: targetName,
platform: .iOS,
destinations: .app,
product: .framework,
bundleId: "cz.ackee.\(projectName).\(targetName.toBundleID())",
deploymentTarget: .app,
sources: .init(globs: [
"\(basePath)/Sources/**",
.testing(at: basePath, isDebug: true)
Expand All @@ -22,10 +21,9 @@ let core = Target(

let coreTests = Target(
name: core.name + "_Tests",
platform: .iOS,
destinations: .tests,
product: .unitTests,
bundleId: core.bundleId + ".tests",
deploymentTarget: .tests,
sources: "\(basePath)/Tests/**",
dependencies: [
.xctest,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ private let basePath = "Modules/" + targetName

let login = Target(
name: targetName,
platform: .iOS,
destinations: .app,
product: .staticFramework,
bundleId: "cz.ackee.\(projectName).\(targetName.toBundleID())",
deploymentTarget: .app,
sources: .init(globs: [
"\(basePath)/Sources/**",
.testing(at: basePath)
Expand All @@ -23,10 +22,9 @@ let login = Target(

let loginTests = Target(
name: login.name + "_Tests",
platform: .iOS,
destinations: .tests,
product: .unitTests,
bundleId: login.bundleId + ".tests",
deploymentTarget: .tests,
sources: "\(basePath)/Tests/**",
dependencies: [
.xctest,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ private let basePath = "Modules/" + targetName

let profile = Target(
name: targetName,
platform: .iOS,
destinations: .app,
product: .staticFramework,
bundleId: "cz.ackee.\(projectName).\(targetName.toBundleID())",
deploymentTarget: .app,
sources: .init(globs: [
"\(basePath)/Sources/**",
.testing(at: basePath)
Expand All @@ -23,10 +22,9 @@ let profile = Target(

let profileTests = Target(
name: profile.name + "_Tests",
platform: .iOS,
destinations: .tests,
product: .unitTests,
bundleId: profile.bundleId + ".tests",
deploymentTarget: .tests,
sources: "\(basePath)/Tests/**",
dependencies: [
.xctest,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ private let basePath = "Modules/" + targetName

let userManager = Target(
name: targetName,
platform: .iOS,
destinations: .app,
product: .staticFramework,
bundleId: "cz.ackee.\(projectName).\(targetName.toBundleID())",
deploymentTarget: .app,
sources: .init(globs: [
"\(basePath)/Sources/**",
.testing(at: basePath)
Expand All @@ -22,10 +21,9 @@ let userManager = Target(

let userManagerTests = Target(
name: userManager.name + "_Tests",
platform: .iOS,
destinations: .tests,
product: .unitTests,
bundleId: userManager.bundleId + ".tests",
deploymentTarget: .tests,
sources: "\(basePath)/Tests/**",
dependencies: [
.xctest,
Expand Down

0 comments on commit 2f1a1ce

Please sign in to comment.