From 039ddac90a8efae6cfaa4b3675d8c9244acef48e Mon Sep 17 00:00:00 2001 From: Ivan Smolin Date: Tue, 19 Jan 2021 17:00:32 +0300 Subject: [PATCH] use App Store Connect API for match and upload_to_app_store --- xcode/commonFastfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/xcode/commonFastfile b/xcode/commonFastfile index 4feb6df..ce77659 100644 --- a/xcode/commonFastfile +++ b/xcode/commonFastfile @@ -1,4 +1,5 @@ $appName = File.basename(Dir['../*.xcworkspace'].first, '.*') +$API_KEY_PATH="fastlane/api_key.json" require_relative 'fastlane/touchlane/lib/touchlane' require_relative 'managers/managers' @@ -82,6 +83,7 @@ end private_lane :uploadToAppStore do |options| upload_to_app_store( username: options[:username] || options[:apple_id], + api_key_path: $API_KEY_PATH, ipa: options[:ipa_path], force: true, # skip metainfo prompt skip_metadata: true, @@ -232,8 +234,8 @@ lane :SyncSymbols do |options| xcodeproj_path = File.expand_path "../#{appName}.xcodeproj" - version_number = options[:version] || get_version_number(xcodeproj: xcodeproj_path, target: appName) - build_number = options[:build_number] || get_build_number(xcodeproj: xcodeproj_path) + version_number = options[:version] || "latest" + build_number = options[:build_number] if configuration.type.is_app_store download_dsyms( @@ -344,6 +346,7 @@ def sync_code_signing_using_options(options) match( app_identifier: options[:app_identifier], username: options[:username] || options[:apple_id], + api_key_path: $API_KEY_PATH, team_id: options[:team_id], type: options[:type], readonly: options[:readonly].nil? ? true : options[:readonly],