@@ -6,6 +6,7 @@ let project = AppLayer().project
66struct AppLayer : Layer {
77
88 var name : String { " Satto " }
9+ var options : Project . Options { . options( automaticSchemesOptions: . disabled) }
910 var targets : [ Target ] {
1011 [
1112 . createTarget(
@@ -14,6 +15,7 @@ struct AppLayer: Layer {
1415 bundleId: " com.hanbang.satto " ,
1516 infoPlist: . extendingDefault(
1617 with: [
18+ " CFBundleDisplayName " : " $(APP_NAME) " ,
1719 " UIApplicationSceneManifest " : [
1820 " UIApplicationSupportsMultipleScenes " : false ,
1921 " UISceneConfigurations " : [
@@ -29,8 +31,51 @@ struct AppLayer: Layer {
2931 ) ,
3032 sources: [ " Sources/** " ] ,
3133 resources: [ " Resources/** " ] ,
32- dependencies: [ . project( target: " FeatureLayer " , path: " ../Feature " ) ]
34+ dependencies: [ . project( target: " FeatureLayer " , path: " ../Feature " ) ] ,
35+ settings: . settings(
36+ base: [
37+ " PRODUCT_BUNDLE_IDENTIFIER " : " $(APP_IDENTIFIER) "
38+ ] ,
39+ configurations: [
40+ . debug(
41+ name: . debug,
42+ settings: [
43+ " APP_IDENTIFIER " : " com.hanbang.satto.debug " ,
44+ " APP_NAME " : " Satto Debug " ,
45+ " OTHER_SWIFT_FLAGS " : " $(inherited) -DDEBUG "
46+ ]
47+ ) ,
48+ . release(
49+ name: . release,
50+ settings: [
51+ " APP_IDENTIFIER " : " com.hanbang.satto " ,
52+ " APP_NAME " : " Satto " ,
53+ " OTHER_SWIFT_FLAGS " : " $(inherited) -DRELEASE "
54+ ]
55+ ) ,
56+ ]
57+ )
3358 )
3459 ]
3560 }
61+ var schemes : [ Scheme ] {
62+ [
63+ . scheme(
64+ name: " \( name) -debug " ,
65+ buildAction: . buildAction( targets: [ . project( path: " ./ " , target: name) ] ) ,
66+ runAction: . runAction( configuration: . debug) ,
67+ archiveAction: . archiveAction( configuration: . debug) ,
68+ profileAction: . profileAction( configuration: . debug) ,
69+ analyzeAction: . analyzeAction( configuration: . debug)
70+ ) ,
71+ . scheme(
72+ name: " \( name) -release " ,
73+ buildAction: . buildAction( targets: [ . project( path: " ./ " , target: name) ] ) ,
74+ runAction: . runAction( configuration: . release) ,
75+ archiveAction: . archiveAction( configuration: . release) ,
76+ profileAction: . profileAction( configuration: . release) ,
77+ analyzeAction: . analyzeAction( configuration: . release)
78+ ) ,
79+ ]
80+ }
3681}
0 commit comments