Class: Fastlane::SwiftActionsAPIGenerator
- Inherits:
-
SwiftAPIGenerator
- Object
- SwiftAPIGenerator
- Fastlane::SwiftActionsAPIGenerator
- Defined in:
- fastlane/lib/fastlane/swift_fastlane_api_generator.rb
Constant Summary
Constants inherited from SwiftAPIGenerator
Fastlane::SwiftAPIGenerator::DEFAULT_API_VERSION_STRING
Instance Attribute Summary
Attributes inherited from SwiftAPIGenerator
#action_options_to_ignore, #actions_not_supported, #fastlane_swift_api_path, #generated_paths, #target_filename, #target_output_path, #tools_option_files
Instance Method Summary collapse
-
#initialize(target_output_path: "swift") ⇒ SwiftActionsAPIGenerator
constructor
A new instance of SwiftActionsAPIGenerator.
Methods inherited from SwiftAPIGenerator
#autogen_version_warning_text, #determine_api_version, #extend_content, #find_api_version_string, #generate_default_implementations, #generate_lanefile_parsing_functions, #generate_lanefile_tool_objects, #generate_swift, #generate_tool_protocol, #ignore_param?, #increment_api_version_string, #process_action, #write_lanefile
Constructor Details
#initialize(target_output_path: "swift") ⇒ SwiftActionsAPIGenerator
Returns a new instance of SwiftActionsAPIGenerator.
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
# File 'fastlane/lib/fastlane/swift_fastlane_api_generator.rb', line 71 def initialize(target_output_path: "swift") @target_filename = "Actions.swift" @target_output_path = File.(target_output_path) @generated_paths = [] super() # Excludes all actions that aren't external actions (including plugins) available_external_actions = Fastlane.external_actions || [] available_actions = [] ActionsList.all_actions do |action| available_actions << action.action_name unless available_external_actions.include?(action) end self.actions_not_supported = (["import", "import_from_git"] + available_actions).to_set self. = {} end |