fastlane 1.87.0 → 1.87.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 +4 -4
- data/lib/fastlane/actions/appetize.rb +13 -3
- data/lib/fastlane/actions/frameit.rb +6 -26
- data/lib/fastlane/actions/get_github_release.rb +4 -4
- data/lib/fastlane/tools.rb +0 -1
- data/lib/fastlane/version.rb +1 -1
- metadata +10 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b61a1b51d393c1caf8c9d362afaa0bafb810c373
|
|
4
|
+
data.tar.gz: f6f2234302a215f94e69e618adf50707b8f3af84
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0616a7d3f61b4064b067cd377e3294543c3b92b4842f973a60f713264a7213963fd17fdb2adea50f6179a67105b066af35f0c63ee73d8390b75e7b8f8e318aeb
|
|
7
|
+
data.tar.gz: dea5ae27e7a85981b4b8493feee881f49a9e70b4c317c0f28c3a33a37c32f0ae720d10dcc832f03210bf257c51050f7b61c3ca5a367f4ae4a6fa91d45c30a657
|
|
@@ -8,7 +8,7 @@ module Fastlane
|
|
|
8
8
|
|
|
9
9
|
class AppetizeAction < Action
|
|
10
10
|
def self.is_supported?(platform)
|
|
11
|
-
|
|
11
|
+
[:ios, :android].include?(platform)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
def self.run(options)
|
|
@@ -18,7 +18,7 @@ module Fastlane
|
|
|
18
18
|
require 'json'
|
|
19
19
|
|
|
20
20
|
params = {
|
|
21
|
-
platform:
|
|
21
|
+
platform: options[:platform]
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
if options[:path]
|
|
@@ -37,7 +37,12 @@ module Fastlane
|
|
|
37
37
|
http = Net::HTTP.new(uri.host, uri.port)
|
|
38
38
|
http.use_ssl = true
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
if params[:platform] == 'ios'
|
|
41
|
+
UI.message "Uploading ipa to appetize... this might take a while"
|
|
42
|
+
else
|
|
43
|
+
UI.message "Uploading apk to appetize... this might take a while"
|
|
44
|
+
end
|
|
45
|
+
|
|
41
46
|
response = http.request(req)
|
|
42
47
|
|
|
43
48
|
parse_response(response) # this will raise an exception if something goes wrong
|
|
@@ -99,6 +104,11 @@ module Fastlane
|
|
|
99
104
|
description: "URL from which the ipa file can be fetched. Alternative to :path",
|
|
100
105
|
is_string: true,
|
|
101
106
|
optional: true),
|
|
107
|
+
FastlaneCore::ConfigItem.new(key: :platform,
|
|
108
|
+
env_name: "APPETIZE_PLATFORM",
|
|
109
|
+
description: "Platform. Either `ios` or `android`. Default is `ios`",
|
|
110
|
+
is_string: true,
|
|
111
|
+
default_value: 'ios'),
|
|
102
112
|
FastlaneCore::ConfigItem.new(key: :path,
|
|
103
113
|
env_name: "APPETIZE_FILE_PATH",
|
|
104
114
|
description: "Path to zipped build on the local filesystem. Either this or `url` must be specified",
|
|
@@ -8,15 +8,12 @@ module Fastlane
|
|
|
8
8
|
|
|
9
9
|
begin
|
|
10
10
|
FastlaneCore::UpdateChecker.start_looking_for_update('frameit') unless Helper.is_test?
|
|
11
|
-
color = Frameit::Color::BLACK
|
|
12
|
-
color = Frameit::Color::SILVER if config[:white] || config[:silver]
|
|
13
11
|
|
|
14
12
|
UI.message("Framing screenshots at path #{config[:path]}")
|
|
15
13
|
|
|
16
14
|
Dir.chdir(config[:path]) do
|
|
17
|
-
|
|
18
|
-
Frameit::Runner.new.run('.'
|
|
19
|
-
ENV.delete("FRAMEIT_FORCE_DEVICE_TYPE") if config[:force_device_type]
|
|
15
|
+
Frameit.config = config
|
|
16
|
+
Frameit::Runner.new.run('.')
|
|
20
17
|
end
|
|
21
18
|
ensure
|
|
22
19
|
FastlaneCore::UpdateChecker.show_update_status('frameit', Frameit::VERSION)
|
|
@@ -28,30 +25,13 @@ module Fastlane
|
|
|
28
25
|
end
|
|
29
26
|
|
|
30
27
|
def self.available_options
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
description: "Use white device frames",
|
|
35
|
-
optional: true,
|
|
36
|
-
is_string: false),
|
|
37
|
-
FastlaneCore::ConfigItem.new(key: :silver,
|
|
38
|
-
description: "Use white device frames. Alias for :white",
|
|
39
|
-
optional: true,
|
|
40
|
-
is_string: false),
|
|
28
|
+
require "frameit"
|
|
29
|
+
require "frameit/options"
|
|
30
|
+
FastlaneCore::CommanderGenerator.new.generate(Frameit::Options.available_options) + [
|
|
41
31
|
FastlaneCore::ConfigItem.new(key: :path,
|
|
42
32
|
env_name: "FRAMEIT_SCREENSHOTS_PATH",
|
|
43
33
|
description: "The path to the directory containing the screenshots",
|
|
44
|
-
|
|
45
|
-
FastlaneCore::ConfigItem.new(key: :force_device_type,
|
|
46
|
-
env_name: "FRAMEIT_FORCE_DEVICE_TYPE",
|
|
47
|
-
description: "Forces a given device type, useful for Mac screenshots, as their sizes vary",
|
|
48
|
-
optional: true,
|
|
49
|
-
verify_block: proc do |value|
|
|
50
|
-
available = ['iPhone_6_Plus', 'iPhone_5s', 'iPhone_4', 'iPad_mini', 'Mac']
|
|
51
|
-
unless available.include? value
|
|
52
|
-
UI.user_error!("Invalid device type '#{value}'. Available values: #{available}")
|
|
53
|
-
end
|
|
54
|
-
end)
|
|
34
|
+
default_value: Actions.lane_context[SharedValues::SNAPSHOT_SCREENSHOTS_PATH] || FastlaneFolder.path)
|
|
55
35
|
]
|
|
56
36
|
end
|
|
57
37
|
|
|
@@ -10,15 +10,15 @@ module Fastlane
|
|
|
10
10
|
require 'excon'
|
|
11
11
|
require 'base64'
|
|
12
12
|
|
|
13
|
-
# To still get the data when a repo has been moved
|
|
14
|
-
Excon.defaults[:middlewares] << Excon::Middleware::RedirectFollower
|
|
15
|
-
|
|
16
13
|
server_url = params[:server_url]
|
|
17
14
|
server_url = server_url[0..-2] if server_url.end_with? '/'
|
|
18
15
|
|
|
19
16
|
headers = { 'User-Agent' => 'fastlane-get_github_release' }
|
|
20
17
|
headers['Authorization'] = "Basic #{Base64.strict_encode64(params[:api_token])}" if params[:api_token]
|
|
21
|
-
|
|
18
|
+
|
|
19
|
+
# To still get the data when a repo has been moved
|
|
20
|
+
middlewares = Excon.defaults[:middlewares] + [Excon::Middleware::RedirectFollower]
|
|
21
|
+
response = Excon.get("#{server_url}/repos/#{params[:url]}/releases", headers: headers, middlewares: middlewares)
|
|
22
22
|
|
|
23
23
|
case response[:status]
|
|
24
24
|
when 404
|
data/lib/fastlane/tools.rb
CHANGED
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.87.
|
|
4
|
+
version: 1.87.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Felix Krause
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-05-
|
|
11
|
+
date: 2016-05-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: krausefx-shenzhen
|
|
@@ -148,7 +148,7 @@ dependencies:
|
|
|
148
148
|
requirements:
|
|
149
149
|
- - ">="
|
|
150
150
|
- !ruby/object:Gem::Version
|
|
151
|
-
version: 0.43.
|
|
151
|
+
version: 0.43.2
|
|
152
152
|
- - "<"
|
|
153
153
|
- !ruby/object:Gem::Version
|
|
154
154
|
version: 1.0.0
|
|
@@ -158,7 +158,7 @@ dependencies:
|
|
|
158
158
|
requirements:
|
|
159
159
|
- - ">="
|
|
160
160
|
- !ruby/object:Gem::Version
|
|
161
|
-
version: 0.43.
|
|
161
|
+
version: 0.43.2
|
|
162
162
|
- - "<"
|
|
163
163
|
- !ruby/object:Gem::Version
|
|
164
164
|
version: 1.0.0
|
|
@@ -248,7 +248,7 @@ dependencies:
|
|
|
248
248
|
requirements:
|
|
249
249
|
- - ">="
|
|
250
250
|
- !ruby/object:Gem::Version
|
|
251
|
-
version: 2.6.
|
|
251
|
+
version: 2.6.2
|
|
252
252
|
- - "<"
|
|
253
253
|
- !ruby/object:Gem::Version
|
|
254
254
|
version: 3.0.0
|
|
@@ -258,7 +258,7 @@ dependencies:
|
|
|
258
258
|
requirements:
|
|
259
259
|
- - ">="
|
|
260
260
|
- !ruby/object:Gem::Version
|
|
261
|
-
version: 2.6.
|
|
261
|
+
version: 2.6.2
|
|
262
262
|
- - "<"
|
|
263
263
|
- !ruby/object:Gem::Version
|
|
264
264
|
version: 3.0.0
|
|
@@ -408,7 +408,7 @@ dependencies:
|
|
|
408
408
|
requirements:
|
|
409
409
|
- - ">="
|
|
410
410
|
- !ruby/object:Gem::Version
|
|
411
|
-
version: 0.6.
|
|
411
|
+
version: 0.6.1
|
|
412
412
|
- - "<"
|
|
413
413
|
- !ruby/object:Gem::Version
|
|
414
414
|
version: 1.0.0
|
|
@@ -418,7 +418,7 @@ dependencies:
|
|
|
418
418
|
requirements:
|
|
419
419
|
- - ">="
|
|
420
420
|
- !ruby/object:Gem::Version
|
|
421
|
-
version: 0.6.
|
|
421
|
+
version: 0.6.1
|
|
422
422
|
- - "<"
|
|
423
423
|
- !ruby/object:Gem::Version
|
|
424
424
|
version: 1.0.0
|
|
@@ -908,8 +908,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
908
908
|
version: '0'
|
|
909
909
|
requirements: []
|
|
910
910
|
rubyforge_project:
|
|
911
|
-
rubygems_version: 2.
|
|
911
|
+
rubygems_version: 2.6.2
|
|
912
912
|
signing_key:
|
|
913
913
|
specification_version: 4
|
|
914
914
|
summary: The easiest way to automate building and releasing your iOS and Android apps
|
|
915
915
|
test_files: []
|
|
916
|
+
has_rdoc:
|