match/lib/match/generator.rb in fastlane-2.13.0 vs match/lib/match/generator.rb in fastlane-2.14.0
- old
+ new
@@ -37,12 +37,18 @@
def self.generate_provisioning_profile(params: nil, prov_type: nil, certificate_id: nil, app_identifier: nil)
require 'sigh'
prov_type = Match.profile_type_sym(params[:type])
- profile_name = ["match", profile_type_name(prov_type), app_identifier].join(" ")
+ names = ["match", profile_type_name(prov_type), app_identifier]
+ if params[:platform].to_s != :ios.to_s # For ios we do not include the platform for backwards compatibility
+ names << params[:platform]
+ end
+
+ profile_name = names.join(" ")
+
values = {
app_identifier: app_identifier,
output_path: File.join(params[:workspace], "profiles", prov_type.to_s),
username: params[:username],
force: true,
@@ -50,9 +56,10 @@
provisioning_name: profile_name,
ignore_profiles_with_different_name: true,
team_id: params[:team_id]
}
+ values[:platform] = params[:platform]
values[:adhoc] = true if prov_type == :adhoc
values[:development] = true if prov_type == :development
arguments = FastlaneCore::Configuration.create(Sigh::Options.available_options, values)