fastlane-plugin-stream_actions 0.3.19 → 0.3.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fastlane/plugin/stream_actions/actions/is_check_required.rb +7 -1
- data/lib/fastlane/plugin/stream_actions/actions/prepare_simulator.rb +6 -5
- data/lib/fastlane/plugin/stream_actions/actions/testflight_build.rb +7 -1
- data/lib/fastlane/plugin/stream_actions/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3086f648d915ddb4af3708638c0833c5ef580405ef0c546790db13892a44991d
|
4
|
+
data.tar.gz: 2bb8d07590b95994c41c0bfa62d1c7d4d2d96969d296df8d2af7b146124d6ec1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84e6b1a4c334276709e14862c811f2bf2c4498598e896ea7e4a07f334fe5e023e27ce475741e4f857c394982123bdaa7447b3b7086731ee17b10c6ca41beab0a
|
7
|
+
data.tar.gz: c51c633370766256ce3abe224069675b0ee73f762dc867137375dfd935f0b82d892fdc7be66ad063b4088b0cd38fa2950976e8cdb1b6665419fa7b4efca83479
|
@@ -2,7 +2,7 @@ module Fastlane
|
|
2
2
|
module Actions
|
3
3
|
class IsCheckRequiredAction < Action
|
4
4
|
def self.run(params)
|
5
|
-
return true if params[:github_pr_num].nil? || params[:github_pr_num].strip.empty?
|
5
|
+
return true if params[:force_check] || params[:github_pr_num].nil? || params[:github_pr_num].strip.empty?
|
6
6
|
|
7
7
|
UI.message("Checking if check is required for PR ##{params[:github_pr_num]}")
|
8
8
|
|
@@ -40,6 +40,12 @@ module Fastlane
|
|
40
40
|
key: :github_pr_num,
|
41
41
|
description: 'GitHub PR number',
|
42
42
|
optional: true
|
43
|
+
),
|
44
|
+
FastlaneCore::ConfigItem.new(
|
45
|
+
key: :force_check,
|
46
|
+
description: 'GitHub PR number',
|
47
|
+
optional: true,
|
48
|
+
is_string: false
|
43
49
|
)
|
44
50
|
]
|
45
51
|
end
|
@@ -4,16 +4,17 @@ module Fastlane
|
|
4
4
|
def self.run(params)
|
5
5
|
simulators = FastlaneCore::Simulator.all
|
6
6
|
version_regex = /\((\d+\.)?(\d+\.)?(\*|\d+)\)/
|
7
|
-
|
7
|
+
ios_version_with_brackets = params[:device][version_regex]
|
8
8
|
device_name = params[:device].sub(version_regex, '').strip
|
9
9
|
udid = nil
|
10
10
|
|
11
|
-
if
|
11
|
+
if ios_version_with_brackets.nil?
|
12
12
|
sim = simulators.filter { |d| d.name == params[:device] }.max_by(&:os_version)
|
13
|
-
|
13
|
+
ios_version_with_brackets = "(#{sim.os_version})" if sim
|
14
14
|
else
|
15
|
+
ios_version = ios_version_with_brackets.delete('()')
|
15
16
|
sim = simulators.detect { |d| "#{d.name} (#{d.os_version})" == params[:device] }
|
16
|
-
udid = `xcrun simctl create '#{device_name}' '#{device_name}' 'iOS#{ios_version
|
17
|
+
udid = `xcrun simctl create '#{device_name}' '#{device_name}' 'iOS#{ios_version}'`.to_s.strip if sim.nil?
|
17
18
|
end
|
18
19
|
|
19
20
|
udid = sim.udid.to_s.strip unless sim.nil?
|
@@ -25,7 +26,7 @@ module Fastlane
|
|
25
26
|
|
26
27
|
sim.reset if sim && params[:reset]
|
27
28
|
sh("xcrun simctl bootstatus #{udid} -b")
|
28
|
-
UI.success("Simulator #{device_name}
|
29
|
+
UI.success("Simulator #{device_name} #{ios_version_with_brackets} is ready")
|
29
30
|
udid
|
30
31
|
end
|
31
32
|
|
@@ -21,7 +21,7 @@ module Fastlane
|
|
21
21
|
other_action.gym(
|
22
22
|
project: params[:xcode_project],
|
23
23
|
scheme: params[:app_target],
|
24
|
-
configuration:
|
24
|
+
configuration: params[:configuration],
|
25
25
|
export_method: 'app-store',
|
26
26
|
export_options: params[:testflight_export_options],
|
27
27
|
clean: true,
|
@@ -129,6 +129,12 @@ module Fastlane
|
|
129
129
|
env_name: 'GITHUB_PR_NUM',
|
130
130
|
key: :github_pr_num,
|
131
131
|
description: 'GitHub PR number'
|
132
|
+
),
|
133
|
+
FastlaneCore::ConfigItem.new(
|
134
|
+
env_name: 'GITHUB_PR_NUM',
|
135
|
+
key: :configuration,
|
136
|
+
description: 'Build configuration',
|
137
|
+
default_value: 'Release'
|
132
138
|
)
|
133
139
|
]
|
134
140
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-stream_actions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GetStream
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-10-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xctest_list
|