@@ -70,7 +70,7 @@ GH_ORG_NAME="woocommerce"
7070 desc "Creates a new release branch from the current develop"
7171 lane :code_freeze do | options |
7272 old_version = ios_codefreeze_prechecks ( options )
73-
73+
7474 ios_bump_version_release ( )
7575 new_version = ios_get_app_version ( )
7676 ios_update_release_notes ( new_version : new_version )
@@ -130,8 +130,8 @@ GH_ORG_NAME="woocommerce"
130130 "app_store_screenshot-5" => File . join ( source_metadata_folder , "promo_screenshot_5.txt" ) ,
131131 }
132132
133- ios_update_metadata_source ( po_file_path : prj_folder + "/WooCommerce/Resources/AppStoreStrings.pot" ,
134- source_files : files ,
133+ ios_update_metadata_source ( po_file_path : prj_folder + "/WooCommerce/Resources/AppStoreStrings.pot" ,
134+ source_files : files ,
135135 release_version : options [ :version ] )
136136 end
137137
@@ -164,7 +164,7 @@ GH_ORG_NAME="woocommerce"
164164 #####################################################################################
165165 # new_hotfix_release
166166 # -----------------------------------------------------------------------------------
167- # This lane creates the release branch for a new hotfix release.
167+ # This lane creates the release branch for a new hotfix release.
168168 # -----------------------------------------------------------------------------------
169169 # Usage:
170170 # bundle exec fastlane new_hotfix_release [skip_confirm:<skip confirm>] [version:<version>]
@@ -182,13 +182,13 @@ GH_ORG_NAME="woocommerce"
182182 #####################################################################################
183183 # finalize_hotfix_release
184184 # -----------------------------------------------------------------------------------
185- # This lane finalizes the hotfix branch.
185+ # This lane finalizes the hotfix branch.
186186 # -----------------------------------------------------------------------------------
187187 # Usage:
188188 # bundle exec fastlane finalize_hotfix_release [skip_confirm:<skip confirm>]
189189 #
190190 # Example:
191- # bundle exec fastlane finalize_hotfix_release skip_confirm:true
191+ # bundle exec fastlane finalize_hotfix_release skip_confirm:true
192192 #####################################################################################
193193 desc "Creates a new hotfix branch from the given tag"
194194 lane :finalize_hotfix_release do | options |
@@ -200,15 +200,15 @@ GH_ORG_NAME="woocommerce"
200200 #####################################################################################
201201 # finalize_release
202202 # -----------------------------------------------------------------------------------
203- # This lane finalize a release: updates store metadata, pushes the final tag and
203+ # This lane finalize a release: updates store metadata, pushes the final tag and
204204 # cleans all the temp ones
205205 # -----------------------------------------------------------------------------------
206206 # Usage:
207- # bundle exec fastlane finalize_release [skip_confirm:<skip confirm>] [version:<version>]
207+ # bundle exec fastlane finalize_release [skip_confirm:<skip confirm>] [version:<version>]
208208 #
209209 # Example:
210- # bundle exec fastlane finalize_release
211- # bundle exec fastlane finalize_release skip_confirm:true
210+ # bundle exec fastlane finalize_release
211+ # bundle exec fastlane finalize_release skip_confirm:true
212212 #####################################################################################
213213 desc "Removes all the temp tags and puts the final one"
214214 lane :finalize_release do | options |
@@ -234,20 +234,20 @@ GH_ORG_NAME="woocommerce"
234234 #####################################################################################
235235 # build_and_upload_release
236236 # -----------------------------------------------------------------------------------
237- # This lane builds the app and uploads it for distribution
237+ # This lane builds the app and uploads it for distribution
238238 # -----------------------------------------------------------------------------------
239239 # Usage:
240240 # bundle exec fastlane build_and_upload_release [skip_confirm:<skip confirm>]
241241 # [create_gh_release:<create release on GH>]
242242 #
243243 # Example:
244- # bundle exec fastlane build_and_upload_release
245- # bundle exec fastlane build_and_upload_release skip_confirm:true
244+ # bundle exec fastlane build_and_upload_release
245+ # bundle exec fastlane build_and_upload_release skip_confirm:true
246246 # bundle exec fastlane build_and_upload_release create_gh_release:true
247247 #####################################################################################
248248 desc "Builds and uploads for distribution"
249249 lane :build_and_upload_release do | options |
250- ios_build_prechecks ( skip_confirm : options [ :skip_confirm ] ,
250+ ios_build_prechecks ( skip_confirm : options [ :skip_confirm ] ,
251251 internal : false ,
252252 external : true )
253253 ios_build_preflight ( )
@@ -265,8 +265,8 @@ GH_ORG_NAME="woocommerce"
265265 #####################################################################################
266266 lane :trigger_beta_build do | options |
267267 circleci_trigger_job (
268- circle_ci_token : ENV [ "CIRCLE_CI_AUTH_TOKEN" ] ,
269- repository : REPOSITORY_NAME ,
268+ circle_ci_token : ENV [ "CIRCLE_CI_AUTH_TOKEN" ] ,
269+ repository : REPOSITORY_NAME ,
270270 organization : GH_ORG_NAME ,
271271 branch : options [ :branch_to_build ] ,
272272 job_params : { "beta_build" => true }
@@ -284,8 +284,8 @@ GH_ORG_NAME="woocommerce"
284284 #####################################################################################
285285 lane :trigger_release_build do | options |
286286 circleci_trigger_job (
287- circle_ci_token : ENV [ "CIRCLE_CI_AUTH_TOKEN" ] ,
288- repository : REPOSITORY_NAME ,
287+ circle_ci_token : ENV [ "CIRCLE_CI_AUTH_TOKEN" ] ,
288+ repository : REPOSITORY_NAME ,
289289 organization : GH_ORG_NAME ,
290290 branch : options [ :branch_to_build ] ,
291291 job_params : { "release_build" => true }
@@ -295,15 +295,15 @@ GH_ORG_NAME="woocommerce"
295295 #####################################################################################
296296 # build_and_upload_itc
297297 # -----------------------------------------------------------------------------------
298- # This lane builds the app and upload it for external distribution
298+ # This lane builds the app and upload it for external distribution
299299 # -----------------------------------------------------------------------------------
300300 # Usage:
301301 # bundle exec fastlane build_and_upload_itc [skip_confirm:<skip confirm>] [create_release:<Create release on GH> ]
302302 #
303303 # Example:
304- # bundle exec fastlane build_and_upload_itc
305- # bundle exec fastlane build_and_upload_itc skip_confirm:true
306- # bundle exec fastlane build_and_upload_itc create_release:true
304+ # bundle exec fastlane build_and_upload_itc
305+ # bundle exec fastlane build_and_upload_itc skip_confirm:true
306+ # bundle exec fastlane build_and_upload_itc create_release:true
307307 #####################################################################################
308308 desc "Builds and uploads for distribution"
309309 lane :build_and_upload_itc do | options |
@@ -313,12 +313,12 @@ GH_ORG_NAME="woocommerce"
313313 appstore_code_signing
314314
315315 gym ( scheme : "WooCommerce" , workspace : "./WooCommerce.xcworkspace" ,
316- clean : true , export_team_id : get_required_env ( "EXT_EXPORT_TEAM_ID" ) ,
316+ clean : true , export_team_id : get_required_env ( "EXT_EXPORT_TEAM_ID" ) ,
317317 export_options : {
318318 method : "app-store"
319319 }
320320 )
321-
321+
322322 testflight ( skip_waiting_for_build_processing : true )
323323 sh ( "cd .. && rm WooCommerce.ipa" )
324324
@@ -335,27 +335,27 @@ GH_ORG_NAME="woocommerce"
335335 zip ( path : lane_context [ SharedValues ::XCODEBUILD_ARCHIVE ] , output_path : archive_zip_path )
336336
337337 version = ios_get_app_version ( )
338- create_release ( repository :GHHELPER_REPO ,
339- version : version ,
338+ create_release ( repository :GHHELPER_REPO ,
339+ version : version ,
340340 release_notes_file_path :'./WooCommerce/Resources/release_notes.txt' ,
341341 release_assets :"#{ archive_zip_path } "
342342 )
343343
344- sh ( "rm #{ archive_zip_path } " )
344+ sh ( "rm #{ archive_zip_path } " )
345345 end
346346 end
347347
348348 #####################################################################################
349349 # build_and_upload_installable_build
350350 # -----------------------------------------------------------------------------------
351- # This lane builds the app and upload it for adhoc testing
351+ # This lane builds the app and upload it for adhoc testing
352352 # -----------------------------------------------------------------------------------
353353 # Usage:
354354 # bundle exec fastlane build_and_upload_installable_build [version_long:<version_long>]
355355 #
356356 # Example:
357- # bundle exec fastlane build_and_upload_installable_build
358- # bundle exec fastlane build_and_upload_installable_build build_number:123
357+ # bundle exec fastlane build_and_upload_installable_build
358+ # bundle exec fastlane build_and_upload_installable_build build_number:123
359359 #####################################################################################
360360 desc "Builds and uploads an installable build"
361361 lane :build_and_upload_installable_build do | options |
@@ -386,17 +386,17 @@ GH_ORG_NAME="woocommerce"
386386 export_options : { method : "enterprise" , iCloudContainerEnvironment : 'Production' } )
387387
388388 sh ( "mv ../build/WooCommerce.ipa \" ../build/WooCommerce Alpha.ipa\" " )
389-
389+
390390 # NOTE: "ipa" parameter is deprecated in appcenter_upload 1.6.0, but there's a bug in the action that
391- # makes the default gym output override the "file" parameter.
391+ # makes the default gym output override the "file" parameter.
392392 appcenter_upload (
393393 api_token : get_required_env ( "APPCENTER_API_TOKEN" ) ,
394394 owner_name : "automattic" ,
395- owner_type : "organization" ,
395+ owner_type : "organization" ,
396396 app_name : "WooCommerce-Installable-Builds" ,
397397 ipa : "build/WooCommerce Alpha.ipa" ,
398398 destinations : "All-users-of-WooCommerce-Installable-Builds" ,
399- notify_testers : false
399+ notify_testers : false
400400 )
401401
402402 # Install SentryCLI prior to trying to upload dSYMs
@@ -425,7 +425,7 @@ GH_ORG_NAME="woocommerce"
425425 # This lane builds the app for testing
426426 # -----------------------------------------------------------------------------------
427427 # Usage:
428- # bundle exec fastlane build_for_testing
428+ # bundle exec fastlane build_for_testing
429429 #####################################################################################
430430 desc "Build for Testing"
431431 lane :build_for_testing do | options |
@@ -442,10 +442,10 @@ GH_ORG_NAME="woocommerce"
442442
443443 ########################################################################
444444 # Screenshot Lanes
445- ########################################################################
445+ ########################################################################
446446 desc "Build Screenshots"
447447 lane :build_screenshots do
448-
448+
449449 # Ensure we're using the latest Pods
450450 sh ( 'bundle exec pod install --verbose' )
451451
@@ -595,7 +595,7 @@ GH_ORG_NAME="woocommerce"
595595
596596 metadata_locales = glotpress_locales
597597
598- gp_downloadmetadata ( project_url : "https://translate.wordpress.com/projects/woocommerce%2Fwoocommerce-ios%2Frelease-notes/" ,
598+ gp_downloadmetadata ( project_url : "https://translate.wordpress.com/projects/woocommerce%2Fwoocommerce-ios%2Frelease-notes/" ,
599599 target_files : files ,
600600 locales : metadata_locales ,
601601 source_locale : "en-US" ,
@@ -613,7 +613,7 @@ GH_ORG_NAME="woocommerce"
613613 "zh-tw" => "zh-Hant"
614614 } . each do |source , destination |
615615 source_dir = File . join ( Dir . pwd , "metadata" , source )
616- Dir . children ( source_dir ) . each do |file |
616+ Dir . children ( source_dir ) . each do |file |
617617 source_file = File . join ( source_dir , file )
618618 destination_file = File . join ( Dir . pwd , "metadata" , destination , file )
619619 FileUtils . mv ( source_file , destination_file )
@@ -661,7 +661,7 @@ GH_ORG_NAME="woocommerce"
661661 metadata_directory = File . join ( Dir . pwd , "metadata" )
662662 output_directory = File . join ( Dir . pwd , "/promo_screenshots" )
663663
664- # Run screenshots generator tool
664+ # Run screenshots generator tool
665665 promo_screenshots (
666666 orig_folder : original_screenshot_directory ,
667667 metadata_folder : metadata_directory ,
@@ -676,14 +676,14 @@ GH_ORG_NAME="woocommerce"
676676 #####################################################################################
677677 # update_certs_and_profiles
678678 # -----------------------------------------------------------------------------------
679- # This lane downloads all the required certs and profiles and,
679+ # This lane downloads all the required certs and profiles and,
680680 # if not run on CI it creates the missing ones.
681681 # -----------------------------------------------------------------------------------
682682 # Usage:
683- # bundle exec fastlane update_certs_and_profiles
683+ # bundle exec fastlane update_certs_and_profiles
684684 #
685685 # Example:
686- # bundle exec fastlane update_certs_and_profiles
686+ # bundle exec fastlane update_certs_and_profiles
687687 #####################################################################################
688688 lane :update_certs_and_profiles do | options |
689689 alpha_code_signing
@@ -711,7 +711,7 @@ GH_ORG_NAME="woocommerce"
711711
712712 ########################################################################
713713 # Helper Lanes
714- ########################################################################
714+ ########################################################################
715715 desc "Get a list of pull requests from the `milestone`"
716716 lane :get_pullrequests_list do | options |
717717 get_prs_list ( repository :GHHELPER_REPO , milestone :"#{ options [ :milestone ] } " , report_path :"#{ File . expand_path ( '~' ) } /wcios_prs_list.txt" )
@@ -731,7 +731,7 @@ GH_ORG_NAME="woocommerce"
731731 begin
732732 FileUtils . rm_f ( path )
733733 file = File . new ( path , "w" )
734- file . write ( contents )
734+ file . write ( contents )
735735 rescue IOError => e
736736 UI . crash ( e )
737737 ensure
799799 } . first
800800
801801 UI . user_error! ( "Unable to find .xctestrun file" ) unless testPlanPath != nil and File . exists? ( testPlanPath )
802-
802+
803803 multi_scan (
804804 workspace : "WooCommerce.xcworkspace" ,
805805 scheme : "WooCommerce" ,
811811 output_directory : "build/results" ,
812812 result_bundle : true
813813 )
814- end
814+ end
0 commit comments