Skip to content

Commit bcc6e3b

Browse files
committed
feat: tuist 모듈 매니페스트 구성
1 parent dca2e30 commit bcc6e3b

9 files changed

Lines changed: 186 additions & 0 deletions

File tree

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
import ProjectDescription
2+
import ProjectDescriptionHelpers
3+
4+
let project = Project(
5+
name: "DevLogApp",
6+
targets: [
7+
.target(
8+
name: "DevLog",
9+
destinations: .iOS,
10+
product: .app,
11+
bundleId: "opfic.DevLog",
12+
deploymentTargets: .iOS("17.0"),
13+
infoPlist: .file(path: "Sources/Resource/Info.plist"),
14+
sources: ["Sources/**"],
15+
resources: [
16+
"Sources/Resource/**",
17+
"!Sources/Resource/Info.plist",
18+
"!Sources/Resource/*.entitlements",
19+
"!Sources/Resource/*.xcconfig",
20+
],
21+
entitlements: .file(path: "Sources/Resource/DevLog.entitlements"),
22+
dependencies: [
23+
.project(target: "DevLogPresentation", path: "../DevLogPresentation"),
24+
.project(target: "DevLogPersistence", path: "../DevLogPersistence"),
25+
.project(target: "DevLogInfra", path: "../DevLogInfra"),
26+
.project(target: "DevLogData", path: "../DevLogData"),
27+
.project(target: "DevLogDomain", path: "../DevLogDomain"),
28+
.project(target: "DevLogCore", path: "../DevLogCore"),
29+
.project(target: "DevLogWidgetCore", path: "../../Widget/DevLogWidgetCore"),
30+
.project(target: "DevLogWidgetExtension", path: "../../Widget/DevLogWidgetExtension"),
31+
DevLogPackages.swiftLintPlugin,
32+
],
33+
settings: .devlog(
34+
versionXcconfigPath: "../Shared/Version.xcconfig",
35+
base: [
36+
"ASSETCATALOG_COMPILER_APPICON_NAME": "AppIcon",
37+
"CODE_SIGN_STYLE": "Automatic",
38+
"DEVELOPMENT_TEAM": DevLogSigning.teamID,
39+
"IPHONEOS_DEPLOYMENT_TARGET": "17.0",
40+
]
41+
)
42+
),
43+
.testTarget(
44+
name: "DevLogAppTests",
45+
destinations: .iOS,
46+
product: .unitTests,
47+
bundleId: "opfic.DevLogAppTests",
48+
infoPlist: .default,
49+
sources: ["Tests/**"],
50+
dependencies: [
51+
.target(name: "DevLog"),
52+
],
53+
settings: .devlog(
54+
base: [
55+
"BUNDLE_LOADER": "$(TEST_HOST)",
56+
"CODE_SIGN_STYLE": "Automatic",
57+
"DEVELOPMENT_TEAM": DevLogSigning.teamID,
58+
"IPHONEOS_DEPLOYMENT_TARGET": "17.0",
59+
"TEST_HOST": "$(BUILT_PRODUCTS_DIR)/DevLog.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/DevLog",
60+
"TEST_TARGET_NAME": "DevLog",
61+
]
62+
)
63+
),
64+
]
65+
)
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import ProjectDescription
2+
import ProjectDescriptionHelpers
3+
4+
let project = Project.devlogFramework(
5+
name: "DevLogCore",
6+
bundleId: "com.opfic.DevLog.DevLogCore",
7+
versionXcconfigPath: "../Shared/Version.xcconfig",
8+
hasTests: false
9+
)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import ProjectDescription
2+
import ProjectDescriptionHelpers
3+
4+
let project = Project.devlogFramework(
5+
name: "DevLogData",
6+
bundleId: "com.opfic.DevLog.DevLogData",
7+
versionXcconfigPath: "../Shared/Version.xcconfig",
8+
dependencies: [
9+
.project(target: "DevLogDomain", path: "../DevLogDomain"),
10+
.project(target: "DevLogCore", path: "../DevLogCore"),
11+
],
12+
hasTests: true
13+
)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import ProjectDescription
2+
import ProjectDescriptionHelpers
3+
4+
let project = Project.devlogFramework(
5+
name: "DevLogDomain",
6+
bundleId: "com.opfic.DevLog.DevLogDomain",
7+
versionXcconfigPath: "../Shared/Version.xcconfig",
8+
dependencies: [
9+
.project(target: "DevLogCore", path: "../DevLogCore"),
10+
],
11+
hasTests: true
12+
)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import ProjectDescription
2+
import ProjectDescriptionHelpers
3+
4+
let project = Project.devlogFramework(
5+
name: "DevLogInfra",
6+
bundleId: "com.opfic.DevLog.DevLogInfra",
7+
versionXcconfigPath: "../Shared/Version.xcconfig",
8+
dependencies: [
9+
.project(target: "DevLogData", path: "../DevLogData"),
10+
.project(target: "DevLogDomain", path: "../DevLogDomain"),
11+
.project(target: "DevLogCore", path: "../DevLogCore"),
12+
] + DevLogPackages.infraPackages,
13+
hasTests: true
14+
)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import ProjectDescription
2+
import ProjectDescriptionHelpers
3+
4+
let project = Project.devlogFramework(
5+
name: "DevLogPersistence",
6+
bundleId: "com.opfic.DevLog.DevLogPersistence",
7+
versionXcconfigPath: "../Shared/Version.xcconfig",
8+
dependencies: [
9+
.project(target: "DevLogData", path: "../DevLogData"),
10+
.project(target: "DevLogCore", path: "../DevLogCore"),
11+
.project(target: "DevLogWidgetCore", path: "../../Widget/DevLogWidgetCore"),
12+
],
13+
hasTests: true
14+
)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import ProjectDescription
2+
import ProjectDescriptionHelpers
3+
4+
let project = Project.devlogFramework(
5+
name: "DevLogPresentation",
6+
bundleId: "com.opfic.DevLog.DevLogPresentation",
7+
versionXcconfigPath: "../Shared/Version.xcconfig",
8+
dependencies: [
9+
.project(target: "DevLogDomain", path: "../DevLogDomain"),
10+
.project(target: "DevLogCore", path: "../DevLogCore"),
11+
] + DevLogPackages.presentationPackages,
12+
hasTests: true
13+
)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import ProjectDescription
2+
import ProjectDescriptionHelpers
3+
4+
let project = Project.devlogFramework(
5+
name: "DevLogWidgetCore",
6+
bundleId: "com.opfic.DevLog.DevLogWidgetCore",
7+
versionXcconfigPath: "../../Application/Shared/Version.xcconfig",
8+
dependencies: [
9+
.project(target: "DevLogCore", path: "../../Application/DevLogCore"),
10+
],
11+
hasTests: true
12+
)
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import ProjectDescription
2+
import ProjectDescriptionHelpers
3+
4+
let project = Project(
5+
name: "DevLogWidgetExtension",
6+
targets: [
7+
.target(
8+
name: "DevLogWidgetExtension",
9+
destinations: .iOS,
10+
product: .appExtension,
11+
bundleId: "opfic.DevLog.DevLogWidget",
12+
deploymentTargets: .iOS("17.0"),
13+
infoPlist: .file(path: "Resource/Info.plist"),
14+
sources: ["**/*.swift"],
15+
resources: [
16+
"Resource/**",
17+
"!Resource/Info.plist",
18+
"!Resource/*.entitlements",
19+
],
20+
entitlements: .file(path: "Resource/DevLogWidget.entitlements"),
21+
dependencies: [
22+
.project(target: "DevLogWidgetCore", path: "../DevLogWidgetCore"),
23+
],
24+
settings: .devlog(
25+
versionXcconfigPath: "../../Application/Shared/Version.xcconfig",
26+
base: [
27+
"CODE_SIGN_STYLE": "Automatic",
28+
"DEVELOPMENT_TEAM": DevLogSigning.teamID,
29+
"IPHONEOS_DEPLOYMENT_TARGET": "17.0",
30+
]
31+
)
32+
),
33+
]
34+
)

0 commit comments

Comments
 (0)