@@ -48,38 +48,42 @@ let externalDependencies: [TargetDependency] = [
4848
4949// MARK: Target - Infomation
5050let developmentTeam = Environment . developmentTeam. getString ( default: " None " )
51- let marketingVersion = Environment . appVersion. getString ( default: " 1.0.0 " )
51+ let appVersion = Environment . appVersion. getString ( default: " 1.0.0 " )
5252
5353let baseSetting = SettingsDictionary ( )
5454 . swiftVersion ( " 6.0 " )
5555 . bitcodeEnabled ( false )
56- . marketingVersion ( marketingVersion )
56+ . marketingVersion ( appVersion )
5757 . otherLinkerFlags ( [ " -ObjC " ] )
5858 . automaticCodeSigning ( devTeam: developmentTeam)
5959
6060let debugSetting = SettingsDictionary ( )
6161
6262let releaseSetting = SettingsDictionary ( )
6363
64+ // MARK: Plist
65+ let infoPlist : InfoPlist = . extendingDefault(
66+ with: [
67+ " UILaunchScreen " : [
68+ " UIColorName " : " " ,
69+ " UIImageName " : " " ,
70+ ] ,
71+ " CFBundleShortVersionString " : . string( appVersion) ,
72+ " NSHumanReadableCopyright " : . string( " ©2025 Bonsung Koo. All rights reserved. " ) ,
73+ " NSLocationWhenInUseUsageDescription " : . string( " Surcharges uses your location to provide nearest places to you. " ) ,
74+ " NSCameraUsageDescription " : . string( " Surcharges uses your camera to take your receipt. " ) ,
75+ " ITSAppUsesNonExemptEncryption " : . boolean( false ) ,
76+ ]
77+ )
78+
6479// MARK: Target - Prod
6580let surcharges = Target . target (
6681 name: " Surcharges " ,
6782 destinations: [ . iPhone, . iPad, . mac] ,
6883 product: . app,
6984 bundleId: " nz.surcharges " ,
7085 deploymentTargets: . multiplatform( iOS: " 17.0 " , macOS: " 13.0 " ) ,
71- infoPlist: . extendingDefault(
72- with: [
73- " UILaunchScreen " : [
74- " UIColorName " : " " ,
75- " UIImageName " : " " ,
76- ] ,
77- " NSHumanReadableCopyright " : . string( " ©2025 Bonsung Koo. All rights reserved. " ) ,
78- " NSLocationWhenInUseUsageDescription " : . string( " Surcharges uses your location to provide nearest places to you. " ) ,
79- " NSCameraUsageDescription " : . string( " Surcharges uses your camera to take your receipt. " ) ,
80- " ITSAppUsesNonExemptEncryption " : . boolean( false ) ,
81- ]
82- ) ,
86+ infoPlist: infoPlist,
8387 sources: [ " Sources/Commons/** " , " Sources/Prod/** " ] ,
8488 resources: . resources(
8589 [
@@ -105,18 +109,7 @@ let surchargesDev = Target.target(
105109 product: . app,
106110 bundleId: " nz.surcharges.development " ,
107111 deploymentTargets: . multiplatform( iOS: " 17.0 " , macOS: " 13.0 " ) ,
108- infoPlist: . extendingDefault(
109- with: [
110- " UILaunchScreen " : [
111- " UIColorName " : " " ,
112- " UIImageName " : " " ,
113- ] ,
114- " NSHumanReadableCopyright " : . string( " ©2025 Bonsung Koo. All rights reserved. " ) ,
115- " NSLocationWhenInUseUsageDescription " : . string( " Surcharges uses your location to provide nearest places to you. " ) ,
116- " NSCameraUsageDescription " : . string( " Surcharges uses your camera to take your receipt. " ) ,
117- " ITSAppUsesNonExemptEncryption " : . boolean( false ) ,
118- ]
119- ) ,
112+ infoPlist: infoPlist,
120113 sources: [ " Sources/Commons/** " , " Sources/Dev/** " ] ,
121114 resources: . resources(
122115 [
0 commit comments