fastlane-plugin-copy_screenshots 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9efc836700acf870a3ddd5ba970bcc45c3d22b3b1c932c22ad77da8ce3e0b7b4
|
4
|
+
data.tar.gz: 27a2962ad72aceb95b934db3b05c0f93c0320b98ec4b8afe4b6ee80827f9ba00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e5c162027864aeff6f036f2538047e1e509fff43ea71f85db34f7e2abc698e895771e76cc237b9de155d89b32312cc446ccd6afb9ac07b665389aca01f37b8f
|
7
|
+
data.tar.gz: 5f23fca38a5b5ff92d3bd852681781404798a770d547c4e7d0f5ec5b4fe5043dd2cb74fc4d0f714fd1cebd87fc5533d45a829502d5d660c0858eb33db84c2fbd
|
@@ -9,6 +9,10 @@ module Fastlane
|
|
9
9
|
target_device_name = params[:target_device_name]
|
10
10
|
screenshots_dir_path = Actions.lane_context[SharedValues::SNAPSHOT_SCREENSHOTS_PATH]
|
11
11
|
|
12
|
+
if screenshots_dir_path.nil?
|
13
|
+
raise "Pre Action Required. This action should be executed after `capture_ios_screenshots` action."
|
14
|
+
end
|
15
|
+
|
12
16
|
# glob iterates files which matched to the given predicate.
|
13
17
|
Dir.glob("#{screenshots_dir_path}/**/#{source_device_name}*.png") do |f|
|
14
18
|
# gsub replaces and returns matched strings.
|
@@ -26,7 +30,7 @@ module Fastlane
|
|
26
30
|
#####################################################
|
27
31
|
|
28
32
|
def self.description
|
29
|
-
"Copy screenshots with a specified device name."
|
33
|
+
"Copy screenshots with a specified device name. This action should be executed after `capture_ios_screenshots` action."
|
30
34
|
end
|
31
35
|
|
32
36
|
def self.details
|