Method: Fastlane::Actions::DefaultPlatformAction.run

Defined in:
fastlane/lib/fastlane/actions/default_platform.rb

.run(params) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'fastlane/lib/fastlane/actions/default_platform.rb', line 8

def self.run(params)
  UI.user_error!("You forgot to pass the default platform") if params.first.nil?

  platform = params.first.to_sym

  SupportedPlatforms.verify!(platform)

  Actions.lane_context[SharedValues::DEFAULT_PLATFORM] = platform
end