match/lib/match/generator.rb in fastlane-2.217.0 vs match/lib/match/generator.rb in fastlane-2.218.0

- old
+ new

@@ -1,6 +1,7 @@ require_relative 'module' +require_relative 'profile_includes' module Match # Generate missing resources class Generator def self.generate_certificate(params, cert_type, working_directory, specific_cert_type: nil) @@ -55,11 +56,11 @@ # Inside this directory, there is the `.p12` file and the `.cer` file with the same name, but different extension return cert_path end # @return (String) The UUID of the newly generated profile - def self.generate_provisioning_profile(params: nil, prov_type: nil, certificate_id: nil, app_identifier: nil, force: true, working_directory: nil) + def self.generate_provisioning_profile(params: nil, prov_type: nil, certificate_id: nil, app_identifier: nil, force: true, cache: nil, working_directory: nil) require 'sigh/manager' require 'sigh/options' prov_type = Match.profile_type_sym(params[:type]) @@ -100,9 +101,16 @@ values[:developer_id] = true elsif prov_type == :adhoc values[:adhoc] = true elsif prov_type == :development values[:development] = true + end + + if cache + values[:cached_certificates] = cache.certificates + values[:cached_devices] = cache.devices + values[:cached_bundle_ids] = cache.bundle_ids + values[:cached_profiles] = cache.profiles end arguments = FastlaneCore::Configuration.create(Sigh::Options.available_options, values) Sigh.config = arguments