From 498e4ad6ad47287f5477b6ee5820e03b330496b2 Mon Sep 17 00:00:00 2001 From: Roy-wonji Date: Mon, 12 Jun 2023 21:22:50 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8[feat]:=20tuist=20plugin=20=EC=9C=BC?= =?UTF-8?q?=EB=A1=9C=20=EB=B3=80=EA=B2=BD=20#6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ProjectDescriptionHelpers/Dependency+Project.swift | 0 .../ProjectDescriptionHelpers/Dependency+SPM.swift | 2 +- .../ProjectDescriptionHelpers/Project+Settings.swift | 0 .../ProjectDescriptionHelpers/Project+Templates.swift | 0 .../ProjectDescriptionHelpers/SettingDictionary.swift | 0 PingPong/Projects/App/Project.swift | 4 +++- PingPong/Projects/Component/Project.swift | 4 +++- PingPong/Projects/HomeApp/Project.swift | 9 +++++---- PingPong/Projects/Network/Project.swift | 4 +++- PingPong/Tuist/Dependencies.swift | 3 ++- 10 files changed, 17 insertions(+), 9 deletions(-) rename PingPong/{Tuist => Plugins/PingPongs}/ProjectDescriptionHelpers/Dependency+Project.swift (100%) rename PingPong/{Tuist => Plugins/PingPongs}/ProjectDescriptionHelpers/Dependency+SPM.swift (100%) rename PingPong/{Tuist => Plugins/PingPongs}/ProjectDescriptionHelpers/Project+Settings.swift (100%) rename PingPong/{Tuist => Plugins/PingPongs}/ProjectDescriptionHelpers/Project+Templates.swift (100%) rename PingPong/{Tuist => Plugins/PingPongs}/ProjectDescriptionHelpers/SettingDictionary.swift (100%) diff --git a/PingPong/Tuist/ProjectDescriptionHelpers/Dependency+Project.swift b/PingPong/Plugins/PingPongs/ProjectDescriptionHelpers/Dependency+Project.swift similarity index 100% rename from PingPong/Tuist/ProjectDescriptionHelpers/Dependency+Project.swift rename to PingPong/Plugins/PingPongs/ProjectDescriptionHelpers/Dependency+Project.swift diff --git a/PingPong/Tuist/ProjectDescriptionHelpers/Dependency+SPM.swift b/PingPong/Plugins/PingPongs/ProjectDescriptionHelpers/Dependency+SPM.swift similarity index 100% rename from PingPong/Tuist/ProjectDescriptionHelpers/Dependency+SPM.swift rename to PingPong/Plugins/PingPongs/ProjectDescriptionHelpers/Dependency+SPM.swift index 253dcc3f..957ea7be 100644 --- a/PingPong/Tuist/ProjectDescriptionHelpers/Dependency+SPM.swift +++ b/PingPong/Plugins/PingPongs/ProjectDescriptionHelpers/Dependency+SPM.swift @@ -17,8 +17,8 @@ public extension TargetDependency.SPM { static let CombineMoya = TargetDependency.external(name: "CombineMoya") static let PopupView = TargetDependency.external(name: "PopupView") static let Kingfisher = TargetDependency.external(name: "Kingfisher") - //MARK: - preview 관련 + } diff --git a/PingPong/Tuist/ProjectDescriptionHelpers/Project+Settings.swift b/PingPong/Plugins/PingPongs/ProjectDescriptionHelpers/Project+Settings.swift similarity index 100% rename from PingPong/Tuist/ProjectDescriptionHelpers/Project+Settings.swift rename to PingPong/Plugins/PingPongs/ProjectDescriptionHelpers/Project+Settings.swift diff --git a/PingPong/Tuist/ProjectDescriptionHelpers/Project+Templates.swift b/PingPong/Plugins/PingPongs/ProjectDescriptionHelpers/Project+Templates.swift similarity index 100% rename from PingPong/Tuist/ProjectDescriptionHelpers/Project+Templates.swift rename to PingPong/Plugins/PingPongs/ProjectDescriptionHelpers/Project+Templates.swift diff --git a/PingPong/Tuist/ProjectDescriptionHelpers/SettingDictionary.swift b/PingPong/Plugins/PingPongs/ProjectDescriptionHelpers/SettingDictionary.swift similarity index 100% rename from PingPong/Tuist/ProjectDescriptionHelpers/SettingDictionary.swift rename to PingPong/Plugins/PingPongs/ProjectDescriptionHelpers/SettingDictionary.swift diff --git a/PingPong/Projects/App/Project.swift b/PingPong/Projects/App/Project.swift index 1b436284..6df8f439 100644 --- a/PingPong/Projects/App/Project.swift +++ b/PingPong/Projects/App/Project.swift @@ -7,9 +7,11 @@ import ProjectDescription -import ProjectDescriptionHelpers +import MyPlugin + +let localHelper = LocalHelper(name: "MyPlugin") let project = Project.makeModule( name: "PingPong", platform: .iOS, diff --git a/PingPong/Projects/Component/Project.swift b/PingPong/Projects/Component/Project.swift index 7c75378a..4184035c 100644 --- a/PingPong/Projects/Component/Project.swift +++ b/PingPong/Projects/Component/Project.swift @@ -6,9 +6,11 @@ // import ProjectDescription -import ProjectDescriptionHelpers +import MyPlugin + +let localHelper = LocalHelper(name: "MyPlugin") let project = Project.makeModule( name: "Component", product: .staticFramework, diff --git a/PingPong/Projects/HomeApp/Project.swift b/PingPong/Projects/HomeApp/Project.swift index debd5ec4..15e30f9e 100644 --- a/PingPong/Projects/HomeApp/Project.swift +++ b/PingPong/Projects/HomeApp/Project.swift @@ -6,9 +6,11 @@ // import ProjectDescription -import ProjectDescriptionHelpers +import MyPlugin + +let localHelper = LocalHelper(name: "MyPlugin") let project = Project.makeModule( name: "HomeApp", platform: .iOS, @@ -16,7 +18,6 @@ let project = Project.makeModule( //MARK: - 풀 빌드 할때는 프레임 워크로 변경 // product: .staticFramework, packages: [ // packages를 추가하여 Amplify 라이브러리 추가 - ], @@ -26,8 +27,8 @@ let project = Project.makeModule( .SPM.CombineMoya, .SPM.Kingfisher, .SPM.PopupView, - .Projcet.Network, - .Projcet.Component + + ], sources: ["Sources/**", "Resources/**", "Resources/Font/**"], diff --git a/PingPong/Projects/Network/Project.swift b/PingPong/Projects/Network/Project.swift index 46374a71..9421640b 100644 --- a/PingPong/Projects/Network/Project.swift +++ b/PingPong/Projects/Network/Project.swift @@ -6,9 +6,11 @@ // import ProjectDescription -import ProjectDescriptionHelpers +import MyPlugin + +let localHelper = LocalHelper(name: "MyPlugin") let project = Project.makeModule( name: "Network", product: .staticFramework, diff --git a/PingPong/Tuist/Dependencies.swift b/PingPong/Tuist/Dependencies.swift index 9a3b0928..72619cc2 100644 --- a/PingPong/Tuist/Dependencies.swift +++ b/PingPong/Tuist/Dependencies.swift @@ -11,7 +11,8 @@ let dependencie = Dependencies( swiftPackageManager: [ .remote(url: "https://github.com/Moya/Moya.git", requirement: .upToNextMinor(from: "15.0.0")), .remote(url: "https://github.com/onevcat/Kingfisher.git", requirement: .upToNextMinor(from: "7.6.0")), - .remote(url: "https://github.com/exyte/PopupView.git", requirement: .upToNextMinor(from: "2.1.0")) + .remote(url: "https://github.com/exyte/PopupView.git", requirement: .upToNextMinor(from: "2.1.0")), + ],