11default_platform :ios
2- import " ../../Fastfile"
2+ import ' ../../Fastfile'
33
44default_platform ( :ios )
55
66before_all do
7- if is_ci
8- setup_ci ( )
9- end
7+ setup_ci if is_ci
108end
119
1210platform :ios do
13-
1411 lane :archive do |options |
1512 method = options [ :method ]
1613
@@ -19,7 +16,7 @@ platform :ios do
1916 silent : true ,
2017 clean : true ,
2118 include_symbols : true ,
22- output_directory : " ./dist" ,
19+ output_directory : ' ./dist' ,
2320 )
2421 end
2522
@@ -28,7 +25,6 @@ platform :ios do
2825 fetch_dependencies
2926 build_autogenerated_code
3027
31-
3228 sign_enabled = options [ :sign_enabled ] || false
3329 sign_param = sign_enabled ? '' : '--no-codesign'
3430
@@ -41,10 +37,10 @@ platform :ios do
4137 lane :build_and_deploy do
4238 match (
4339 api_key : appstore_api_key ,
44- type : " appstore" ,
40+ type : ' appstore' ,
4541 app_identifier : [
46- " io.getstream.video.flutter.dogfooding" ,
47- " io.getstream.video.flutter.dogfooding.ScreenSharing" ,
42+ ' io.getstream.video.flutter.dogfooding' ,
43+ ' io.getstream.video.flutter.dogfooding.ScreenSharing' ,
4844 ] ,
4945 readonly : is_ci ,
5046 force_for_new_devices : false ,
@@ -53,45 +49,45 @@ platform :ios do
5349 current_build_number = app_store_build_number (
5450 api_key : appstore_api_key ,
5551 live : false ,
56- app_identifier : " io.getstream.video.flutter.dogfooding" ,
57- username : ENV [ " FASTLANE_APPLE_ID" ] ,
58- team_id : " EHV7XZLAHA" ,
59- platform : " ios" ,
52+ app_identifier : ' io.getstream.video.flutter.dogfooding' ,
53+ username : ENV [ ' FASTLANE_APPLE_ID' ] ,
54+ team_id : ' EHV7XZLAHA' ,
55+ platform : ' ios' ,
6056 )
61-
57+
6258 increment_build_number ( build_number : current_build_number + 1 )
6359
6460 build ( sign_enabled : true )
65- archive ( method : " app-store" )
61+ archive ( method : ' app-store' )
6662
6763 begin
6864 upload_to_testflight (
6965 api_key : appstore_api_key ,
7066 distribute_external : true ,
7167 notify_external_testers : true ,
7268 groups : [ 'Internal Testers' , 'External Testers' ] ,
73- changelog : " Lots of amazing new features to test out!" ,
69+ changelog : ' Lots of amazing new features to test out!' ,
7470 reject_build_waiting_for_review : false ,
7571 skip_waiting_for_build_processing : false ,
7672 )
7773 rescue Exception => e
78- if e . message . include? " Another build is in review"
79- UI . important ( " Another build is already in beta review. Skipping beta review submission" )
74+ if e . message . include? ' Another build is in review'
75+ UI . important ( ' Another build is already in beta review. Skipping beta review submission' )
8076 else
8177 UI . user_error! ( e )
8278 end
8379 end
8480 end
8581
8682 private_lane :appstore_api_key do
87- appstore_api_key ||= app_store_connect_api_key (
88- key_id : 'MT3PRT8TB7' ,
89- issuer_id : '69a6de96-0738-47e3-e053-5b8c7c11a4d1' ,
90- key_content : File . read ( File . expand_path ( '~/.ssh/appstore_api_key' ) ) ,
91- in_house : false
92- )
93- end
94-
83+ @ appstore_api_key ||= app_store_connect_api_key (
84+ key_id : 'MT3PRT8TB7' ,
85+ issuer_id : '69a6de96-0738-47e3-e053-5b8c7c11a4d1' ,
86+ key_content : ENV . fetch ( 'APPSTORE_API_KEY' , nil ) ,
87+ in_house : false
88+ )
89+ end
90+
9591 desc "If `readonly: true` (by default), installs all Certs and Profiles necessary for development and ad-hoc.\n If `readonly: false`, recreates all Profiles necessary for development and ad-hoc, updates them locally and remotely."
9692 desc "If `register_device: false` (by default), no device registration.\n If `register_device: true`, will register a new device."
9793 lane :match_me do |options |
@@ -102,7 +98,7 @@ platform :ios do
10298 name : device_name ,
10399 udid : device_udid ,
104100 api_key : appstore_api_key ,
105- )
101+ )
106102 options [ :readonly ] = false
107103 end
108104 app_identifiers = [
@@ -119,5 +115,4 @@ platform :ios do
119115 )
120116 end
121117 end
122-
123- end
118+ end
0 commit comments