From 08d11652abd4319fd3d6f48fa422c17284bb5c28 Mon Sep 17 00:00:00 2001 From: Ivan Smolin Date: Tue, 21 Jul 2020 14:44:30 +0300 Subject: [PATCH] fix CreatePushCertificate lane --- xcode/commonFastfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/xcode/commonFastfile b/xcode/commonFastfile index d903469..171fc0e 100644 --- a/xcode/commonFastfile +++ b/xcode/commonFastfile @@ -91,7 +91,7 @@ private_lane :addShield do |options| .split(/(?=[A-Z])/) # -> ["Enterprise", "Customer", "Dev1", "Without", "S", "S", "L", "Pinning", "Release"] .map { |v| v.gsub(/[[:lower:]]+/, "") }[1..2] # -> ["E", "C", "D1", "W", "S", "S", "L", "P", "R"] -> ["C", "D1"] .join # -> "CD1" - + begin add_badge( shield: "#{buildDescription}-#{buildNumber}-green", @@ -186,7 +186,10 @@ private_lane :buildArchive do |options| ) end -lane :createPushCertificate do |options| +lane :CreatePushCertificate do |options| + configuration = get_configuration_for_type(options[:type] || "development") + options = configuration.to_options.merge(options) + certificates_path = File.expand_path "../Certificates" Dir.mkdir(certificates_path) unless File.directory?(certificates_path)