From eed6e2864ed3a7a00dd1d9f87bcc56c1590f030f Mon Sep 17 00:00:00 2001 From: chanhihi Date: Wed, 16 Aug 2023 22:18:57 +0900 Subject: [PATCH 1/3] =?UTF-8?q?build(tuist):=20Snapkit=EC=9D=84=20SwiftPac?= =?UTF-8?q?kageManagerDependencies=20=EB=A1=9C=20=EC=B6=94=EA=B0=80?= =?UTF-8?q?=ED=95=A9=EB=8B=88=EB=8B=A4.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Project.swift | 18 ++++++++++++++---- Tuist/Dependencies.swift | 17 +++++++++++++++++ 2 files changed, 31 insertions(+), 4 deletions(-) create mode 100644 Tuist/Dependencies.swift diff --git a/Project.swift b/Project.swift index 7ab74f9..0c1c3d1 100644 --- a/Project.swift +++ b/Project.swift @@ -1,3 +1,10 @@ +// +// Project.swift +// Config +// +// Created by Chan on 2023/08/16. +// + import ProjectDescription // MARK: Constants @@ -5,7 +12,9 @@ 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, @@ -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: [], diff --git a/Tuist/Dependencies.swift b/Tuist/Dependencies.swift new file mode 100644 index 0000000..a131a1f --- /dev/null +++ b/Tuist/Dependencies.swift @@ -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] +) From f58081a684879f9a7cb61e5b3dda0d4d26b5b6a8 Mon Sep 17 00:00:00 2001 From: chanhihi Date: Wed, 16 Aug 2023 22:19:31 +0900 Subject: [PATCH 2/3] =?UTF-8?q?docs:=20.gitignore=20=E2=9D=A4=EF=B8=8F?= =?UTF-8?q?=E2=80=8D=F0=9F=94=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 72 +++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 68 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index f031450..551a3f5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,70 @@ +### macOS ### +# General .DS_Store -Box42/.DS_Store -Box42.xcodeproj/xcuserdata/ +.AppleDouble +.LSOverride -.prettierrc -.swift-format \ No newline at end of file +# Icon must end with two +Icon + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +### Xcode ### +# Xcode +# +# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore + +## User settings +xcuserdata/ + +## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9) +*.xcscmblueprint +*.xccheckout + +## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4) +build/ +DerivedData/ +*.moved-aside +*.pbxuser +!default.pbxuser +*.mode1v3 +!default.mode1v3 +*.mode2v3 +!default.mode2v3 +*.perspectivev3 +!default.perspectivev3 + +### Xcode Patch ### +*.xcodeproj/* +!*.xcodeproj/project.pbxproj +!*.xcodeproj/xcshareddata/ +!*.xcworkspace/contents.xcworkspacedata +/*.gcno + +### Projects ### +*.xcodeproj +*.xcworkspace + +### Tuist derived files ### +graph.dot +Derived/ + +### Tuist managed dependencies ### +Tuist/Dependencies From 35f43c0d9fe45e41fdb640284bef4b9cb4cf3a0c Mon Sep 17 00:00:00 2001 From: chanhihi Date: Wed, 16 Aug 2023 22:20:02 +0900 Subject: [PATCH 3/3] =?UTF-8?q?build:=20sh=20=ED=8C=8C=EC=9D=BC=EB=93=A4?= =?UTF-8?q?=EC=9D=84=20=EB=A6=AC=EC=86=8C=EC=8A=A4=EB=A1=9C=20=EC=98=AE?= =?UTF-8?q?=EA=B9=81=EB=8B=88=EB=8B=A4.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Box42/{Scripts => Resources}/sh/brewInGoinfre.sh | 0 Box42/{Scripts => Resources}/sh/cleanCache.sh | 0 Box42/{Scripts => Resources}/sh/exportMacOSInfo.sh | 0 Box42/{Scripts => Resources}/sh/importMacOSInfo.sh | 0 Box42/{Scripts => Resources}/sh/keyMapping.sh | 0 Box42/{Scripts => Resources}/sh/nodeInstall.sh | 0 6 files changed, 0 insertions(+), 0 deletions(-) rename Box42/{Scripts => Resources}/sh/brewInGoinfre.sh (100%) rename Box42/{Scripts => Resources}/sh/cleanCache.sh (100%) rename Box42/{Scripts => Resources}/sh/exportMacOSInfo.sh (100%) rename Box42/{Scripts => Resources}/sh/importMacOSInfo.sh (100%) rename Box42/{Scripts => Resources}/sh/keyMapping.sh (100%) rename Box42/{Scripts => Resources}/sh/nodeInstall.sh (100%) diff --git a/Box42/Scripts/sh/brewInGoinfre.sh b/Box42/Resources/sh/brewInGoinfre.sh similarity index 100% rename from Box42/Scripts/sh/brewInGoinfre.sh rename to Box42/Resources/sh/brewInGoinfre.sh diff --git a/Box42/Scripts/sh/cleanCache.sh b/Box42/Resources/sh/cleanCache.sh similarity index 100% rename from Box42/Scripts/sh/cleanCache.sh rename to Box42/Resources/sh/cleanCache.sh diff --git a/Box42/Scripts/sh/exportMacOSInfo.sh b/Box42/Resources/sh/exportMacOSInfo.sh similarity index 100% rename from Box42/Scripts/sh/exportMacOSInfo.sh rename to Box42/Resources/sh/exportMacOSInfo.sh diff --git a/Box42/Scripts/sh/importMacOSInfo.sh b/Box42/Resources/sh/importMacOSInfo.sh similarity index 100% rename from Box42/Scripts/sh/importMacOSInfo.sh rename to Box42/Resources/sh/importMacOSInfo.sh diff --git a/Box42/Scripts/sh/keyMapping.sh b/Box42/Resources/sh/keyMapping.sh similarity index 100% rename from Box42/Scripts/sh/keyMapping.sh rename to Box42/Resources/sh/keyMapping.sh diff --git a/Box42/Scripts/sh/nodeInstall.sh b/Box42/Resources/sh/nodeInstall.sh similarity index 100% rename from Box42/Scripts/sh/nodeInstall.sh rename to Box42/Resources/sh/nodeInstall.sh