From 94f0291c3a0a1fa9c847a3ec91b08c2222293957 Mon Sep 17 00:00:00 2001 From: Ivan Smolin Date: Thu, 21 Feb 2019 14:38:26 +0300 Subject: [PATCH] ability to pass some parameters via options --- xcode/commonFastfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xcode/commonFastfile b/xcode/commonFastfile index 5a4bdd3..3cab303 100644 --- a/xcode/commonFastfile +++ b/xcode/commonFastfile @@ -76,11 +76,11 @@ private_lane :buildConfiguration do |options| end private_lane :createPushCertificate do |options| - certificates_path = File.expand_path "../pushcerts" + certificates_path = File.expand_path "../Certificates" Dir.mkdir(certificates_path) unless File.directory?(certificates_path) get_push_certificate( - development: true, + development: options[:development] || true, generate_p12: true, active_days_limit: 30, # create new certificate if old one will expire in 30 days save_private_key: false, @@ -93,7 +93,7 @@ end private_lane :syncCodeSigning do |options| match( app_identifier: options[:app_identifier], - type: "development", + type: options[:type] || "development", readonly: options[:readonly] || true, storage_mode: "git", git_url: options[:git_url],