Class: Fastlane::Actions::SetupExpoProjectAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::SetupExpoProjectAction
- Defined in:
- lib/fastlane/plugin/ravn_mobile/actions/setup_expo_project_action.rb
Overview
Action to setup an expo project (if any)
Documentation collapse
- .authors ⇒ Object
- .available_options ⇒ Object
- .description ⇒ Object
- .details ⇒ Object
- .is_supported?(platform) ⇒ Boolean
Class Method Summary collapse
Class Method Details
.authors ⇒ Object
38 39 40 |
# File 'lib/fastlane/plugin/ravn_mobile/actions/setup_expo_project_action.rb', line 38 def self. ['quebin31'] end |
.available_options ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/fastlane/plugin/ravn_mobile/actions/setup_expo_project_action.rb', line 24 def self. [ FastlaneCore::ConfigItem.new(key: :platform, env_name: 'FL_SETUP_EXPO_PROJECT_PLATFORM', description: 'Platform to sync (values: android, ios, all)', type: String, default_value: 'all', verify_block: proc do |value| is_valid = %w[android ios all].include?(value) UI.user_error!("Invalid platform value '#{value}'") unless is_valid end) ] end |
.description ⇒ Object
16 17 18 |
# File 'lib/fastlane/plugin/ravn_mobile/actions/setup_expo_project_action.rb', line 16 def self.description 'Set up an expo project (based on React Native) to work with fastlane' end |
.details ⇒ Object
20 21 22 |
# File 'lib/fastlane/plugin/ravn_mobile/actions/setup_expo_project_action.rb', line 20 def self.details 'Execute `npx expo prebuild --clean` to configure Android and iOS native projects' end |
.is_supported?(platform) ⇒ Boolean
42 43 44 |
# File 'lib/fastlane/plugin/ravn_mobile/actions/setup_expo_project_action.rb', line 42 def self.is_supported?(platform) %i[ios android].include?(platform) end |
.run(params) ⇒ Object
7 8 9 10 |
# File 'lib/fastlane/plugin/ravn_mobile/actions/setup_expo_project_action.rb', line 7 def self.run(params) platform = params[:platform] || 'all' sh("npx expo prebuild --platform #{platform} --clean") end |