fastlane 1.29.2 → 1.30.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fastlane/action_collector.rb +23 -26
- data/lib/fastlane/actions/appstore.rb +6 -14
- data/lib/fastlane/actions/deliver.rb +9 -54
- data/lib/fastlane/actions/hipchat.rb +2 -3
- data/lib/fastlane/actions/hockey.rb +10 -2
- data/lib/fastlane/actions/pilot.rb +2 -2
- data/lib/fastlane/actions/slack.rb +1 -0
- data/lib/fastlane/actions/testflight.rb +6 -18
- data/lib/fastlane/actions/verify_xcode.rb +1 -1
- data/lib/fastlane/actions/xcodebuild.rb +1 -0
- data/lib/fastlane/setup.rb +6 -3
- data/lib/fastlane/version.rb +1 -1
- metadata +14 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77e6cf63ea17320a992a3b12d93b799a2ea6dd21
|
4
|
+
data.tar.gz: b376416b534d65aa745c163972efa00de9e1adde
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fdc8029dcf348134aab5ca10991656492cb55693919c58d07666c816d504e4506df215a2e7f9edd6ac39755e1af95f8e50847bd1dea908b8170a0cdcefee84d
|
7
|
+
data.tar.gz: a7c297944468b34a797b515f8c2785a27d96e1ff55df76dc056b388e73913578811936cadbfb8479c534fed501b0c213e1120d557d9ec4be0268eee497abc227
|
@@ -18,37 +18,34 @@ module Fastlane
|
|
18
18
|
# Sends the used actions
|
19
19
|
# Example data => [:xcode_select, :deliver, :notify, :slack]
|
20
20
|
def did_finish
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
end
|
21
|
+
return if ENV["FASTLANE_OPT_OUT_USAGE"]
|
22
|
+
if !did_show_message? and !Helper.is_ci?
|
23
|
+
Helper.log.debug("Sending Crash/Success information. More information on: https://github.com/fastlane/enhancer")
|
24
|
+
Helper.log.debug("No personal/sensitive data is sent. Only sharing the following:")
|
25
|
+
Helper.log.debug(launches)
|
26
|
+
Helper.log.debug(@error) if @error
|
27
|
+
Helper.log.debug("This information is used to fix failing actions and improve integrations that are often used.")
|
28
|
+
Helper.log.debug("You can disable this by adding `opt_out_usage` to your Fastfile")
|
29
|
+
end
|
31
30
|
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
31
|
+
require 'excon'
|
32
|
+
url = HOST_URL + '/did_launch?'
|
33
|
+
url += URI.encode_www_form(
|
34
|
+
steps: launches.to_json,
|
35
|
+
error: @error
|
36
|
+
)
|
38
37
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
end
|
46
|
-
end
|
38
|
+
unless Helper.is_test? # don't send test data
|
39
|
+
fork do
|
40
|
+
begin
|
41
|
+
Excon.post(url)
|
42
|
+
rescue
|
43
|
+
# we don't want to show a stack trace if something goes wrong
|
47
44
|
end
|
48
|
-
rescue
|
49
|
-
# We don't care about connection errors
|
50
45
|
end
|
51
46
|
end
|
47
|
+
rescue
|
48
|
+
# We don't care about connection errors
|
52
49
|
end
|
53
50
|
|
54
51
|
def launches
|
@@ -1,16 +1,8 @@
|
|
1
1
|
module Fastlane
|
2
2
|
module Actions
|
3
|
-
module SharedValues
|
4
|
-
end
|
5
|
-
|
6
3
|
class AppstoreAction < Action
|
7
4
|
def self.run(params)
|
8
|
-
|
9
|
-
values[:beta] = false # always false for App Store
|
10
|
-
real_options = FastlaneCore::Configuration.create(Actions::DeliverAction.available_options, values)
|
11
|
-
return real_options if Helper.is_test?
|
12
|
-
|
13
|
-
Actions::DeliverAction.run(real_options)
|
5
|
+
Actions::DeliverAction.run(params)
|
14
6
|
end
|
15
7
|
|
16
8
|
#####################################################
|
@@ -18,13 +10,13 @@ module Fastlane
|
|
18
10
|
#####################################################
|
19
11
|
|
20
12
|
def self.description
|
21
|
-
"
|
13
|
+
"Alias for the deliver action"
|
22
14
|
end
|
23
15
|
|
24
16
|
def self.available_options
|
25
|
-
|
26
|
-
options
|
27
|
-
|
17
|
+
require "deliver"
|
18
|
+
require "deliver/options"
|
19
|
+
FastlaneCore::CommanderGenerator.new.generate(Deliver::Options.available_options)
|
28
20
|
end
|
29
21
|
|
30
22
|
def self.output
|
@@ -36,7 +28,7 @@ module Fastlane
|
|
36
28
|
end
|
37
29
|
|
38
30
|
def self.is_supported?(platform)
|
39
|
-
Actions::DeliverAction.is_supported?
|
31
|
+
Actions::DeliverAction.is_supported?(platform)
|
40
32
|
end
|
41
33
|
end
|
42
34
|
end
|
@@ -7,29 +7,14 @@ module Fastlane
|
|
7
7
|
def self.run(config)
|
8
8
|
require 'deliver'
|
9
9
|
|
10
|
-
FastlaneCore::UpdateChecker.start_looking_for_update('deliver') unless Helper.is_test?
|
11
|
-
|
12
10
|
begin
|
13
|
-
|
14
|
-
ENV['DELIVER_SKIP_BINARY'] = "1" if config[:metadata_only]
|
15
|
-
ENV['DELIVER_VERSION'] = Actions.lane_context[SharedValues::VERSION_NUMBER].to_s
|
16
|
-
|
17
|
-
Dir.chdir(config[:deliver_file_path] || FastlaneFolder.path || Dir.pwd) do
|
18
|
-
# This should be executed in the fastlane folder
|
19
|
-
return if Helper.is_test?
|
20
|
-
|
21
|
-
Deliver::Deliverer.new(nil,
|
22
|
-
force: config[:force],
|
23
|
-
is_beta_ipa: config[:beta],
|
24
|
-
skip_deploy: config[:skip_deploy])
|
11
|
+
FastlaneCore::UpdateChecker.start_looking_for_update('deliver') unless Helper.is_test?
|
25
12
|
|
26
|
-
|
27
|
-
|
28
|
-
end
|
13
|
+
config[:screenshots_path] ||= Actions.lane_context[SharedValues::SNAPSHOT_SCREENSHOTS_PATH] # use snapshot's screenshots
|
14
|
+
config[:ipa] ||= Actions.lane_context[SharedValues::IPA_OUTPUT_PATH]
|
29
15
|
|
30
|
-
|
31
|
-
|
32
|
-
end
|
16
|
+
return config if Helper.test?
|
17
|
+
Deliver::Runner.new(config).run
|
33
18
|
ensure
|
34
19
|
FastlaneCore::UpdateChecker.show_update_status('deliver', Deliver::VERSION)
|
35
20
|
end
|
@@ -40,39 +25,9 @@ module Fastlane
|
|
40
25
|
end
|
41
26
|
|
42
27
|
def self.available_options
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
description: "Set to true to skip PDF verification",
|
47
|
-
optional: true,
|
48
|
-
default_value: false,
|
49
|
-
is_string: false),
|
50
|
-
FastlaneCore::ConfigItem.new(key: :beta,
|
51
|
-
env_name: "FL_DELIVER_BETA",
|
52
|
-
description: "Upload a new version to TestFlight - this will skip metadata upload",
|
53
|
-
optional: true,
|
54
|
-
default_value: false,
|
55
|
-
is_string: false),
|
56
|
-
FastlaneCore::ConfigItem.new(key: :skip_deploy,
|
57
|
-
env_name: "FL_DELIVER_SKIP_DEPLOY",
|
58
|
-
description: "Skip the submission of the app - it will only be uploaded",
|
59
|
-
optional: true,
|
60
|
-
default_value: false,
|
61
|
-
is_string: false),
|
62
|
-
FastlaneCore::ConfigItem.new(key: :metadata_only,
|
63
|
-
env_name: "DELIVER_SKIP_BINARY",
|
64
|
-
description: "Skip the binary upload and upload app metadata only",
|
65
|
-
optional: true,
|
66
|
-
default_value: false,
|
67
|
-
is_string: false),
|
68
|
-
FastlaneCore::ConfigItem.new(key: :deliver_file_path,
|
69
|
-
env_name: "FL_DELIVER_CONFIG_PATH",
|
70
|
-
description: "Specify a path to the directory containing the Deliverfile",
|
71
|
-
default_value: FastlaneFolder.path || Dir.pwd, # defaults to fastlane folder
|
72
|
-
verify_block: proc do |value|
|
73
|
-
raise "Couldn't find folder '#{value}'. Make sure to pass the path to the directory not the file!".red unless File.directory?(value)
|
74
|
-
end)
|
75
|
-
]
|
28
|
+
require "deliver"
|
29
|
+
require "deliver/options"
|
30
|
+
FastlaneCore::CommanderGenerator.new.generate(Deliver::Options.available_options)
|
76
31
|
end
|
77
32
|
|
78
33
|
def self.author
|
@@ -80,7 +35,7 @@ module Fastlane
|
|
80
35
|
end
|
81
36
|
|
82
37
|
def self.is_supported?(platform)
|
83
|
-
[:ios, :mac].include?
|
38
|
+
[:ios, :mac].include?(platform)
|
84
39
|
end
|
85
40
|
end
|
86
41
|
end
|
@@ -12,7 +12,6 @@ module Fastlane
|
|
12
12
|
api_version = options[:version]
|
13
13
|
api_host = options[:api_host]
|
14
14
|
|
15
|
-
notify_room = (options[:notify_room] ? 'true' : 'false')
|
16
15
|
message_format = options[:message_format]
|
17
16
|
|
18
17
|
channel = options[:channel]
|
@@ -37,7 +36,7 @@ module Fastlane
|
|
37
36
|
'message_format' => message_format,
|
38
37
|
'room_id' => channel,
|
39
38
|
'message' => message,
|
40
|
-
'notify' => notify_room })
|
39
|
+
'notify' => options[:notify_room] ? '1' : '0' })
|
41
40
|
|
42
41
|
check_response_code(response, channel)
|
43
42
|
end
|
@@ -62,7 +61,7 @@ module Fastlane
|
|
62
61
|
'color' => color,
|
63
62
|
'message_format' => message_format,
|
64
63
|
'message' => message,
|
65
|
-
'notify' => notify_room })
|
64
|
+
'notify' => options[:notify_room] ? 'true' : 'false' })
|
66
65
|
|
67
66
|
check_response_code(response, channel)
|
68
67
|
end
|
@@ -40,7 +40,10 @@ module Fastlane
|
|
40
40
|
|
41
41
|
return values if Helper.test?
|
42
42
|
|
43
|
-
|
43
|
+
ipa_filename = options[:ipa]
|
44
|
+
ipa_filename = nil if options[:upload_dsym_only]
|
45
|
+
|
46
|
+
response = client.upload_build(ipa_filename, values)
|
44
47
|
case response.status
|
45
48
|
when 200...300
|
46
49
|
url = response.body['public_url']
|
@@ -133,7 +136,12 @@ module Fastlane
|
|
133
136
|
FastlaneCore::ConfigItem.new(key: :build_server_url,
|
134
137
|
env_name: "FL_HOCKEY_BUILD_SERVER_URL",
|
135
138
|
description: "The URL of the build job on your build server",
|
136
|
-
optional: true)
|
139
|
+
optional: true),
|
140
|
+
FastlaneCore::ConfigItem.new(key: :upload_dsym_only,
|
141
|
+
env_name: "FL_HOCKEY_UPLOAD_DSYM_ONLY",
|
142
|
+
description: "Flag to upload only the dSYM file to hockey app",
|
143
|
+
is_string: false,
|
144
|
+
default_value: false)
|
137
145
|
]
|
138
146
|
end
|
139
147
|
|
@@ -10,9 +10,9 @@ module Fastlane
|
|
10
10
|
|
11
11
|
values[:ipa] ||= Actions.lane_context[SharedValues::IPA_OUTPUT_PATH]
|
12
12
|
|
13
|
-
|
13
|
+
return if Helper.test?
|
14
14
|
|
15
|
-
|
15
|
+
Pilot::BuildManager.new.upload(values) # we already have the finished config
|
16
16
|
ensure
|
17
17
|
FastlaneCore::UpdateChecker.show_update_status('pilot', Pilot::VERSION)
|
18
18
|
end
|
@@ -1,16 +1,8 @@
|
|
1
1
|
module Fastlane
|
2
2
|
module Actions
|
3
|
-
module SharedValues
|
4
|
-
end
|
5
|
-
|
6
3
|
class TestflightAction < Action
|
7
4
|
def self.run(params)
|
8
|
-
|
9
|
-
values[:beta] = true # always true for beta actions
|
10
|
-
real_options = FastlaneCore::Configuration.create(Actions::DeliverAction.available_options, values)
|
11
|
-
return real_options if Helper.is_test?
|
12
|
-
|
13
|
-
Actions::DeliverAction.run(real_options)
|
5
|
+
Actions::PilotAction.run(params)
|
14
6
|
end
|
15
7
|
|
16
8
|
#####################################################
|
@@ -18,17 +10,13 @@ module Fastlane
|
|
18
10
|
#####################################################
|
19
11
|
|
20
12
|
def self.description
|
21
|
-
"
|
13
|
+
"Alias for the pilot action"
|
22
14
|
end
|
23
15
|
|
24
16
|
def self.available_options
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
description: "Skip the distribution of the app to all beta testers",
|
29
|
-
default_value: false,
|
30
|
-
is_string: false)
|
31
|
-
]
|
17
|
+
require "pilot"
|
18
|
+
require "pilot/options"
|
19
|
+
FastlaneCore::CommanderGenerator.new.generate(Pilot::Options.available_options)
|
32
20
|
end
|
33
21
|
|
34
22
|
def self.output
|
@@ -40,7 +28,7 @@ module Fastlane
|
|
40
28
|
end
|
41
29
|
|
42
30
|
def self.is_supported?(platform)
|
43
|
-
Actions::
|
31
|
+
Actions::PilotAction.is_supported?(platform)
|
44
32
|
end
|
45
33
|
end
|
46
34
|
end
|
@@ -29,7 +29,7 @@ module Fastlane
|
|
29
29
|
Helper.log.info "Verifying Xcode using GateKeeper..."
|
30
30
|
Helper.log.info "This will take up to a few minutes, now is a great time to go for a coffee ☕...".green
|
31
31
|
|
32
|
-
command = "spctl --assess --verbose '#{params[:xcode_path]}'"
|
32
|
+
command = "/usr/sbin/spctl --assess --verbose '#{params[:xcode_path]}'"
|
33
33
|
must_includes = ['accepted']
|
34
34
|
|
35
35
|
output = verify(command: command, must_includes: must_includes, params: params)
|
data/lib/fastlane/setup.rb
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
module Fastlane
|
2
2
|
class Setup
|
3
|
-
|
4
3
|
# the tools that are already enabled
|
5
4
|
attr_reader :tools
|
6
5
|
|
@@ -105,7 +104,11 @@ module Fastlane
|
|
105
104
|
if agree("Do you want to setup 'deliver', which is used to upload app screenshots, app metadata and app updates to the App Store or Apple TestFlight? (y/n)".yellow, true)
|
106
105
|
Helper.log.info "Loading up 'deliver', this might take a few seconds"
|
107
106
|
require 'deliver'
|
108
|
-
|
107
|
+
require 'deliver/setup'
|
108
|
+
options = FastlaneCore::Configuration.create(Deliver::Options.available_options, {})
|
109
|
+
Deliver::Runner.new(options) # to login...
|
110
|
+
Deliver::Setup.new.run(options)
|
111
|
+
|
109
112
|
@tools[:deliver] = true
|
110
113
|
end
|
111
114
|
end
|
@@ -127,7 +130,7 @@ module Fastlane
|
|
127
130
|
def generate_fastfile
|
128
131
|
template = File.read("#{Helper.gem_path('fastlane')}/lib/assets/FastfileTemplate")
|
129
132
|
|
130
|
-
scheme = ask("Optional: The scheme name of your app
|
133
|
+
scheme = ask("Optional: The scheme name of your app (If you don't need one, just hit Enter): ").to_s.strip
|
131
134
|
if scheme.length > 0
|
132
135
|
template.gsub!('[[SCHEME]]', "(scheme: \"#{scheme}\")")
|
133
136
|
else
|
data/lib/fastlane/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.30.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix Krause
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -176,7 +176,7 @@ dependencies:
|
|
176
176
|
requirements:
|
177
177
|
- - ">="
|
178
178
|
- !ruby/object:Gem::Version
|
179
|
-
version: 0.
|
179
|
+
version: 0.18.0
|
180
180
|
- - "<"
|
181
181
|
- !ruby/object:Gem::Version
|
182
182
|
version: 1.0.0
|
@@ -186,7 +186,7 @@ dependencies:
|
|
186
186
|
requirements:
|
187
187
|
- - ">="
|
188
188
|
- !ruby/object:Gem::Version
|
189
|
-
version: 0.
|
189
|
+
version: 0.18.0
|
190
190
|
- - "<"
|
191
191
|
- !ruby/object:Gem::Version
|
192
192
|
version: 1.0.0
|
@@ -216,7 +216,7 @@ dependencies:
|
|
216
216
|
requirements:
|
217
217
|
- - ">="
|
218
218
|
- !ruby/object:Gem::Version
|
219
|
-
version: 0.
|
219
|
+
version: 0.10.1
|
220
220
|
- - "<"
|
221
221
|
- !ruby/object:Gem::Version
|
222
222
|
version: 1.0.0
|
@@ -226,7 +226,7 @@ dependencies:
|
|
226
226
|
requirements:
|
227
227
|
- - ">="
|
228
228
|
- !ruby/object:Gem::Version
|
229
|
-
version: 0.
|
229
|
+
version: 0.10.1
|
230
230
|
- - "<"
|
231
231
|
- !ruby/object:Gem::Version
|
232
232
|
version: 1.0.0
|
@@ -236,20 +236,20 @@ dependencies:
|
|
236
236
|
requirements:
|
237
237
|
- - ">="
|
238
238
|
- !ruby/object:Gem::Version
|
239
|
-
version: 0.
|
239
|
+
version: 1.0.0
|
240
240
|
- - "<"
|
241
241
|
- !ruby/object:Gem::Version
|
242
|
-
version:
|
242
|
+
version: 2.0.0
|
243
243
|
type: :runtime
|
244
244
|
prerelease: false
|
245
245
|
version_requirements: !ruby/object:Gem::Requirement
|
246
246
|
requirements:
|
247
247
|
- - ">="
|
248
248
|
- !ruby/object:Gem::Version
|
249
|
-
version: 0.
|
249
|
+
version: 1.0.0
|
250
250
|
- - "<"
|
251
251
|
- !ruby/object:Gem::Version
|
252
|
-
version:
|
252
|
+
version: 2.0.0
|
253
253
|
- !ruby/object:Gem::Dependency
|
254
254
|
name: snapshot
|
255
255
|
requirement: !ruby/object:Gem::Requirement
|
@@ -376,7 +376,7 @@ dependencies:
|
|
376
376
|
requirements:
|
377
377
|
- - ">="
|
378
378
|
- !ruby/object:Gem::Version
|
379
|
-
version: 0.8.
|
379
|
+
version: 0.8.3
|
380
380
|
- - "<"
|
381
381
|
- !ruby/object:Gem::Version
|
382
382
|
version: 1.0.0
|
@@ -386,7 +386,7 @@ dependencies:
|
|
386
386
|
requirements:
|
387
387
|
- - ">="
|
388
388
|
- !ruby/object:Gem::Version
|
389
|
-
version: 0.8.
|
389
|
+
version: 0.8.3
|
390
390
|
- - "<"
|
391
391
|
- !ruby/object:Gem::Version
|
392
392
|
version: 1.0.0
|
@@ -396,7 +396,7 @@ dependencies:
|
|
396
396
|
requirements:
|
397
397
|
- - ">="
|
398
398
|
- !ruby/object:Gem::Version
|
399
|
-
version: 0.2.
|
399
|
+
version: 0.2.1
|
400
400
|
- - "<"
|
401
401
|
- !ruby/object:Gem::Version
|
402
402
|
version: 1.0.0
|
@@ -406,7 +406,7 @@ dependencies:
|
|
406
406
|
requirements:
|
407
407
|
- - ">="
|
408
408
|
- !ruby/object:Gem::Version
|
409
|
-
version: 0.2.
|
409
|
+
version: 0.2.1
|
410
410
|
- - "<"
|
411
411
|
- !ruby/object:Gem::Version
|
412
412
|
version: 1.0.0
|