Class: Fastlane::Actions::CopyOutputArtifactsAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::CopyOutputArtifactsAction
- Defined in:
- lib/fastlane/plugin/ravn_mobile/actions/copy_output_artifacts_action.rb
Documentation collapse
- .authors ⇒ Object
- .available_options ⇒ Object
- .description ⇒ Object
- .details ⇒ Object
- .is_supported?(platform) ⇒ Boolean
- .output ⇒ Object
Class Method Summary collapse
Class Method Details
.authors ⇒ Object
55 56 57 |
# File 'lib/fastlane/plugin/ravn_mobile/actions/copy_output_artifacts_action.rb', line 55 def self. ['quebin31'] end |
.available_options ⇒ Object
45 46 47 |
# File 'lib/fastlane/plugin/ravn_mobile/actions/copy_output_artifacts_action.rb', line 45 def self. [] end |
.description ⇒ Object
37 38 39 |
# File 'lib/fastlane/plugin/ravn_mobile/actions/copy_output_artifacts_action.rb', line 37 def self.description 'Copies artifacts from Android and iOS builds into a directory for easy external access' end |
.details ⇒ Object
41 42 43 |
# File 'lib/fastlane/plugin/ravn_mobile/actions/copy_output_artifacts_action.rb', line 41 def self.details 'Copies artifacts for Android and iOS builds so that CI services like GitHub actions can easily known where to find these files' end |
.is_supported?(platform) ⇒ Boolean
59 60 61 |
# File 'lib/fastlane/plugin/ravn_mobile/actions/copy_output_artifacts_action.rb', line 59 def self.is_supported?(platform) i[ios android].include?(platform) end |
.output ⇒ Object
49 50 51 52 53 |
# File 'lib/fastlane/plugin/ravn_mobile/actions/copy_output_artifacts_action.rb', line 49 def self.output [ 'COPIED_ARTIFACTS_OUTPUT_PATH', 'The path of the directory containing all copied artifacts' ] end |
.run(params) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/fastlane/plugin/ravn_mobile/actions/copy_output_artifacts_action.rb', line 13 def self.run(params) apk_output_paths = Actions.lane_context[SharedValues::GRADLE_ALL_APK_OUTPUT_PATHS] aab_output_paths = Actions.lane_context[SharedValues::GRADLE_ALL_AAB_OUTPUT_PATHS] mapping_output_paths = Actions.lane_context[SharedValues::GRADLE_ALL_MAPPING_TXT_OUTPUT_PATHS] ipa_output_path = Actions.lane_context[SharedValues::IPA_OUTPUT_PATH] dsym_output_path = Actions.lane_context[SharedValues::DSYM_OUTPUT_PATH] artifacts = [] artifacts << apk_output_paths unless blank?(apk_output_paths) artifacts << aab_output_paths unless blank?(aab_output_paths) artifacts << mapping_output_paths unless blank?(mapping_output_paths) artifacts << ipa_output_path unless blank?(ipa_output_path) artifacts << dsym_output_path unless blank?(dsym_output_path) # noinspection RubyResolve other_action.copy_artifacts(target_path: 'artifacts', artifacts: artifacts) Actions.lane_context[SharedValues::COPIED_ARTIFACTS_OUTPUT_PATH] = 'artifacts' end |