fastlane 2.18.0.beta.20170218010103 → 2.18.0.beta.20170219010032

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: 26344fc38e6bbb52df6730fd55f0aad3c5faa291
4
- data.tar.gz: 7567c71aaf884fb1140d4541df84d79b06e4a7d5
3
+ metadata.gz: 17f99d6e6eaa0f5e45cfc24f92aa8b1fe2388837
4
+ data.tar.gz: b3e64049b4e7d5eae68893294836617a169ca53e
5
5
  SHA512:
6
- metadata.gz: fbcca6ceea36efa4997e21bbe549204e21ee24fa0869c765aeefcbbb618d178dbe0aabaec6b4dbeeee1f26069ed2e06cc0cdb7a1ea64c47cf408985972d5cc2f
7
- data.tar.gz: 8121a45f2868454cef211d3cbd6fd43bcbb1c9a2c516c7d63f2d3fc08b617e4cfe962a56bc52e15d535004a44588dad2e1182a6a9751ea9330ed9a9680824a18
6
+ metadata.gz: 6689923739a46a4c5fba3bda0b02d3917aaf1bb9a930cb13cc5feac8f03c1f7335cc8a2283a2719449368aacf21b6d80547e87a53bb084e2d588e02ca56c6d95
7
+ data.tar.gz: b9f562c9be1e85d839bfcd8247de788746c23ec2a08ad11b5ab50e0078252227899dbcef28f792e8c739f0a119b670f792dc55b5f7366312885208bb701e5e30
@@ -114,6 +114,16 @@
114
114
  float: left;
115
115
  margin-right: 20px;
116
116
  }
117
+
118
+ .app-review-information {
119
+ margin-left: 15px;
120
+ margin-right: 15px;
121
+ margin-top: 22px;
122
+ }
123
+
124
+ .app-review-information-key {
125
+ font-weight: 700;
126
+ }
117
127
  </style>
118
128
  </head>
119
129
 
@@ -228,5 +238,20 @@
228
238
 
229
239
  <hr />
230
240
  <% end # end data %>
241
+ <% if @options[:app_review_information] %>
242
+ <div class="app-review-information">
243
+ <div class="cat-headline">Review Information</div>
244
+ <dl class="app-review-information">
245
+ <% @options[:app_review_information].each do |key, value| %>
246
+ <dt class="app-review-information-key">
247
+ <%= key.to_s.capitalize.gsub("_", " ") %>
248
+ </dt>
249
+ <dd class="app-review-information-text">
250
+ <%= (value || '').gsub("\n", "<br />") %>
251
+ </dd>
252
+ <% end %>
253
+ </dl>
254
+ </div>
255
+ <% end %>
231
256
  </body>
232
257
  </html>
@@ -66,6 +66,17 @@ module Deliver
66
66
  UI.message("Writing to '#{resulting_path}'")
67
67
  end
68
68
 
69
+ # Review information
70
+ UploadMetadata::REVIEW_INFORMATION_VALUES.each do |key, option_name|
71
+ content = v.send(key).to_s
72
+ content << "\n"
73
+ base_dir = File.join(path, UploadMetadata::REVIEW_INFORMATION_DIR)
74
+ FileUtils.mkdir_p(base_dir)
75
+ resulting_path = File.join(base_dir, "#{option_name}.txt")
76
+ File.write(resulting_path, content)
77
+ UI.message("Writing to '#{resulting_path}'")
78
+ end
79
+
69
80
  UI.success("Successfully created new configuration files.")
70
81
 
71
82
  # get App icon + watch icon
@@ -15,12 +15,26 @@ module Deliver
15
15
  :primary_first_sub_category, :primary_second_sub_category,
16
16
  :secondary_first_sub_category, :secondary_second_sub_category]
17
17
 
18
+ # Review information values
19
+ REVIEW_INFORMATION_VALUES = {
20
+ review_first_name: :first_name,
21
+ review_last_name: :last_name,
22
+ review_phone_number: :phone_number,
23
+ review_email: :email_address,
24
+ review_demo_user: :demo_user,
25
+ review_demo_password: :demo_password,
26
+ review_notes: :notes
27
+ }
28
+
18
29
  # Localized app details values, that are editable in live state
19
30
  LOCALISED_LIVE_VALUES = [:description, :release_notes, :support_url, :marketing_url]
20
31
 
21
32
  # Non localized app details values, that are editable in live state
22
33
  NON_LOCALISED_LIVE_VALUES = [:privacy_url]
23
34
 
35
+ # Directory name it contains review information
36
+ REVIEW_INFORMATION_DIR = "review_information"
37
+
24
38
  # Make sure to call `load_from_filesystem` before calling upload
25
39
  def upload(options)
26
40
  return if options[:skip_metadata]
@@ -183,6 +197,17 @@ module Deliver
183
197
  UI.message("Loading '#{path}'...")
184
198
  options[key] ||= File.read(path)
185
199
  end
200
+
201
+ # Load review information
202
+ options[:app_review_information] ||= {}
203
+ REVIEW_INFORMATION_VALUES.values.each do |option_name|
204
+ path = File.join(options[:metadata_path], REVIEW_INFORMATION_DIR, "#{option_name}.txt")
205
+ next unless File.exist?(path)
206
+ next if options[:app_review_information][option_name].to_s.length > 0
207
+
208
+ UI.message("Loading '#{path}'...")
209
+ options[:app_review_information][option_name] ||= File.read(path)
210
+ end
186
211
  end
187
212
 
188
213
  private
@@ -192,14 +217,10 @@ module Deliver
192
217
  info = options[:app_review_information]
193
218
  UI.user_error!("`app_review_information` must be a hash", show_github_issues: true) unless info.kind_of?(Hash)
194
219
 
195
- v.review_first_name = info[:first_name] if info[:first_name]
196
- v.review_last_name = info[:last_name] if info[:last_name]
197
- v.review_phone_number = info[:phone_number] if info[:phone_number]
198
- v.review_email = info[:email_address] if info[:email_address]
199
- v.review_demo_user = info[:demo_user] if info[:demo_user]
200
- v.review_demo_password = info[:demo_password] if info[:demo_password]
220
+ REVIEW_INFORMATION_VALUES.each do |key, option_name|
221
+ v.send("#{key}=", info[option_name]) if info[option_name]
222
+ end
201
223
  v.review_user_needed = (v.review_demo_user.to_s + v.review_demo_password.to_s).length > 0
202
- v.review_notes = info[:notes] if info[:notes]
203
224
  end
204
225
 
205
226
  def set_app_rating(v, options)
@@ -1,4 +1,4 @@
1
1
  module Fastlane
2
- VERSION = '2.18.0.beta.20170218010103'.freeze
2
+ VERSION = '2.18.0.beta.20170219010032'.freeze
3
3
  DESCRIPTION = "The easiest way to automate beta deployments and releases for your iOS and Android apps".freeze
4
4
  end
@@ -703,7 +703,7 @@ function resign {
703
703
  # otherwise it interprets they key path as nested keys
704
704
  # TODO: Should be able to replace with echo ${KEY//\./\\\\.} and remove shellcheck disable directive
705
705
  # shellcheck disable=SC2001
706
- PLUTIL_KEY=$(echo "$KEY" | sed 's/\./\\\\./g')
706
+ PLUTIL_KEY=$(echo "$KEY" | sed 's/\./\\\./g')
707
707
  plutil -insert "$PLUTIL_KEY" -xml "$ENTITLEMENTS_VALUE" "$PATCHED_ENTITLEMENTS"
708
708
 
709
709
  # Patch the ID value if specified
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.18.0.beta.20170218010103
4
+ version: 2.18.0.beta.20170219010032
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2017-02-18 00:00:00.000000000 Z
17
+ date: 2017-02-19 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: slack-notifier
@@ -1294,23 +1294,23 @@ metadata: {}
1294
1294
  post_install_message:
1295
1295
  rdoc_options: []
1296
1296
  require_paths:
1297
- - spaceship/lib
1298
- - sigh/lib
1299
- - snapshot/lib
1300
- - deliver/lib
1301
- - cert/lib
1302
- - pem/lib
1303
1297
  - gym/lib
1298
+ - deliver/lib
1304
1299
  - fastlane/lib
1305
- - frameit/lib
1306
- - scan/lib
1307
- - supply/lib
1308
- - pilot/lib
1300
+ - fastlane_core/lib
1309
1301
  - produce/lib
1302
+ - supply/lib
1303
+ - snapshot/lib
1310
1304
  - match/lib
1311
- - fastlane_core/lib
1312
- - credentials_manager/lib
1305
+ - spaceship/lib
1306
+ - cert/lib
1313
1307
  - screengrab/lib
1308
+ - scan/lib
1309
+ - frameit/lib
1310
+ - sigh/lib
1311
+ - pem/lib
1312
+ - credentials_manager/lib
1313
+ - pilot/lib
1314
1314
  required_ruby_version: !ruby/object:Gem::Requirement
1315
1315
  requirements:
1316
1316
  - - ">="