fastlane-plugin-ravn_mobile 0.1.9 → 0.1.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 20b98520b34dab3641137e0a4b3d2951f49b244f5457d4c493ffd2e37b56a25e
4
- data.tar.gz: 6ecf8b4816b230575b23b3e03135b10ae94aa703fc956f6b8c0f15e4ea8b0e01
3
+ metadata.gz: d2ab87f3bb316bc274337a0a21804d14a7967fa97f9df945b23e099a254733b3
4
+ data.tar.gz: 0f8a43b3c20887af33e41321ffce395109d9fe72d12aac7689ee6a0cb5fd2d49
5
5
  SHA512:
6
- metadata.gz: 34680326a916d62fc2477034acffca8bdb4b8e76909335fb8e1ea967e8137bb87ba33bb362067dddaf93aa9d2009c5868f337d9b755c8608c6bc40ef1ab3a7e6
7
- data.tar.gz: 848e50868b99b41ab31b226007d7674cdb2606ac141c9d7bf0b725f337f1711e1ccdd49d7cd8e6cd96053d2d49d31d3ff4d65ad23f43e0fdb28308c568617829
6
+ metadata.gz: 23516696d92d1d5112c3d08e80b1774d5943e59caa7938fe434ba2294717ea38b928d4af85572b67dc52b5c59ce830bc97f58dd3b909f44ecc8242badb1768ca
7
+ data.tar.gz: 892913abef566b97fb934eb8abce294183765dae644d001b7d4cf60c554d79d127e182e5f343ac377fb3bbbe8030fe1efb7aa46f7b3705870a65c94b389835c3
@@ -0,0 +1,64 @@
1
+ require 'fastlane'
2
+ require 'fastlane/actions/gradle'
3
+ require 'fastlane/actions/gym'
4
+ require_relative '../util/util'
5
+
6
+ module Fastlane
7
+ module Actions
8
+ module SharedValues
9
+ COPIED_ARTIFACTS_OUTPUT_PATH = :COPIED_ARTIFACTS_OUTPUT_PATH
10
+ end
11
+
12
+ class CopyOutputArtifactsAction < Action
13
+ def self.run(params)
14
+ apk_output_paths = Actions.lane_context[SharedValues::GRADLE_ALL_APK_OUTPUT_PATHS]
15
+ aab_output_paths = Actions.lane_context[SharedValues::GRADLE_ALL_AAB_OUTPUT_PATHS]
16
+ mapping_output_paths = Actions.lane_context[SharedValues::GRADLE_ALL_MAPPING_TXT_OUTPUT_PATHS]
17
+ ipa_output_path = Actions.lane_context[SharedValues::IPA_OUTPUT_PATH]
18
+ dsym_output_path = Actions.lane_context[SharedValues::DSYM_OUTPUT_PATH]
19
+
20
+ artifacts = []
21
+ artifacts << apk_output_paths unless blank?(apk_output_paths)
22
+ artifacts << aab_output_paths unless blank?(aab_output_paths)
23
+ artifacts << mapping_output_paths unless blank?(mapping_output_paths)
24
+ artifacts << ipa_output_path unless blank?(ipa_output_path)
25
+ artifacts << dsym_output_path unless blank?(dsym_output_path)
26
+
27
+ # noinspection RubyResolve
28
+ other_action.copy_artifacts(target_path: 'artifacts', artifacts: artifacts)
29
+
30
+ Actions.lane_context[SharedValues::COPIED_ARTIFACTS_OUTPUT_PATH] = 'artifacts'
31
+ end
32
+
33
+ #####################################################
34
+ # @!group Documentation
35
+ #####################################################
36
+
37
+ def self.description
38
+ 'Copies artifacts from Android and iOS builds into a directory for easy external access'
39
+ end
40
+
41
+ def self.details
42
+ 'Copies artifacts for Android and iOS builds so that CI services like GitHub actions can easily known where to find these files'
43
+ end
44
+
45
+ def self.available_options
46
+ []
47
+ end
48
+
49
+ def self.output
50
+ [
51
+ 'COPIED_ARTIFACTS_OUTPUT_PATH', 'The path of the directory containing all copied artifacts'
52
+ ]
53
+ end
54
+
55
+ def self.authors
56
+ ['quebin31']
57
+ end
58
+
59
+ def self.is_supported?(platform)
60
+ %i[ios android].include?(platform)
61
+ end
62
+ end
63
+ end
64
+ end
@@ -4,13 +4,14 @@ require_relative '../util/util'
4
4
 
5
5
  module Fastlane
6
6
  class FastFile
7
- # @param [String] platform Either 'android' or 'ios'
8
- # @param [String] version Same syntax as `import_from_git`
9
- def import_ravn_lanes(platform, version = nil)
7
+ def import_ravn_lanes(params)
8
+ platform = params[:platform]
10
9
  UI.user_error!("Invalid platform value #{platform}") unless %w[android ios].include?(platform)
11
10
 
12
11
  default_version = '~> 0.2'
12
+ version = params[:version]
13
13
  version = default_version if blank?(version)
14
+
14
15
  url = 'https://github.com/ravnhq/mobile-cicd'
15
16
  path = platform == 'android' ? 'lanes/android.rb' : 'lanes/ios.rb'
16
17
  dependencies = %w[lanes/util.rb]
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module RavnMobile
3
- VERSION = '0.1.9'
3
+ VERSION = '0.1.11'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-ravn_mobile
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - ravnhq
@@ -160,6 +160,7 @@ files:
160
160
  - README.md
161
161
  - lib/fastlane/plugin/ravn_mobile.rb
162
162
  - lib/fastlane/plugin/ravn_mobile/actions/commit_version_action.rb
163
+ - lib/fastlane/plugin/ravn_mobile/actions/copy_output_artifacts_action.rb
163
164
  - lib/fastlane/plugin/ravn_mobile/actions/import_ravn_lanes_action.rb
164
165
  - lib/fastlane/plugin/ravn_mobile/actions/increment_expo_version_action.rb
165
166
  - lib/fastlane/plugin/ravn_mobile/actions/increment_version_code_action.rb