fastlane 1.87.0 → 1.87.1

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
  SHA1:
3
- metadata.gz: a5d72bde2814ab63746e584edd4778f24f155374
4
- data.tar.gz: 32e8447fd23c2d17be8661d2ef014d96467f9ae3
3
+ metadata.gz: b61a1b51d393c1caf8c9d362afaa0bafb810c373
4
+ data.tar.gz: f6f2234302a215f94e69e618adf50707b8f3af84
5
5
  SHA512:
6
- metadata.gz: 05ebe99710027c088db55eb78c211ec65ebded3bc4866946855584d60ad6c5fb1e47d7088caaae3bc5c2e052bf6edfba0ff1dd72c272ab32629534e90e9d6cfb
7
- data.tar.gz: 40b65c9bcbce9d7396d32aaf758e071f35dcc8c099310dc035899c2aef3d679370bef641dbb2b3edc88fa257d1793d5727cdbc5c04488e3ab5401b7b5a5652dc
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
- platform == :ios
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: 'ios'
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
- UI.message "Uploading ipa to appetize... this might take a while"
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
- ENV["FRAMEIT_FORCE_DEVICE_TYPE"] = config[:force_device_type] if config[:force_device_type]
18
- Frameit::Runner.new.run('.', color)
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
- FastlaneCore::ConfigItem.new(key: :white,
33
- env_name: "FRAMEIT_WHITE_FRAME",
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
- default_value: Actions.lane_context[SharedValues::SNAPSHOT_SCREENSHOTS_PATH] || FastlaneFolder.path),
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
- response = Excon.get("#{server_url}/repos/#{params[:url]}/releases", headers: headers)
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
@@ -4,7 +4,6 @@ module Fastlane
4
4
  :pilot,
5
5
  :spaceship,
6
6
  :produce,
7
- :cert,
8
7
  :deliver,
9
8
  :frameit,
10
9
  :pem,
@@ -1,4 +1,4 @@
1
1
  module Fastlane
2
- VERSION = '1.87.0'.freeze
2
+ VERSION = '1.87.1'.freeze
3
3
  DESCRIPTION = "The easiest way to automate building and releasing your iOS and Android apps"
4
4
  end
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.0
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-09 00:00:00.000000000 Z
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.1
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.1
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.1
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.1
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.0
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.0
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.5.1
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: