Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
18 changes: 14 additions & 4 deletions Project.swift
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
//
// Project.swift
// Config
//
// Created by Chan on 2023/08/16.
//

import ProjectDescription

// MARK: Constants
let projectName = "Box42"
let organizationName = "Box42"
let bundleID = "com.box42"
let targetVersion = "10.15"

let dependencies: [TargetDependency] = [
.external(name: "SnapKit"),
]
// MARK: Struct
let project = Project(
name: projectName,
Expand All @@ -15,15 +24,16 @@ let project = Project(
targets: [
Target(name: projectName,
platform: .macOS,
product: .app, // unitTests, .appExtension, .framework, dynamicLibrary, staticFramework
product: .app,
bundleId: bundleID,
deploymentTarget: .macOS(targetVersion: targetVersion),
infoPlist: .file(path: "\(projectName)/Resources/Info.plist"),
sources: ["\(projectName)/**"],
resources: ["\(projectName)/Resources/Assets.xcassets",
"\(projectName)/Resources/Main.storyboard",],
"\(projectName)/Resources/Main.storyboard",
"\(projectName)/Resources/sh/*.sh",],
entitlements: "\(projectName)/Resources/Box42.entitlements",
dependencies: [] // tuist generate할 경우 pod install이 자동으로 실행
dependencies: dependencies
)
],
schemes: [],
Expand Down
17 changes: 17 additions & 0 deletions Tuist/Dependencies.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//
// Dependencies.swift
// Config
//
// Created by Chan on 2023/08/16.
//

import ProjectDescription

let spm = SwiftPackageManagerDependencies([
.remote(url: "https://github.com/SnapKit/SnapKit", requirement: .exact("5.6.0")),
])

let dependencies = Dependencies(
swiftPackageManager: spm,
platforms: [.macOS]
)