fastlane 2.37.0.beta.20170602010027 → 2.37.0.beta.20170603010102

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: a4b511987043d3ffedff763ec2e2e5fce1f7c457
4
- data.tar.gz: 5700e2b138071d18dd80bff0789e935e111cf859
3
+ metadata.gz: 004a7c1a530ee20b07091ba83bea0285964add59
4
+ data.tar.gz: 1751598ce33fc21ce61abf7c50b3da59f161558b
5
5
  SHA512:
6
- metadata.gz: c2d420b538d240e89ff01005cf15aeb02ceb982ab27d74a9a5fb25ab9c48ec4c76b714227038754f99cb7a16d7b5f49383fadc3851debf915e669d9f4b2b2f59
7
- data.tar.gz: e12c6dce1ef0bc9b20014ac8b30d843e5c240b52ce4982a4e26beee40e911b509569fae6aa3386376c9519f9e3c45d47bcd1029fdab189d565d12f2731689792
6
+ metadata.gz: 4a2849bc465ae47afbd6d4c3648cd1f552359d6ceb0f16f650a13dc648d0487ddff761ffa540a445a0e0d4101e77a743f1df95883f1a784adb32b8769c867120
7
+ data.tar.gz: 92d1f5f475753dcaa99f38af93a69a482575ae069837256eb47f7b1f1c0d7c36a972a9e8d5f7d5854728179dbf3956420eef89a58e6b232fe96042ac79ae7195
@@ -75,6 +75,10 @@ module Deliver
75
75
  screenshots = []
76
76
  extensions = '{png,jpg,jpeg}'
77
77
 
78
+ available_languages = Spaceship::Tunes.client.available_languages.each_with_object({}) do |lang, lang_hash|
79
+ lang_hash[lang.downcase] = lang
80
+ end
81
+
78
82
  Loader.language_folders(path).each do |lng_folder|
79
83
  language = File.basename(lng_folder)
80
84
 
@@ -91,7 +95,14 @@ module Deliver
91
95
 
92
96
  UI.important("Framed screenshots are detected! 🖼 Non-framed screenshot files may be skipped. 🏃") if prefer_framed
93
97
 
94
- language = File.basename(lng_folder)
98
+ language_dir_name = File.basename(lng_folder)
99
+
100
+ if available_languages[language_dir_name.downcase].nil?
101
+ UI.user_error!("#{language_dir_name} is not an available language. Please verify that your language codes are available in iTunesConnect. See https://developer.apple.com/library/content/documentation/LanguagesUtilities/Conceptual/iTunesConnect_Guide/Chapters/AppStoreTerritories.html for more information.")
102
+ end
103
+
104
+ language = available_languages[language_dir_name.downcase]
105
+
95
106
  files.each do |file_path|
96
107
  is_framed = file_path.downcase.include?("_framed.")
97
108
  is_watch = file_path.downcase.include?("watch")
@@ -1,4 +1,4 @@
1
1
  module Fastlane
2
- VERSION = '2.37.0.beta.20170602010027'.freeze
2
+ VERSION = '2.37.0.beta.20170603010102'.freeze
3
3
  DESCRIPTION = "The easiest way to automate beta deployments and releases for your iOS and Android apps".freeze
4
4
  end
@@ -259,24 +259,15 @@ module Gym
259
259
  FastlaneCore::ConfigItem.new(key: :xcpretty_report_junit,
260
260
  env_name: "XCPRETTY_REPORT_JUNIT",
261
261
  description: "Have xcpretty create a JUnit-style XML report at the provided path",
262
- optional: true,
263
- verify_block: proc do |value|
264
- UI.user_error!("Report output location not found at path '#{File.expand_path(value)}'") unless File.exist?(value)
265
- end),
262
+ optional: true),
266
263
  FastlaneCore::ConfigItem.new(key: :xcpretty_report_html,
267
264
  env_name: "XCPRETTY_REPORT_HTML",
268
265
  description: "Have xcpretty create a simple HTML report at the provided path",
269
- optional: true,
270
- verify_block: proc do |value|
271
- UI.user_error!("Report output location not found at path '#{File.expand_path(value)}'") unless File.exist?(value)
272
- end),
266
+ optional: true),
273
267
  FastlaneCore::ConfigItem.new(key: :xcpretty_report_json,
274
268
  env_name: "XCPRETTY_REPORT_JSON",
275
269
  description: "Have xcpretty create a JSON compilation database at the provided path",
276
- optional: true,
277
- verify_block: proc do |value|
278
- UI.user_error!("Report output location not found at path '#{File.expand_path(value)}'") unless File.exist?(value)
279
- end),
270
+ optional: true),
280
271
  FastlaneCore::ConfigItem.new(key: :analyze_build_time,
281
272
  env_name: "GYM_ANALYZE_BUILD_TIME",
282
273
  description: "Analyze the project build time and store the output in culprits.txt file",
@@ -523,6 +523,14 @@ module Spaceship
523
523
  parse_response(r, 'data')
524
524
  end
525
525
 
526
+ def available_languages
527
+ r = request(:get, "ra/apps/storePreview/regionCountryLanguage")
528
+ response = parse_response(r, 'data')
529
+ response.flat_map { |region| region["storeFronts"] }
530
+ .flat_map { |storefront| storefront["supportedLocaleCodes"] }
531
+ .uniq
532
+ end
533
+
526
534
  #####################################################
527
535
  # @!group App Icons
528
536
  #####################################################
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.37.0.beta.20170602010027
4
+ version: 2.37.0.beta.20170603010102
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-06-02 00:00:00.000000000 Z
18
+ date: 2017-06-03 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: slack-notifier
@@ -1368,23 +1368,23 @@ metadata:
1368
1368
  post_install_message:
1369
1369
  rdoc_options: []
1370
1370
  require_paths:
1371
- - frameit/lib
1372
- - spaceship/lib
1373
1371
  - screengrab/lib
1374
- - deliver/lib
1375
- - credentials_manager/lib
1376
- - sigh/lib
1377
- - supply/lib
1378
- - produce/lib
1379
- - scan/lib
1372
+ - snapshot/lib
1373
+ - pilot/lib
1380
1374
  - gym/lib
1381
- - pem/lib
1382
- - cert/lib
1383
1375
  - fastlane/lib
1384
- - snapshot/lib
1385
1376
  - fastlane_core/lib
1377
+ - produce/lib
1378
+ - scan/lib
1379
+ - frameit/lib
1380
+ - spaceship/lib
1386
1381
  - match/lib
1387
- - pilot/lib
1382
+ - pem/lib
1383
+ - deliver/lib
1384
+ - cert/lib
1385
+ - supply/lib
1386
+ - sigh/lib
1387
+ - credentials_manager/lib
1388
1388
  required_ruby_version: !ruby/object:Gem::Requirement
1389
1389
  requirements:
1390
1390
  - - ">="