7979
8080before_all do |lane , options |
8181 skip_auth_lanes = [ 'register_devices_from_txt' ]
82-
82+
83+ # Skip App Store Connect auth for Android lanes
84+ current_platform = lane_context [ SharedValues ::PLATFORM_NAME ]
85+ if current_platform == :android
86+ UI . message ( "Skipping App Store Connect auth for Android lane" )
87+ next
88+ end
89+
8390 # Check if we need App Store Connect for this lane
84- unless skip_auth_lanes . include? ( lane )
91+ unless skip_auth_lanes . include? ( lane . to_s )
8592 begin
8693 # Try to authenticate once at the beginning
8794 require 'spaceship'
@@ -372,7 +379,7 @@ platform :ios do
372379
373380 desc "Synchronize certificates and provisioning profiles"
374381 lane :setup_provisioning_profiles do
375- required_vars = [ "GIT_USERNAME" , " GIT_ACCESS_TOKEN", "GIT_URL" , "ITC_TEAM_ID" , "ITC_TEAM_NAME" , "KEYCHAIN_PASSWORD" ]
382+ required_vars = [ "GIT_ACCESS_TOKEN" , "GIT_URL" , "ITC_TEAM_ID" , "ITC_TEAM_NAME" , "KEYCHAIN_PASSWORD" ]
376383 ensure_env_vars ( required_vars )
377384
378385 UI . message ( "Setting up provisioning profiles..." )
@@ -382,7 +389,7 @@ platform :ios do
382389 with_retry ( 3 , "Fetching provisioning profile for #{ app_identifier } " ) do
383390 UI . message ( "Fetching provisioning profile for #{ app_identifier } ..." )
384391 match (
385- git_basic_authorization : Base64 . strict_encode64 ( "#{ ENV [ "GIT_USERNAME" ] } :#{ ENV [ "GIT_ACCESS_TOKEN" ] } " ) ,
392+ git_basic_authorization : ENV [ "GIT_USERNAME" ] ? Base64 . strict_encode64 ( "#{ ENV [ "GIT_USERNAME" ] } :#{ ENV [ "GIT_ACCESS_TOKEN" ] } " ) : ENV [ "GIT_ACCESS_TOKEN" ] ,
386393 git_url : ENV [ "GIT_URL" ] ,
387394 type : "appstore" ,
388395 clone_branch_directly : true ,
0 commit comments