From 08ae865de816d74b0aa73c079501bbd95276cd0e Mon Sep 17 00:00:00 2001 From: HELLOHIDI Date: Fri, 28 Jun 2024 19:39:46 +0900 Subject: [PATCH] =?UTF-8?q?[Refactor]=20Configuration=20=EC=84=A4=EC=A0=95?= =?UTF-8?q?=20#18?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Base/Projects/Project-Development.xcconfig | 0 .../Base/Projects/Project-PROD.xcconfig | 0 Configurations/Base/Projects/Project-QA.xcconfig | 0 .../Base/Projects/Project-Test.xcconfig | 0 Configurations/Targets/iOS-Demo.xcconfig | 9 +++++++++ Configurations/Targets/iOS-Framework.xcconfig | 9 +++++++++ Configurations/Targets/iOS-Tests.xcconfig | 9 +++++++++ .../Configurations.swift | 15 ++++----------- .../Project+Templates.swift | 2 +- 9 files changed, 32 insertions(+), 12 deletions(-) create mode 100644 Configurations/Base/Projects/Project-Development.xcconfig create mode 100644 Configurations/Base/Projects/Project-PROD.xcconfig create mode 100644 Configurations/Base/Projects/Project-QA.xcconfig create mode 100644 Configurations/Base/Projects/Project-Test.xcconfig create mode 100644 Configurations/Targets/iOS-Demo.xcconfig create mode 100644 Configurations/Targets/iOS-Framework.xcconfig create mode 100644 Configurations/Targets/iOS-Tests.xcconfig diff --git a/Configurations/Base/Projects/Project-Development.xcconfig b/Configurations/Base/Projects/Project-Development.xcconfig new file mode 100644 index 0000000..e69de29 diff --git a/Configurations/Base/Projects/Project-PROD.xcconfig b/Configurations/Base/Projects/Project-PROD.xcconfig new file mode 100644 index 0000000..e69de29 diff --git a/Configurations/Base/Projects/Project-QA.xcconfig b/Configurations/Base/Projects/Project-QA.xcconfig new file mode 100644 index 0000000..e69de29 diff --git a/Configurations/Base/Projects/Project-Test.xcconfig b/Configurations/Base/Projects/Project-Test.xcconfig new file mode 100644 index 0000000..e69de29 diff --git a/Configurations/Targets/iOS-Demo.xcconfig b/Configurations/Targets/iOS-Demo.xcconfig new file mode 100644 index 0000000..124fa75 --- /dev/null +++ b/Configurations/Targets/iOS-Demo.xcconfig @@ -0,0 +1,9 @@ +// +// iOS-Demo.xcconfig +// Manifests +// +// Created by 류희재 on 6/28/24. +// + +// Configuration settings file format documentation can be found at: +// https://help.apple.com/xcode/#/dev745c5c974 diff --git a/Configurations/Targets/iOS-Framework.xcconfig b/Configurations/Targets/iOS-Framework.xcconfig new file mode 100644 index 0000000..d758176 --- /dev/null +++ b/Configurations/Targets/iOS-Framework.xcconfig @@ -0,0 +1,9 @@ +// +// iOS-Framework.xcconfig +// Manifests +// +// Created by 류희재 on 6/28/24. +// + +// Configuration settings file format documentation can be found at: +// https://help.apple.com/xcode/#/dev745c5c974 diff --git a/Configurations/Targets/iOS-Tests.xcconfig b/Configurations/Targets/iOS-Tests.xcconfig new file mode 100644 index 0000000..e526977 --- /dev/null +++ b/Configurations/Targets/iOS-Tests.xcconfig @@ -0,0 +1,9 @@ +// +// iOS-Tests.xcconfig +// Manifests +// +// Created by 류희재 on 6/28/24. +// + +// Configuration settings file format documentation can be found at: +// https://help.apple.com/xcode/#/dev745c5c974 diff --git a/Plugins/ConfigPlugin/ProjectDescriptionHelpers/Configurations.swift b/Plugins/ConfigPlugin/ProjectDescriptionHelpers/Configurations.swift index 5ff3e36..04fb089 100644 --- a/Plugins/ConfigPlugin/ProjectDescriptionHelpers/Configurations.swift +++ b/Plugins/ConfigPlugin/ProjectDescriptionHelpers/Configurations.swift @@ -1,19 +1,12 @@ -// -// Configurations.swift -// ConfigPlugin -// -// Created by 류희재 on 6/28/24. -// - import Foundation import ProjectDescription public struct XCConfig { private struct Path { - static var framework: ProjectDescription.Path { .relativeToRoot("xcconfigs/targets/iOS-Framework.xcconfig") } - static var demo: ProjectDescription.Path { .relativeToRoot("xcconfigs/targets/iOS-Demo.xcconfig") } - static var tests: ProjectDescription.Path { .relativeToRoot("xcconfigs/targets/iOS-Tests.xcconfig") } - static func project(_ config: String) -> ProjectDescription.Path { .relativeToRoot("xcconfigs/Base/Projects/Project-\(config).xcconfig") } + static var framework: ProjectDescription.Path { .relativeToRoot("Configurations/Targets/iOS-Framework.xcconfig") } + static var demo: ProjectDescription.Path { .relativeToRoot("Configurations/Targets/iOS-Demo.xcconfig") } + static var tests: ProjectDescription.Path { .relativeToRoot("Configurations/Targets/iOS-Tests.xcconfig") } + static func project(_ config: String) -> ProjectDescription.Path { .relativeToRoot("Configurations/Base/Projects/Project-\(config).xcconfig") } } public static let framework: [Configuration] = [ diff --git a/Tuist/ProjectDescriptionHelpers/Project+Templates.swift b/Tuist/ProjectDescriptionHelpers/Project+Templates.swift index 1630cdd..a928c18 100644 --- a/Tuist/ProjectDescriptionHelpers/Project+Templates.swift +++ b/Tuist/ProjectDescriptionHelpers/Project+Templates.swift @@ -42,7 +42,7 @@ public extension Project { // 터미널 명령어랑 비슷한듯? 일단 바쁘니까 나중에 정리해보도록 하자ㅏ https://www.daleseo.com/glob-patterns/#google_vignette resources: [.glob(pattern: "Resources/**", excluding: [])], //entitlement: 주로 iOS 애플리케이션에서 특정 기능이나 권한을 활성화하기 위해 사용하는 설정 파일 - entitlements: "\(name).entitlements", +// entitlements: "\(name).entitlements", dependencies: [ internalDependencies, externalDependencies