@@ -39,16 +39,15 @@ platform :ios do
3939 desc "Uploads to TestFlight"
4040 lane :upload do |options |
4141 print_lane_options ( "Uploads to Testflight" , {
42- scheme : { desctiption : "Scheme : beta or stable" , default : "beta" }
42+ release : { desctiption : "Release channel : beta or stable" , default : "beta" }
4343 } )
4444
45- scheme = options [ :scheme ] || "beta"
46- appIconName = "AppIcon-#{ scheme . capitalize } "
45+ release_channel = ( options [ :release ] || "beta" ) . capitalize
4746
4847 update_xcconfig_value (
4948 path : 'Configs/App.xcconfig' ,
50- name : 'ASSETCATALOG_COMPILER_APPICON_NAME ' ,
51- value : appIconName
49+ name : 'RELEASE_CHANNEL ' ,
50+ value : release_channel
5251 )
5352
5453 prepare_certificates
@@ -68,15 +67,15 @@ platform :ios do
6867 lane :upload_oneoff do |options |
6968 print_lane_options ( "One-off upload to TF without tests/notify/bump" , {
7069 build_number : { description : "Sets specific build number" } ,
71- scheme : { desctiption : "Scheme : beta or stable. " , default : "beta" }
70+ release : { desctiption : "Release channel : beta or stable" , default : "beta" }
7271 } )
7372
74- scheme = options [ :scheme ] || "beta"
73+ release_channel = ( options [ :release ] || "beta" ) . capitalize
7574
7675 update_xcconfig_value (
7776 path : 'Configs/App.xcconfig' ,
78- name : 'ASSETCATALOG_COMPILER_APPICON_NAME ' ,
79- value : 'AppIcon-#{scheme.capitalize}'
77+ name : 'RELEASE_CHANNEL ' ,
78+ value : release_channel
8079 )
8180
8281 prepare_certificates
0 commit comments