Skip to content

Commit c3ed403

Browse files
committed
🎨 refactor config.yml file
1 parent af6e211 commit c3ed403

File tree

5 files changed

+15
-28
lines changed

5 files changed

+15
-28
lines changed

Diff for: ‎BaseSwiftUI/Config/xcconfigs/dev.xcconfig

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
APP_NAME = [DEV]SwiftUI
1212
PRODUCT_BUNDLE_IDENTIFIER = ngocpd.SwiftUIBase.dev
13+
APP_VERSION = 1.0.0
14+
APP_BUILD_VERSION = 1
1315

1416
// API:
1517
API_ENDPOINT = https:\/\/api.themoviedb.org

Diff for: ‎BaseSwiftUI/Config/xcconfigs/production.xcconfig

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
APP_NAME = [PROD]SwiftUI
1212
PRODUCT_BUNDLE_IDENTIFIER = ngocpd.SwiftUIBase.production
13+
APP_VERSION = 0.0.9
14+
APP_BUILD_VERSION = 1
1315

1416
// API:
1517
API_ENDPOINT = https:\/\/api.themoviedb.org

Diff for: ‎BaseSwiftUI/Config/xcconfigs/staging.xcconfig

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
APP_NAME = [STG]SwiftUI
1212
PRODUCT_BUNDLE_IDENTIFIER = ngocpd.SwiftUIBase.staging
13+
APP_VERSION = 0.0.9
14+
APP_BUILD_VERSION = 1
1315

1416
// API:
1517
API_ENDPOINT = https:\/\/api.themoviedb.org

Diff for: ‎BaseSwiftUI/Info.plist

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<key>CFBundlePackageType</key>
2020
<string>APPL</string>
2121
<key>CFBundleShortVersionString</key>
22-
<string>$(MARKETING_VERSION)</string>
22+
<string>$(APP_VERSION)</string>
2323
<key>CFBundleURLTypes</key>
2424
<array>
2525
<dict>
@@ -30,7 +30,7 @@
3030
</dict>
3131
</array>
3232
<key>CFBundleVersion</key>
33-
<string>$(CURRENT_PROJECT_VERSION)</string>
33+
<string>$(APP_BUILD_VERSION)</string>
3434
<key>LSRequiresIPhoneOS</key>
3535
<true/>
3636
<key>UIApplicationSceneManifest</key>

Diff for: ‎project.yml

+7-26
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ targets: # The List of our targets
5959
path: BaseSwiftUI/Info.plist
6060
properties:
6161
CFBundleName: $(APP_NAME)
62-
CFBundleVersion: $(CURRENT_PROJECT_VERSION)
63-
CFBundleShortVersionString: $(MARKETING_VERSION)
62+
CFBundleVersion: $(APP_BUILD_VERSION)
63+
CFBundleShortVersionString: $(APP_VERSION)
6464
API_ENDPOINT: $(API_ENDPOINT)
6565
API_VERSION: $(API_VERSION)
6666
LSRequiresIPhoneOS: YES
@@ -89,49 +89,30 @@ targets: # The List of our targets
8989
base:
9090
TARGETED_DEVICE_FAMILY: 1
9191
OTHER_SWIFT_FLAGS: $(inherited) $(SWIFT_FLAGS)
92+
PROVISIONING_PROFILE_SPECIFIER: $(APP_PROVISIONING_PROFILE_SPECIFIER)
93+
MARKETING_VERSION: $(APP_VERSION)
94+
CURRENT_PROJECT_VERSION: $(APP_BUILD_VERSION)
95+
VERSIONING_SYSTEM: Apple Generic
96+
PRODUCT_BUNDLE_IDENTIFIER: $(PRODUCT_BUNDLE_IDENTIFIER)
9297
configs:
9398
Dev Debug:
9499
CODE_SIGN_IDENTITY: iPhone Developer
95100
PROVISIONING_PROFILE_SPECIFIER: Development Provisioning
96-
MARKETING_VERSION: 1.0.0
97-
CURRENT_PROJECT_VERSION: 1
98-
VERSIONING_SYSTEM: Apple Generic
99-
PRODUCT_BUNDLE_IDENTIFIER: $(PRODUCT_BUNDLE_IDENTIFIER)
100101
Dev Release:
101102
CODE_SIGN_IDENTITY: iPhone Distribution
102103
PROVISIONING_PROFILE_SPECIFIER: Distribution Provisioning
103-
MARKETING_VERSION: 1.0.0
104-
CURRENT_PROJECT_VERSION: 1
105-
VERSIONING_SYSTEM: Apple Generic
106-
PRODUCT_BUNDLE_IDENTIFIER: $(PRODUCT_BUNDLE_IDENTIFIER)
107104
Staging Debug:
108105
CODE_SIGN_IDENTITY: iPhone Developer
109106
PROVISIONING_PROFILE_SPECIFIER: Development Provisioning
110-
MARKETING_VERSION: 1.0.0
111-
CURRENT_PROJECT_VERSION: 1
112-
VERSIONING_SYSTEM: Apple Generic
113-
PRODUCT_BUNDLE_IDENTIFIER: $(PRODUCT_BUNDLE_IDENTIFIER)
114107
Staging Release:
115108
CODE_SIGN_IDENTITY: iPhone Distribution
116109
PROVISIONING_PROFILE_SPECIFIER: Distribution Provisioning
117-
MARKETING_VERSION: 1.0.0
118-
CURRENT_PROJECT_VERSION: 1
119-
VERSIONING_SYSTEM: Apple Generic
120-
PRODUCT_BUNDLE_IDENTIFIER: $(PRODUCT_BUNDLE_IDENTIFIER)
121110
Production Debug:
122111
CODE_SIGN_IDENTITY: iPhone Developer
123112
PROVISIONING_PROFILE_SPECIFIER: Development Provisioning
124-
MARKETING_VERSION: 1.0.0
125-
CURRENT_PROJECT_VERSION: 1
126-
VERSIONING_SYSTEM: Apple Generic
127-
PRODUCT_BUNDLE_IDENTIFIER: $(PRODUCT_BUNDLE_IDENTIFIER)
128113
Production Release:
129114
CODE_SIGN_IDENTITY: iPhone Distribution
130115
PROVISIONING_PROFILE_SPECIFIER: Distribution Provisioning
131-
MARKETING_VERSION: 1.0.0
132-
CURRENT_PROJECT_VERSION: 1
133-
VERSIONING_SYSTEM: Apple Generic
134-
PRODUCT_BUNDLE_IDENTIFIER: $(PRODUCT_BUNDLE_IDENTIFIER)
135116
preBuildScripts:
136117
- name: Swiftlint
137118
basedOnDependencyAnalysis: false

0 commit comments

Comments
 (0)