fastlane 2.29.0.beta.20170503010035 → 2.29.0.beta.20170504010033

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5af3635f331af53664a682ac1e0f327148b59255
4
- data.tar.gz: 4c2519637d6f99b4279568c023afcbcdcf1d1320
3
+ metadata.gz: 2d366acd337a303b6b0a2e39e2212d931161a16d
4
+ data.tar.gz: 59ce3020554b3988a1dcb24fb060fe16cb5f4d1c
5
5
  SHA512:
6
- metadata.gz: cba9b945d5edb104026efdbad536bd114c43c41756e3bcd16132fc9be5accbe09fffaebd3d2ecd069400b1687bca9aadbb7156a0f5d6e7df1adee4eac7d1fb5c
7
- data.tar.gz: e1dcbf6170ab99f30dbef56f0257a165caf265e7713241d257280ad4fb5828deb98481a5558f1bfd0ec0e3bbc5b435d751ae192e635c36c82e44da4ab5f1c0c9
6
+ metadata.gz: 76ef73cd834d98a2b458df526bfe221314bcf938986ce9f7aa59114a2cbfc608fba00fe545fb4bb180c62e52385d1fb3168ee5519437f8237817dc5049c9fb3b
7
+ data.tar.gz: e3ec3ec15abdad2a91b40d5f785fcb4facba0da252a9a7d41364fef89090f1ffdbdd427f0090e5fae5d9e525c08939891d7019fe29c853b6077fa6b81aa607f2
@@ -250,7 +250,7 @@ module Fastlane
250
250
  default_value: "1"),
251
251
  FastlaneCore::ConfigItem.new(key: :status,
252
252
  env_name: "FL_HOCKEY_STATUS",
253
- description: "Download status: \"1\" = No user can download; \"2\" = Available for download",
253
+ description: "Download status: \"1\" = No user can download; \"2\" = Available for download (only possible with full-access token)",
254
254
  default_value: "2"),
255
255
  FastlaneCore::ConfigItem.new(key: :notes_type,
256
256
  env_name: "FL_HOCKEY_NOTES_TYPE",
@@ -1,4 +1,4 @@
1
1
  module Fastlane
2
- VERSION = '2.29.0.beta.20170503010035'.freeze
2
+ VERSION = '2.29.0.beta.20170504010033'.freeze
3
3
  DESCRIPTION = "The easiest way to automate beta deployments and releases for your iOS and Android apps".freeze
4
4
  end
@@ -51,9 +51,25 @@ module Pilot
51
51
  UI.user_error!("No build to distribute!")
52
52
  end
53
53
 
54
+ if should_update_app_test_information(options)
55
+ app_test_info = Spaceship::TestFlight::AppTestInfo.find(app_id: build.app_id)
56
+ app_test_info.test_info.feedback_email = options[:beta_app_feedback_email] if options[:beta_app_feedback_email]
57
+ app_test_info.test_info.description = options[:beta_app_description] if options[:beta_app_description]
58
+ begin
59
+ app_test_info.save_for_app!(app_id: build.app_id)
60
+ UI.success "Successfully set the beta_app_feedback_email and/or beta_app_description"
61
+ rescue => ex
62
+ UI.user_error!("Could not set beta_app_feedback_email and/or beta_app_description: #{ex}")
63
+ end
64
+ end
65
+
54
66
  if should_update_build_information(options)
55
- build.update_build_information!(whats_new: options[:changelog], description: options[:beta_app_description], feedback_email: options[:beta_app_feedback_email])
56
- UI.success "Successfully set the changelog and/or description for build"
67
+ begin
68
+ build.update_build_information!(whats_new: options[:changelog])
69
+ UI.success "Successfully set the changelog for build"
70
+ rescue => ex
71
+ UI.user_error!("Could not set changelog: #{ex}")
72
+ end
57
73
  end
58
74
 
59
75
  return if config[:skip_submission]
@@ -105,7 +121,11 @@ module Pilot
105
121
  end
106
122
 
107
123
  def should_update_build_information(options)
108
- options[:changelog].to_s.length > 0 or options[:beta_app_description].to_s.length > 0 or options[:beta_app_feedback_email].to_s.length > 0
124
+ options[:changelog].to_s.length
125
+ end
126
+
127
+ def should_update_app_test_information(options)
128
+ options[:beta_app_description].to_s.length > 0 || options[:beta_app_feedback_email].to_s.length > 0
109
129
  end
110
130
 
111
131
  def distribute_build(uploaded_build, options)
@@ -0,0 +1,27 @@
1
+ module Spaceship::TestFlight
2
+ class AppTestInfo < Base
3
+ # AppTestInfo wraps a test_info and beta_review_info in the format required to manage test_info
4
+ # for an application. Note that this structure, although looking similar to build test_info
5
+ # is test information about the application
6
+
7
+ attr_accessor :test_info
8
+
9
+ def self.find(app_id: nil)
10
+ raw_app_test_info = client.get_app_test_info(app_id: app_id)
11
+ self.new(raw_app_test_info)
12
+ end
13
+
14
+ def test_info
15
+ Spaceship::TestFlight::TestInfo.new(raw_data['details'])
16
+ end
17
+
18
+ def test_info=(value)
19
+ raw_data.set(['details'], value.raw_data)
20
+ end
21
+
22
+ # saves the changes to the App Test Info object to TestFlight
23
+ def save_for_app!(app_id: nil)
24
+ client.put_app_test_info(app_id: app_id, app_test_info: self)
25
+ end
26
+ end
27
+ end
@@ -34,20 +34,6 @@ module Spaceship::TestFlight
34
34
  handle_response(response)
35
35
  end
36
36
 
37
- def testers_for_app(app_id: nil)
38
- assert_required_params(__method__, binding)
39
- url = "providers/#{team_id}/apps/#{app_id}/testers"
40
- response = request(:get, url)
41
- handle_response(response)
42
- end
43
-
44
- def delete_tester_from_app(app_id: nil, tester_id: nil)
45
- assert_required_params(__method__, binding)
46
- url = "providers/#{team_id}/apps/#{app_id}/testers/#{tester_id}"
47
- response = request(:delete, url)
48
- handle_response(response)
49
- end
50
-
51
37
  ##
52
38
  # @!group Builds API
53
39
  ##
@@ -111,6 +97,20 @@ module Spaceship::TestFlight
111
97
  # @!group Testers API
112
98
  ##
113
99
 
100
+ def testers_for_app(app_id: nil)
101
+ assert_required_params(__method__, binding)
102
+ url = "providers/#{team_id}/apps/#{app_id}/testers?limit=10000"
103
+ response = request(:get, url)
104
+ handle_response(response)
105
+ end
106
+
107
+ def delete_tester_from_app(app_id: nil, tester_id: nil)
108
+ assert_required_params(__method__, binding)
109
+ url = "providers/#{team_id}/apps/#{app_id}/testers/#{tester_id}"
110
+ response = request(:delete, url)
111
+ handle_response(response)
112
+ end
113
+
114
114
  def post_tester(app_id: nil, tester: nil)
115
115
  assert_required_params(__method__, binding)
116
116
 
@@ -156,15 +156,22 @@ module Spaceship::TestFlight
156
156
  end
157
157
 
158
158
  ##
159
- # @!group TestInfo
159
+ # @!group AppTestInfo
160
160
  ##
161
161
 
162
- def put_testinfo(app_id: nil, testinfo: nil)
162
+ def get_app_test_info(app_id: nil)
163
+ assert_required_params(__method__, binding)
164
+
165
+ response = request(:get, "providers/#{team_id}/apps/#{app_id}/testInfo")
166
+ handle_response(response)
167
+ end
168
+
169
+ def put_app_test_info(app_id: nil, app_test_info: nil)
163
170
  assert_required_params(__method__, binding)
164
171
 
165
172
  response = request(:put) do |req|
166
173
  req.url "providers/#{team_id}/apps/#{app_id}/testInfo"
167
- req.body = testinfo.to_json
174
+ req.body = app_test_info.to_json
168
175
  req.headers['Content-Type'] = 'application/json'
169
176
  end
170
177
  handle_response(response)
@@ -1,6 +1,7 @@
1
1
 
2
2
  require 'spaceship/test_flight/client'
3
3
  require 'spaceship/test_flight/base'
4
+ require 'spaceship/test_flight/app_test_info'
4
5
  require 'spaceship/test_flight/build'
5
6
  require 'spaceship/test_flight/build_trains'
6
7
  require 'spaceship/test_flight/beta_review_info'
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.29.0.beta.20170503010035
4
+ version: 2.29.0.beta.20170504010033
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
@@ -15,7 +15,7 @@ authors:
15
15
  autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
- date: 2017-05-03 00:00:00.000000000 Z
18
+ date: 2017-05-04 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: slack-notifier
@@ -1285,6 +1285,7 @@ files:
1285
1285
  - spaceship/lib/spaceship/portal/website_push.rb
1286
1286
  - spaceship/lib/spaceship/spaceauth_runner.rb
1287
1287
  - spaceship/lib/spaceship/test_flight.rb
1288
+ - spaceship/lib/spaceship/test_flight/app_test_info.rb
1288
1289
  - spaceship/lib/spaceship/test_flight/base.rb
1289
1290
  - spaceship/lib/spaceship/test_flight/beta_review_info.rb
1290
1291
  - spaceship/lib/spaceship/test_flight/build.rb
@@ -1356,22 +1357,22 @@ metadata:
1356
1357
  post_install_message:
1357
1358
  rdoc_options: []
1358
1359
  require_paths:
1360
+ - fastlane/lib
1361
+ - supply/lib
1359
1362
  - snapshot/lib
1360
- - produce/lib
1363
+ - pilot/lib
1364
+ - cert/lib
1365
+ - credentials_manager/lib
1361
1366
  - gym/lib
1362
- - fastlane_core/lib
1363
- - scan/lib
1364
- - match/lib
1365
1367
  - spaceship/lib
1366
- - sigh/lib
1367
- - pilot/lib
1368
+ - scan/lib
1368
1369
  - deliver/lib
1369
- - fastlane/lib
1370
- - cert/lib
1370
+ - produce/lib
1371
1371
  - frameit/lib
1372
- - supply/lib
1373
- - credentials_manager/lib
1374
1372
  - pem/lib
1373
+ - match/lib
1374
+ - sigh/lib
1375
+ - fastlane_core/lib
1375
1376
  - screengrab/lib
1376
1377
  required_ruby_version: !ruby/object:Gem::Requirement
1377
1378
  requirements: