fastlane 2.117.0.beta.20190218200024 → 2.117.0.beta.20190219200042

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: 31414b6c832d116b909e570b6f6faad4176a3325
4
- data.tar.gz: 4b1a32857a14184f3b4e15119841615c24bd837d
3
+ metadata.gz: de7affcfda093c1572ac2416c8e9c06510b0cae8
4
+ data.tar.gz: b22849e73ef30dc31e4dd5f2d24383041e3179c3
5
5
  SHA512:
6
- metadata.gz: 6e1d37be2b97176c135a3b8ea59400154a657fbd37a71e283f30c5149af96f52eb699cd75fcfe3b2e2cd51fc00cb7f725e7bd714772a39756add2a0cf79b5f43
7
- data.tar.gz: 88992eeb7dd611d8587cd0bb7b64e66061c5cd00da078c301dc3b6c627863bf577f1816b28589c78ac1291cb1d86bd8a0d2e634a116fa59f785f122a33bef9ea
6
+ metadata.gz: 5fc379cc5370ea5a669f5e98d84bf2c4da3befad996743837d917d9c0b7475bf921e85bd83a045d6782c5ac6041e8edad4bcbed802e91785ba1758d087338d53
7
+ data.tar.gz: a28d03cdd26cea8e7112275432e3f2c2c11a178406ae04ab6c41974331a097b261437d795a343f2ee3c746c4307bdb00ef2e0d20e564236c082107e02394545e
@@ -4,16 +4,14 @@ module Fastlane
4
4
  def self.run(params)
5
5
  require 'produce'
6
6
 
7
- return if Helper.test?
8
-
9
7
  Produce.config = params
10
8
 
11
9
  Dir.chdir(FastlaneCore::FastlaneFolder.path || Dir.pwd) do
12
10
  require 'produce/service'
13
11
  services = params[:services]
14
12
 
15
- enabled_services = services.reject { |k, v| v == 'off' }
16
- disabled_services = services.select { |k, v| v == 'off' }
13
+ enabled_services = services.select { |_k, v| v == true || v.to_s == 'on' }.map { |k, v| [k, 'on'] }.to_h
14
+ disabled_services = services.reject { |_k, v| v == true || v.to_s == 'on' }.map { |k, v| [k, 'off'] }.to_h
17
15
 
18
16
  enabled_services_object = self.service_object
19
17
  enabled_services.each do |k, v|
@@ -72,7 +70,7 @@ module Fastlane
72
70
 
73
71
  def self.allowed_services_description
74
72
  return Produce::DeveloperCenter::ALLOWED_SERVICES.map do |k, v|
75
- "#{k}: (#{v.join('|')})"
73
+ "#{k}: (#{v.join('|')})(:on|:off)(true|false)"
76
74
  end.join(", ")
77
75
  end
78
76
 
@@ -158,9 +156,12 @@ module Fastlane
158
156
  app_identifier: "com.someorg.app",
159
157
  services: {
160
158
  push_notification: "on",
161
- associated_domains: "off"
162
- }
163
- )'
159
+ associated_domains: "off",
160
+ wallet: :on,
161
+ apple_pay: :off,
162
+ data_protection: true,
163
+ multipath: false
164
+ })'
164
165
  ]
165
166
  end
166
167
 
@@ -17,7 +17,8 @@ module Fastlane
17
17
  UI.important("Submit inputs using \"#{params[:multi_line_end_keyword]}\"")
18
18
  user_input = ""
19
19
  loop do
20
- line = STDIN.gets
20
+ line = STDIN.gets # returns `nil` if called at end of file
21
+ break unless line
21
22
  end_tag_index = line.index(end_tag)
22
23
  if end_tag_index.nil?
23
24
  user_input << line
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
- VERSION = '2.117.0.beta.20190218200024'.freeze
2
+ VERSION = '2.117.0.beta.20190219200042'.freeze
3
3
  DESCRIPTION = "The easiest way to automate beta deployments and releases for your iOS and Android apps".freeze
4
4
  MINIMUM_XCODE_RELEASE = "7.0".freeze
5
5
  RUBOCOP_REQUIREMENT = '0.49.1'.freeze
@@ -51,12 +51,12 @@ module Pilot
51
51
  short_option: "-w",
52
52
  optional: true,
53
53
  env_name: "PILOT_CHANGELOG",
54
- description: "Provide the 'what's new' text when uploading a new build"),
54
+ description: "Provide the 'What to Test' text when uploading a new build. `skip_waiting_for_build_processing: false` is required to set the changelog"),
55
55
  FastlaneCore::ConfigItem.new(key: :beta_app_description,
56
56
  short_option: "-d",
57
57
  optional: true,
58
58
  env_name: "PILOT_BETA_APP_DESCRIPTION",
59
- description: "Provide the beta app description when uploading a new build"),
59
+ description: "Provide the 'Beta App Description' when uploading a new build"),
60
60
  FastlaneCore::ConfigItem.new(key: :beta_app_feedback_email,
61
61
  short_option: "-n",
62
62
  optional: true,
@@ -13,13 +13,24 @@ module Supply
13
13
  attr_accessor :client
14
14
 
15
15
  def self.make_from_config(params: nil)
16
- unless params[:json_key] || params[:json_key_data]
17
- UI.important("To not be asked about this value, you can specify it using 'json_key'")
18
- json_key_path = UI.input("The service account json file used to authenticate with Google: ")
19
- json_key_path = File.expand_path(json_key_path)
16
+ params ||= Supply.config
17
+ service_account_data = self.service_account_authentication(params: params)
18
+ return self.new(service_account_json: service_account_data, params: params)
19
+ end
20
20
 
21
- UI.user_error!("Could not find service account json file at path '#{json_key_path}'") unless File.exist?(json_key_path)
22
- params[:json_key] = json_key_path
21
+ # Supply authentication file
22
+ def self.service_account_authentication(params: nil)
23
+ unless params[:json_key] || params[:json_key_data]
24
+ if UI.interactive?
25
+ UI.important("To not be asked about this value, you can specify it using 'json_key'")
26
+ json_key_path = UI.input("The service account json file used to authenticate with Google: ")
27
+ json_key_path = File.expand_path(json_key_path)
28
+
29
+ UI.user_error!("Could not find service account json file at path '#{json_key_path}'") unless File.exist?(json_key_path)
30
+ params[:json_key] = json_key_path
31
+ else
32
+ UI.user_error!("Could not load Google authentication. Make sure it has been added as an environment variable in 'json_key' or 'json_key_data'")
33
+ end
23
34
  end
24
35
 
25
36
  if params[:json_key]
@@ -28,7 +39,7 @@ module Supply
28
39
  service_account_json = StringIO.new(params[:json_key_data])
29
40
  end
30
41
 
31
- return self.new(service_account_json: service_account_json, params: params)
42
+ service_account_json
32
43
  end
33
44
 
34
45
  # Initializes the service and its auth_client using the specified information
@@ -86,40 +97,22 @@ module Supply
86
97
  # @!group Login
87
98
  #####################################################
88
99
 
89
- # instantiate a client given the supplied configuration
90
- def self.make_from_config(params: nil)
91
- if params.nil?
92
- params = Supply.config
93
- end
94
-
95
- # first consider deprecated params
96
- unless params[:json_key] || params[:json_key_data] || (params[:key] && params[:issuer])
97
- UI.important("To not be asked about this value, you can specify it using 'json_key'")
98
- params[:json_key] = UI.input("The service account json file used to authenticate with Google: ")
99
- end
100
-
101
- super(params: params)
102
- end
103
-
104
- # Initializes the client and its auth_client using the specified information
105
- # @param service_account_json: The raw service account Json data
106
- # @param path_to_key: The path to your p12 file (@deprecated)
107
- # @param issuer: Email address for oauth (@deprecated)
108
- def initialize(path_to_key: nil, issuer: nil, service_account_json: nil, params: nil)
109
- if service_account_json
110
- key_io = service_account_json
111
- else
112
- # deprecated
100
+ def self.service_account_authentication(params: nil)
101
+ if params[:json_key] || params[:json_key_data]
102
+ super(params: params)
103
+ elsif params[:key] && params[:issuer]
113
104
  require 'google/api_client/auth/key_utils'
114
- key = Google::APIClient::KeyUtils.load_from_pkcs12(File.expand_path(path_to_key), 'notasecret')
105
+ UI.important("This type of authentication is deprecated. Please consider using JSON authentication instead")
106
+ key = Google::APIClient::KeyUtils.load_from_pkcs12(File.expand_path(params[:key]), 'notasecret')
115
107
  cred_json = {
116
108
  private_key: key.to_s,
117
- client_email: issuer
109
+ client_email: params[:issuer]
118
110
  }
119
- key_io = StringIO.new(MultiJson.dump(cred_json))
111
+ service_account_json = StringIO.new(MultiJson.dump(cred_json))
112
+ service_account_json
113
+ else
114
+ UI.user_error!("No authentication parameters were specified. These must be provided in order to authenticate with Google")
120
115
  end
121
-
122
- super(service_account_json: key_io, params: params)
123
116
  end
124
117
 
125
118
  #####################################################
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.117.0.beta.20190218200024
4
+ version: 2.117.0.beta.20190219200042
5
5
  platform: ruby
6
6
  authors:
7
7
  - Olivier Halligon
@@ -27,7 +27,7 @@ authors:
27
27
  autorequire:
28
28
  bindir: bin
29
29
  cert_chain: []
30
- date: 2019-02-18 00:00:00.000000000 Z
30
+ date: 2019-02-19 00:00:00.000000000 Z
31
31
  dependencies:
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: slack-notifier
@@ -1687,24 +1687,24 @@ metadata:
1687
1687
  post_install_message:
1688
1688
  rdoc_options: []
1689
1689
  require_paths:
1690
- - spaceship/lib
1690
+ - sigh/lib
1691
+ - precheck/lib
1692
+ - pilot/lib
1691
1693
  - credentials_manager/lib
1692
- - pem/lib
1693
- - scan/lib
1694
- - screengrab/lib
1695
- - gym/lib
1696
- - snapshot/lib
1697
1694
  - fastlane_core/lib
1698
1695
  - cert/lib
1696
+ - produce/lib
1697
+ - scan/lib
1698
+ - gym/lib
1699
+ - pem/lib
1700
+ - screengrab/lib
1699
1701
  - match/lib
1702
+ - spaceship/lib
1703
+ - fastlane/lib
1704
+ - snapshot/lib
1700
1705
  - frameit/lib
1701
1706
  - deliver/lib
1702
- - fastlane/lib
1703
1707
  - supply/lib
1704
- - pilot/lib
1705
- - produce/lib
1706
- - sigh/lib
1707
- - precheck/lib
1708
1708
  required_ruby_version: !ruby/object:Gem::Requirement
1709
1709
  requirements:
1710
1710
  - - ">="