Merge pull request #243 from TouchInstinct/feature/fastlane_app_store_connect_api

use App Store Connect API for match and upload_to_app_store
This commit is contained in:
Ivan Smolin 2021-01-20 11:17:06 +03:00 committed by Alexander Rutsman
parent 9fbc2ce29a
commit 66a2fda126
1 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,5 @@
$appName = File.basename(Dir['../*.xcworkspace'].first, '.*')
$API_KEY_PATH="fastlane/api_key.json"
require_relative 'fastlane/touchlane/lib/touchlane'
@ -85,6 +86,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,
@ -234,8 +236,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(
@ -346,6 +348,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],