Skip to content

Commit f5f1321

Browse files
committed
Add app icon for beta version
1 parent fe133e9 commit f5f1321

File tree

15 files changed

+41
-6
lines changed

15 files changed

+41
-6
lines changed

Configs/App.xcconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
#include "Secrets.xcconfig"
22
MARKETING_VERSION = 0.8.0
33
CURRENT_PROJECT_VERSION = 817
4+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon-Stable

Fastlane/Fastfile

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,22 @@ platform :ios do
3838

3939
desc "Uploads to TestFlight"
4040
lane :upload do |options|
41-
run_tests = options[:run_tests] || false
41+
print_lane_options("Uploads to Testflight", {
42+
scheme: { desctiption: "Scheme: beta or stable", default: "beta" }
43+
})
44+
45+
scheme = options[:scheme] || "beta"
46+
47+
update_xcconfig_value(
48+
path: 'Configs/App.xcconfig',
49+
name: 'ASSETCATALOG_COMPILER_APPICON_NAME',
50+
value: 'AppIcon-#{scheme.capitalize}'
51+
)
52+
4253
prepare_certificates
4354
update_build_number
4455
run_tuist(testflight: true)
56+
run_tests = options[:run_tests] || false
4557
tests if run_tests
4658
build_ipa
4759
upload_dsym_to_sentry
@@ -54,9 +66,18 @@ platform :ios do
5466
desc "One-off upload to TF without tests/notify/bump"
5567
lane :upload_oneoff do |options|
5668
print_lane_options("One-off upload to TF without tests/notify/bump", {
57-
build_number: { description: "Sets specific build number" }
69+
build_number: { description: "Sets specific build number" },
70+
scheme: { desctiption: "Scheme: beta or stable.", default: "beta" }
5871
})
5972

73+
scheme = options[:scheme] || "beta"
74+
75+
update_xcconfig_value(
76+
path: 'Configs/App.xcconfig',
77+
name: 'ASSETCATALOG_COMPILER_APPICON_NAME',
78+
value: 'AppIcon-#{scheme.capitalize}'
79+
)
80+
6081
prepare_certificates
6182
update_build_number(build_number: options[:build_number])
6283
run_tuist(testflight: true)
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"images" : [
33
{
4-
"filename" : "appicon-light.png",
4+
"filename" : "appicon-beta.png",
55
"idiom" : "universal",
66
"platform" : "ios",
77
"size" : "1024x1024"
@@ -13,7 +13,7 @@
1313
"value" : "dark"
1414
}
1515
],
16-
"filename" : "appicon-dark.png",
16+
"filename" : "appicon-beta-dark.png",
1717
"idiom" : "universal",
1818
"platform" : "ios",
1919
"size" : "1024x1024"
@@ -25,7 +25,7 @@
2525
"value" : "tinted"
2626
}
2727
],
28-
"filename" : "appicon-tinted.png",
28+
"filename" : "appicon-beta-tinted.png",
2929
"idiom" : "universal",
3030
"platform" : "ios",
3131
"size" : "1024x1024"
262 KB
Loading
154 KB
Loading
390 KB
Loading
75 KB
Loading

0 commit comments

Comments
 (0)