Skip to content

Commit

Permalink
[Refactor] Configuration 설정 DO-SOPT-iOS-Part#18
Browse files Browse the repository at this point in the history
  • Loading branch information
HELLOHIDI committed Jun 28, 2024
1 parent f528eaf commit 08ae865
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 12 deletions.
Empty file.
Empty file.
Empty file.
Empty file.
9 changes: 9 additions & 0 deletions Configurations/Targets/iOS-Demo.xcconfig
Original file line number Diff line number Diff line change
@@ -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
9 changes: 9 additions & 0 deletions Configurations/Targets/iOS-Framework.xcconfig
Original file line number Diff line number Diff line change
@@ -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
9 changes: 9 additions & 0 deletions Configurations/Targets/iOS-Tests.xcconfig
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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] = [
Expand Down
2 changes: 1 addition & 1 deletion Tuist/ProjectDescriptionHelpers/Project+Templates.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 08ae865

Please sign in to comment.