Class: Fastlane::SupportedPlatforms

Inherits:
Object
  • Object
show all
Defined in:
fastlane/lib/fastlane/supported_platforms.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.defaultObject (readonly)

Returns the value of attribute default.



5
6
7
# File 'fastlane/lib/fastlane/supported_platforms.rb', line 5

def default
  @default
end

.extraObject

Returns the value of attribute extra.



4
5
6
# File 'fastlane/lib/fastlane/supported_platforms.rb', line 4

def extra
  @extra
end

Class Method Details

.allObject



17
18
19
# File 'fastlane/lib/fastlane/supported_platforms.rb', line 17

def self.all
  (@default + @extra).flatten
end

.verify!(platform) ⇒ Object

this will log a warning if the passed platform is not supported



22
23
24
25
26
# File 'fastlane/lib/fastlane/supported_platforms.rb', line 22

def self.verify!(platform)
  unless all.include?(platform.to_s.to_sym)
    UI.important("Platform '#{platform}' is not officially supported. Currently supported platforms are #{self.all}.")
  end
end