-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[Refactor] #18 - 트위스트 세팅 리펙토링하기
- Loading branch information
Showing
104 changed files
with
2,060 additions
and
182 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import ProjectDescription | ||
|
||
let configPlugin = Plugin(name: "ConfigPlugin") |
48 changes: 48 additions & 0 deletions
48
Plugins/ConfigPlugin/ProjectDescriptionHelpers/Configurations.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import Foundation | ||
import ProjectDescription | ||
|
||
/// 빌드할 환경에 대한 설정 | ||
|
||
/// Target 분리 (The Modular Architecture 기반으로 분리했습니다) | ||
|
||
|
||
/// DEV : 실제 프로덕트 BaseURL을 사용하는 debug scheme | ||
/// TEST : 테스트 BaseURL을 사용하는 debug scheme | ||
/// QA : 테스트 BaseURL을 사용하는 release scheme | ||
/// RELEASE : 실제 프로덕트 BaseURL을 사용하는 release scheme | ||
|
||
|
||
public struct XCConfig { | ||
private struct Path { | ||
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] = [ | ||
.debug(name: "Development", xcconfig: Path.framework), | ||
.debug(name: "Test", xcconfig: Path.framework), | ||
.release(name: "QA", xcconfig: Path.framework), | ||
.release(name: "PROD", xcconfig: Path.framework), | ||
] | ||
|
||
public static let tests: [Configuration] = [ | ||
.debug(name: "Development", xcconfig: Path.tests), | ||
.debug(name: "Test", xcconfig: Path.tests), | ||
.release(name: "QA", xcconfig: Path.tests), | ||
.release(name: "PROD", xcconfig: Path.tests), | ||
] | ||
public static let demo: [Configuration] = [ | ||
.debug(name: "Development", xcconfig: Path.demo), | ||
.debug(name: "Test", xcconfig: Path.demo), | ||
.release(name: "QA", xcconfig: Path.demo), | ||
.release(name: "PROD", xcconfig: Path.demo), | ||
] | ||
public static let project: [Configuration] = [ | ||
.debug(name: "Development", xcconfig: Path.project("Development")), | ||
.debug(name: "Test", xcconfig: Path.project("Test")), | ||
.release(name: "QA", xcconfig: Path.project("QA")), | ||
.release(name: "PROD", xcconfig: Path.project("PROD")), | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import ProjectDescription | ||
|
||
let dependencyPlugin = Plugin(name: "DependencyPlugin") | ||
let dependencyPlugin = Plugin(name: "DependencyPlugin") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 74 additions & 0 deletions
74
Plugins/EnvPlugin/ProjectDescriptionHelpers/SettingDictionary+.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
// | ||
// SettingDictionary+.swift | ||
// EnvPlugin | ||
// | ||
// Created by 류희재 on 6/26/24. | ||
// | ||
|
||
import ProjectDescription | ||
|
||
// 아직 여기의 필요성은 못 느끼는중 무슨 역할을 하게 될지 궁금하다! | ||
|
||
public extension SettingsDictionary { | ||
// allLoadSettings와 baseSettings는 빌드 설정 딕셔너리의 기본값을 정의 | ||
static let allLoadSettings: Self = [ | ||
"OTHER_LDFLAGS" : [ | ||
"$(inherited) -all_load", | ||
"-Xlinker -interposable" | ||
] | ||
] | ||
|
||
static let baseSettings: Self = [ | ||
"OTHER_LDFLAGS" : [ | ||
"$(inherited)", | ||
"-ObjC" | ||
] | ||
] | ||
|
||
func setProductBundleIdentifier(_ value: String = "com.iOS$(BUNDLE_ID_SUFFIX)") -> SettingsDictionary { | ||
merging(["PRODUCT_BUNDLE_IDENTIFIER": SettingValue(stringLiteral: value)]) | ||
} | ||
|
||
func setAssetcatalogCompilerAppIconName(_ value: String = "AppIcon$(BUNDLE_ID_SUFFIX)") -> SettingsDictionary { | ||
merging(["ASSETCATALOG_COMPILER_APPICON_NAME": SettingValue(stringLiteral: value)]) | ||
} | ||
|
||
func setBuildActiveArchitectureOnly(_ value: Bool) -> SettingsDictionary { | ||
merging(["ONLY_ACTIVE_ARCH": SettingValue(stringLiteral: value ? "YES" : "NO")]) | ||
} | ||
|
||
func setExcludedArchitectures(sdk: String = "iphonesimulator*", _ value: String = "arm64") -> SettingsDictionary { | ||
merging(["EXCLUDED_ARCHS[sdk=\(sdk)]": SettingValue(stringLiteral: value)]) | ||
} | ||
|
||
func setSwiftActiveComplationConditions(_ value: String) -> SettingsDictionary { | ||
merging(["SWIFT_ACTIVE_COMPILATION_CONDITIONS": SettingValue(stringLiteral: value)]) | ||
} | ||
|
||
func setAlwaysSearchUserPath(_ value: String = "NO") -> SettingsDictionary { | ||
merging(["ALWAYS_SEARCH_USER_PATHS": SettingValue(stringLiteral: value)]) | ||
} | ||
|
||
func setStripDebugSymbolsDuringCopy(_ value: String = "NO") -> SettingsDictionary { | ||
merging(["COPY_PHASE_STRIP": SettingValue(stringLiteral: value)]) | ||
} | ||
|
||
func setDynamicLibraryInstallNameBase(_ value: String = "@rpath") -> SettingsDictionary { | ||
merging(["DYLIB_INSTALL_NAME_BASE": SettingValue(stringLiteral: value)]) | ||
} | ||
|
||
func setSkipInstall(_ value: Bool = false) -> SettingsDictionary { | ||
merging(["SKIP_INSTALL": SettingValue(stringLiteral: value ? "YES" : "NO")]) | ||
} | ||
|
||
func setCodeSignManual() -> SettingsDictionary { | ||
merging(["CODE_SIGN_STYLE": SettingValue(stringLiteral: "Manual")]) | ||
.merging(["DEVELOPMENT_TEAM": SettingValue(stringLiteral: "9K86FQHDLU")]) | ||
.merging(["CODE_SIGN_IDENTITY": SettingValue(stringLiteral: "$(CODE_SIGN_IDENTITY)")]) | ||
} | ||
|
||
func setProvisioning() -> SettingsDictionary { | ||
merging(["PROVISIONING_PROFILE_SPECIFIER": SettingValue(stringLiteral: "$(APP_PROVISIONING_PROFILE)")]) | ||
.merging(["PROVISIONING_PROFILE": SettingValue(stringLiteral: "$(APP_PROVISIONING_PROFILE)")]) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
Projects/App/Tests/Resources/Assets.xcassets/AccentColor.colorset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"colors" : [ | ||
{ | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Oops, something went wrong.