@@ -8,8 +8,6 @@ import Foundation
88let isCI : Bool = ( ProcessInfo . processInfo. environment [ " TUIST_CI " ] ?? " 0 " ) == " 1 "
99
1010let configurations : [ Configuration ] = [
11- . debug( name: " Debug " , settings: [ : ] ) ,
12- . release( name: " Release " , settings: [ : ] ) ,
1311 . debug( name: " DEV " , xcconfig: . relativeToXCConfig( type: . dev, name: env. targetName) ) ,
1412 . debug( name: " STAGE " , xcconfig: . relativeToXCConfig( type: . stage, name: env. targetName) ) ,
1513 . release( name: " PROD " , xcconfig: . relativeToXCConfig( type: . prod, name: env. targetName) )
@@ -38,12 +36,7 @@ let targets: [Target] = [
3836 dependencies: [
3937 . Projects. flow,
4038 . SPM. FCM
41- ] ,
42- settings: . settings(
43- base: env. baseSetting,
44- configurations: configurations,
45- defaultSettings: . recommended
46- )
39+ ]
4740 ) ,
4841 . target(
4942 name: env. targetTestName,
@@ -55,8 +48,7 @@ let targets: [Target] = [
5548 sources: . unitTests,
5649 dependencies: [
5750 . target( name: env. targetName)
58- ] ,
59- settings: settings
51+ ]
6052 )
6153]
6254
@@ -67,36 +59,36 @@ let schemes: [Scheme] = [
6759 buildAction: . buildAction( targets: [ " \( env. targetName) " ] ) ,
6860 testAction: TestAction . targets (
6961 [ " \( env. targetTestName) " ] ,
70- configuration: " DEV " ,
62+ configuration: . dev ,
7163 options: TestActionOptions . options (
7264 coverage: true ,
7365 codeCoverageTargets: [ " \( env. targetName) " ]
7466 )
7567 ) ,
76- runAction: RunAction . runAction ( configuration: " DEV " ) ,
77- archiveAction: ArchiveAction . archiveAction ( configuration: " DEV " ) ,
78- profileAction: ProfileAction . profileAction ( configuration: " DEV " ) ,
79- analyzeAction: AnalyzeAction . analyzeAction ( configuration: " DEV " )
68+ runAction: RunAction . runAction ( configuration: . dev ) ,
69+ archiveAction: ArchiveAction . archiveAction ( configuration: . dev ) ,
70+ profileAction: ProfileAction . profileAction ( configuration: . dev ) ,
71+ analyzeAction: AnalyzeAction . analyzeAction ( configuration: . dev )
8072 ) ,
8173 Scheme . scheme (
8274 name: " \( env. targetName) -PROD " ,
8375 shared: true ,
8476 buildAction: . buildAction( targets: [ " \( env. targetName) " ] ) ,
8577 testAction: nil ,
86- runAction: RunAction . runAction ( configuration: " PROD " ) ,
87- archiveAction: ArchiveAction . archiveAction ( configuration: " PROD " ) ,
88- profileAction: ProfileAction . profileAction ( configuration: " PROD " ) ,
89- analyzeAction: AnalyzeAction . analyzeAction ( configuration: " PROD " )
78+ runAction: RunAction . runAction ( configuration: . prod ) ,
79+ archiveAction: ArchiveAction . archiveAction ( configuration: . prod ) ,
80+ profileAction: ProfileAction . profileAction ( configuration: . prod ) ,
81+ analyzeAction: AnalyzeAction . analyzeAction ( configuration: . prod )
9082 ) ,
9183 Scheme . scheme (
9284 name: " \( env. targetName) -STAGE " ,
9385 shared: true ,
9486 buildAction: . buildAction( targets: [ " \( env. targetName) " ] ) ,
9587 testAction: nil ,
96- runAction: RunAction . runAction ( configuration: " STAGE " ) ,
97- archiveAction: ArchiveAction . archiveAction ( configuration: " STAGE " ) ,
98- profileAction: ProfileAction . profileAction ( configuration: " STAGE " ) ,
99- analyzeAction: AnalyzeAction . analyzeAction ( configuration: " STAGE " )
88+ runAction: RunAction . runAction ( configuration: . stage ) ,
89+ archiveAction: ArchiveAction . archiveAction ( configuration: . stage ) ,
90+ profileAction: ProfileAction . profileAction ( configuration: . stage ) ,
91+ analyzeAction: AnalyzeAction . analyzeAction ( configuration: . stage )
10092 )
10193]
10294
0 commit comments