Class: Fastlane::Actions::IsExpoAction

Inherits:
Action
  • Object
show all
Defined in:
lib/fastlane/plugin/ravn_mobile/actions/is_expo_action.rb

Overview

Action to detect if the current project uses Expo

Documentation collapse

Class Method Summary collapse

Class Method Details

.authorsObject



42
43
44
# File 'lib/fastlane/plugin/ravn_mobile/actions/is_expo_action.rb', line 42

def self.authors
  ['quebin31']
end

.available_optionsObject



34
35
36
# File 'lib/fastlane/plugin/ravn_mobile/actions/is_expo_action.rb', line 34

def self.available_options
  []
end

.descriptionObject



20
21
22
# File 'lib/fastlane/plugin/ravn_mobile/actions/is_expo_action.rb', line 20

def self.description
  'Action to detect if the current project is using Expo'
end

.detailsObject



24
25
26
# File 'lib/fastlane/plugin/ravn_mobile/actions/is_expo_action.rb', line 24

def self.details
  'The return value of this action is true if an Expo project is detected'
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


46
47
48
# File 'lib/fastlane/plugin/ravn_mobile/actions/is_expo_action.rb', line 46

def self.is_supported?(platform)
  %i[ios android].include?(platform)
end

.outputObject



28
29
30
31
32
# File 'lib/fastlane/plugin/ravn_mobile/actions/is_expo_action.rb', line 28

def self.output
  [
    'IS_EXPO_PROJECT', 'Whether or not the project uses Expo'
  ]
end

.return_typeObject



38
39
40
# File 'lib/fastlane/plugin/ravn_mobile/actions/is_expo_action.rb', line 38

def self.return_type
  :bool
end

.run(_params) ⇒ Object



12
13
14
# File 'lib/fastlane/plugin/ravn_mobile/actions/is_expo_action.rb', line 12

def self.run(_params)
  Action.lane_context[SharedValues::IS_EXPO_PROJECT] = Helper::FrameworkHelper.is_expo?
end