fastlane 2.71.1 → 2.72.0.beta.20171228010004
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/fastlane/lib/fastlane/cli_tools_distributor.rb +0 -5
- data/fastlane/lib/fastlane/version.rb +1 -1
- data/fastlane/swift/Deliverfile.swift +1 -1
- data/fastlane/swift/Gymfile.swift +1 -1
- data/fastlane/swift/Matchfile.swift +1 -1
- data/fastlane/swift/Precheckfile.swift +1 -1
- data/fastlane/swift/Scanfile.swift +1 -1
- data/fastlane/swift/Screengrabfile.swift +1 -1
- data/fastlane/swift/Snapshotfile.swift +1 -1
- data/fastlane_core/lib/fastlane_core/test_parser.rb +45 -0
- data/gym/lib/gym/detect_values.rb +0 -5
- data/gym/lib/gym/manager.rb +0 -1
- data/gym/lib/gym/options.rb +5 -1
- data/spaceship/lib/spaceship/tunes/iap_detail.rb +2 -2
- data/spaceship/lib/spaceship/tunes/iap_list.rb +17 -3
- data/spaceship/lib/spaceship/tunes/tunes_client.rb +9 -3
- metadata +19 -50
- data/fastlane/lib/.DS_Store +0 -0
- data/fastlane/lib/assets/.DS_Store +0 -0
- data/fastlane/lib/fastlane/.DS_Store +0 -0
- data/fastlane/lib/fastlane/actions/.DS_Store +0 -0
- data/fastlane/lib/fastlane/actions/docs/.DS_Store +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43c33764d529a84d2aacaa7bacd13c4477f955c5
|
4
|
+
data.tar.gz: 73ab32b076d935afcab70d9e30fc3e9866edf7af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18ab4939c5f1c1a6a5b652ef5ffccb163f022214445a8702d5f371df8241559de007e100c8731b9ea2b70eded82edc916efbe1fb870aac4e53061f2de3e26597
|
7
|
+
data.tar.gz: f811f98c8cc818a7237052879e77ad98b20cfb5970744442d585cb77640d38fdf74348f13e5ff934be602fb887f95036e83849a44d7dce11b623521723737933
|
@@ -15,12 +15,7 @@ module Fastlane
|
|
15
15
|
def take_off
|
16
16
|
before_import_time = Time.now
|
17
17
|
|
18
|
-
require "tty-spinner"
|
19
|
-
|
20
|
-
require_fastlane_spinner = TTY::Spinner.new("[:spinner] 🚀 ", format: :dots)
|
21
|
-
require_fastlane_spinner.auto_spin
|
22
18
|
require "fastlane" # this might take a long time if there is no Gemfile :(
|
23
|
-
require_fastlane_spinner.success
|
24
19
|
|
25
20
|
# We want to avoid printing output other than the version number if we are running `fastlane -v`
|
26
21
|
unless running_version_command?
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module Fastlane
|
2
|
-
VERSION = '2.
|
2
|
+
VERSION = '2.72.0.beta.20171228010004'.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
|
@@ -6,6 +6,41 @@ module FastlaneCore
|
|
6
6
|
|
7
7
|
attr_accessor :raw_json
|
8
8
|
|
9
|
+
# Returns a hash with the path being the key, and the value
|
10
|
+
# defining if the tests were successful
|
11
|
+
def self.auto_convert(config)
|
12
|
+
FastlaneCore::PrintTable.print_values(config: config,
|
13
|
+
title: "Summary for trainer #{Trainer::VERSION}")
|
14
|
+
|
15
|
+
containing_dir = config[:path]
|
16
|
+
files = Dir["#{containing_dir}/**/Logs/Test/*TestSummaries.plist"]
|
17
|
+
files += Dir["#{containing_dir}/Test/*TestSummaries.plist"]
|
18
|
+
files += Dir["#{containing_dir}/*TestSummaries.plist"]
|
19
|
+
files += Dir[containing_dir] if containing_dir.end_with?(".plist") # if it's the exact path to a plist file
|
20
|
+
|
21
|
+
if files.empty?
|
22
|
+
UI.user_error!("No test result files found in directory '#{containing_dir}', make sure the file name ends with 'TestSummaries.plist'")
|
23
|
+
end
|
24
|
+
|
25
|
+
return_hash = {}
|
26
|
+
files.each do |path|
|
27
|
+
if config[:output_directory]
|
28
|
+
FileUtils.mkdir_p(config[:output_directory])
|
29
|
+
filename = File.basename(path).gsub(".plist", config[:extension])
|
30
|
+
to_path = File.join(config[:output_directory], filename)
|
31
|
+
else
|
32
|
+
to_path = path.gsub(".plist", config[:extension])
|
33
|
+
end
|
34
|
+
|
35
|
+
tp = Trainer::TestParser.new(path)
|
36
|
+
File.write(to_path, tp.to_junit)
|
37
|
+
puts "Successfully generated '#{to_path}'"
|
38
|
+
|
39
|
+
return_hash[to_path] = tp.tests_successful?
|
40
|
+
end
|
41
|
+
return_hash
|
42
|
+
end
|
43
|
+
|
9
44
|
def initialize(path)
|
10
45
|
path = File.expand_path(path)
|
11
46
|
UI.user_error!("File not found at path '#{path}'") unless File.exist?(path)
|
@@ -18,6 +53,16 @@ module FastlaneCore
|
|
18
53
|
parse_content
|
19
54
|
end
|
20
55
|
|
56
|
+
# Returns the JUnit report as String
|
57
|
+
def to_junit
|
58
|
+
JunitGenerator.new(self.data).generate
|
59
|
+
end
|
60
|
+
|
61
|
+
# @return [Bool] were all tests successful? Is false if at least one test failed
|
62
|
+
def tests_successful?
|
63
|
+
self.data.collect { |a| a[:number_of_failures] }.all?(&:zero?)
|
64
|
+
end
|
65
|
+
|
21
66
|
private
|
22
67
|
|
23
68
|
def ensure_file_valid!
|
@@ -30,11 +30,6 @@ module Gym
|
|
30
30
|
|
31
31
|
config[:build_path] ||= archive_path_from_local_xcode_preferences
|
32
32
|
|
33
|
-
# Make sure the output name is valid and remove a trailing `.ipa` extension
|
34
|
-
# as it will be added by gym for free
|
35
|
-
config[:output_name].gsub!(".ipa", "")
|
36
|
-
config[:output_name].gsub!(File::SEPARATOR, "_")
|
37
|
-
|
38
33
|
return config
|
39
34
|
end
|
40
35
|
|
data/gym/lib/gym/manager.rb
CHANGED
@@ -7,7 +7,6 @@ module Gym
|
|
7
7
|
# We go 2 folders up, to not show "Contents/Developer/"
|
8
8
|
values = Gym.config.values(ask: false)
|
9
9
|
values[:xcode_path] = File.expand_path("../..", FastlaneCore::Helper.xcode_path)
|
10
|
-
|
11
10
|
FastlaneCore::PrintTable.print_values(config: values,
|
12
11
|
hide_keys: [],
|
13
12
|
title: "Summary for gym #{Fastlane::VERSION}")
|
data/gym/lib/gym/options.rb
CHANGED
@@ -61,7 +61,11 @@ module Gym
|
|
61
61
|
short_option: "-n",
|
62
62
|
env_name: "GYM_OUTPUT_NAME",
|
63
63
|
description: "The name of the resulting ipa file",
|
64
|
-
optional: true
|
64
|
+
optional: true,
|
65
|
+
verify_block: proc do |value|
|
66
|
+
value.gsub!(".ipa", "")
|
67
|
+
value.gsub!(File::SEPARATOR, "_")
|
68
|
+
end),
|
65
69
|
FastlaneCore::ConfigItem.new(key: :configuration,
|
66
70
|
short_option: "-q",
|
67
71
|
env_name: "GYM_CONFIGURATION",
|
@@ -98,7 +98,7 @@ module Spaceship
|
|
98
98
|
}
|
99
99
|
}
|
100
100
|
end
|
101
|
-
raw_data.set(["
|
101
|
+
raw_data.set(["subscriptions"], new_intervals)
|
102
102
|
end
|
103
103
|
|
104
104
|
# @return (Array) pricing intervals
|
@@ -112,7 +112,7 @@ module Spaceship
|
|
112
112
|
# }
|
113
113
|
# ]
|
114
114
|
def pricing_intervals
|
115
|
-
@pricing_intervals ||= raw_data["
|
115
|
+
@pricing_intervals ||= raw_data["subscriptions"].map do |interval|
|
116
116
|
{
|
117
117
|
tier: interval["value"]["tierStem"].to_i,
|
118
118
|
begin_date: interval["value"]["priceTierEffectiveDate"],
|
@@ -53,14 +53,28 @@ module Spaceship
|
|
53
53
|
end
|
54
54
|
|
55
55
|
def edit
|
56
|
-
|
57
|
-
attrs[:application] = application
|
58
|
-
Tunes::IAPDetail.new(attrs)
|
56
|
+
Tunes::IAPDetail.new(build_iap)
|
59
57
|
end
|
60
58
|
|
61
59
|
def delete!
|
62
60
|
client.delete_iap!(app_id: application.apple_id, purchase_id: self.purchase_id)
|
63
61
|
end
|
62
|
+
|
63
|
+
private
|
64
|
+
|
65
|
+
def build_iap
|
66
|
+
attrs = [*iap_prices, *iap_details].to_h
|
67
|
+
attrs[:application] = application
|
68
|
+
attrs
|
69
|
+
end
|
70
|
+
|
71
|
+
def iap_prices
|
72
|
+
client.load_iap_prices(app_id: application.apple_id, purchase_id: self.purchase_id)
|
73
|
+
end
|
74
|
+
|
75
|
+
def iap_details
|
76
|
+
client.load_iap_details(app_id: application.apple_id, purchase_id: self.purchase_id)
|
77
|
+
end
|
64
78
|
end
|
65
79
|
end
|
66
80
|
end
|
@@ -534,7 +534,7 @@ module Spaceship
|
|
534
534
|
end
|
535
535
|
|
536
536
|
def price_tier(app_id)
|
537
|
-
r = request(:get, "ra/apps/#{app_id}/pricing
|
537
|
+
r = request(:get, "ra/apps/#{app_id}/pricing")
|
538
538
|
data = parse_response(r, 'data')
|
539
539
|
|
540
540
|
begin
|
@@ -1043,8 +1043,14 @@ module Spaceship
|
|
1043
1043
|
handle_itc_response(r)
|
1044
1044
|
end
|
1045
1045
|
|
1046
|
-
# Loads the
|
1047
|
-
def
|
1046
|
+
# Loads the iap prices for specific product
|
1047
|
+
def load_iap_prices(app_id: nil, purchase_id: nil)
|
1048
|
+
r = request(:get, "ra/apps/#{app_id}/iaps/#{purchase_id}/pricing")
|
1049
|
+
parse_response(r, 'data')
|
1050
|
+
end
|
1051
|
+
|
1052
|
+
# Loads iap full details
|
1053
|
+
def load_iap_details(app_id: nil, purchase_id: nil)
|
1048
1054
|
r = request(:get, "ra/apps/#{app_id}/iaps/#{purchase_id}")
|
1049
1055
|
parse_response(r, 'data')
|
1050
1056
|
end
|
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.
|
4
|
+
version: 2.72.0.beta.20171228010004
|
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-12-
|
18
|
+
date: 2017-12-28 00:00:00.000000000 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: slack-notifier
|
@@ -223,42 +223,16 @@ dependencies:
|
|
223
223
|
name: tty-screen
|
224
224
|
requirement: !ruby/object:Gem::Requirement
|
225
225
|
requirements:
|
226
|
-
- - "
|
226
|
+
- - "~>"
|
227
227
|
- !ruby/object:Gem::Version
|
228
228
|
version: 0.6.3
|
229
|
-
- - "<"
|
230
|
-
- !ruby/object:Gem::Version
|
231
|
-
version: 1.0.0
|
232
229
|
type: :runtime
|
233
230
|
prerelease: false
|
234
231
|
version_requirements: !ruby/object:Gem::Requirement
|
235
232
|
requirements:
|
236
|
-
- - "
|
233
|
+
- - "~>"
|
237
234
|
- !ruby/object:Gem::Version
|
238
235
|
version: 0.6.3
|
239
|
-
- - "<"
|
240
|
-
- !ruby/object:Gem::Version
|
241
|
-
version: 1.0.0
|
242
|
-
- !ruby/object:Gem::Dependency
|
243
|
-
name: tty-spinner
|
244
|
-
requirement: !ruby/object:Gem::Requirement
|
245
|
-
requirements:
|
246
|
-
- - ">="
|
247
|
-
- !ruby/object:Gem::Version
|
248
|
-
version: 0.7.0
|
249
|
-
- - "<"
|
250
|
-
- !ruby/object:Gem::Version
|
251
|
-
version: 1.0.0
|
252
|
-
type: :runtime
|
253
|
-
prerelease: false
|
254
|
-
version_requirements: !ruby/object:Gem::Requirement
|
255
|
-
requirements:
|
256
|
-
- - ">="
|
257
|
-
- !ruby/object:Gem::Version
|
258
|
-
version: 0.7.0
|
259
|
-
- - "<"
|
260
|
-
- !ruby/object:Gem::Version
|
261
|
-
version: 1.0.0
|
262
236
|
- !ruby/object:Gem::Dependency
|
263
237
|
name: babosa
|
264
238
|
requirement: !ruby/object:Gem::Requirement
|
@@ -855,8 +829,6 @@ files:
|
|
855
829
|
- deliver/lib/deliver/upload_price_tier.rb
|
856
830
|
- deliver/lib/deliver/upload_screenshots.rb
|
857
831
|
- fastlane/README.md
|
858
|
-
- fastlane/lib/.DS_Store
|
859
|
-
- fastlane/lib/assets/.DS_Store
|
860
832
|
- fastlane/lib/assets/ActionDetails.md.erb
|
861
833
|
- fastlane/lib/assets/Actions.md.erb
|
862
834
|
- fastlane/lib/assets/AppfileTemplate
|
@@ -876,10 +848,8 @@ files:
|
|
876
848
|
- fastlane/lib/assets/s3_plist_template.erb
|
877
849
|
- fastlane/lib/assets/s3_version_template.erb
|
878
850
|
- fastlane/lib/fastlane.rb
|
879
|
-
- fastlane/lib/fastlane/.DS_Store
|
880
851
|
- fastlane/lib/fastlane/action.rb
|
881
852
|
- fastlane/lib/fastlane/action_collector.rb
|
882
|
-
- fastlane/lib/fastlane/actions/.DS_Store
|
883
853
|
- fastlane/lib/fastlane/actions/README.md
|
884
854
|
- fastlane/lib/fastlane/actions/actions_helper.rb
|
885
855
|
- fastlane/lib/fastlane/actions/adb.rb
|
@@ -932,7 +902,6 @@ files:
|
|
932
902
|
- fastlane/lib/fastlane/actions/deliver.rb
|
933
903
|
- fastlane/lib/fastlane/actions/deploygate.rb
|
934
904
|
- fastlane/lib/fastlane/actions/device_grid/README.md
|
935
|
-
- fastlane/lib/fastlane/actions/docs/.DS_Store
|
936
905
|
- fastlane/lib/fastlane/actions/docs/cert.md
|
937
906
|
- fastlane/lib/fastlane/actions/docs/deliver.md
|
938
907
|
- fastlane/lib/fastlane/actions/docs/frameit.md
|
@@ -1558,24 +1527,24 @@ metadata:
|
|
1558
1527
|
post_install_message:
|
1559
1528
|
rdoc_options: []
|
1560
1529
|
require_paths:
|
1561
|
-
-
|
1562
|
-
-
|
1563
|
-
- deliver/lib
|
1564
|
-
- fastlane/lib
|
1565
|
-
- fastlane_core/lib
|
1566
|
-
- frameit/lib
|
1567
|
-
- gym/lib
|
1530
|
+
- supply/lib
|
1531
|
+
- screengrab/lib
|
1568
1532
|
- match/lib
|
1569
|
-
- pem/lib
|
1570
|
-
- pilot/lib
|
1571
1533
|
- precheck/lib
|
1534
|
+
- sigh/lib
|
1572
1535
|
- produce/lib
|
1573
1536
|
- scan/lib
|
1574
|
-
-
|
1575
|
-
- sigh/lib
|
1537
|
+
- gym/lib
|
1576
1538
|
- snapshot/lib
|
1539
|
+
- frameit/lib
|
1540
|
+
- fastlane/lib
|
1541
|
+
- cert/lib
|
1542
|
+
- pilot/lib
|
1577
1543
|
- spaceship/lib
|
1578
|
-
-
|
1544
|
+
- credentials_manager/lib
|
1545
|
+
- deliver/lib
|
1546
|
+
- fastlane_core/lib
|
1547
|
+
- pem/lib
|
1579
1548
|
required_ruby_version: !ruby/object:Gem::Requirement
|
1580
1549
|
requirements:
|
1581
1550
|
- - ">="
|
@@ -1583,12 +1552,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
1583
1552
|
version: 2.0.0
|
1584
1553
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
1585
1554
|
requirements:
|
1586
|
-
- - "
|
1555
|
+
- - ">"
|
1587
1556
|
- !ruby/object:Gem::Version
|
1588
|
-
version:
|
1557
|
+
version: 1.3.1
|
1589
1558
|
requirements: []
|
1590
1559
|
rubyforge_project:
|
1591
|
-
rubygems_version: 2.
|
1560
|
+
rubygems_version: 2.4.5.1
|
1592
1561
|
signing_key:
|
1593
1562
|
specification_version: 4
|
1594
1563
|
summary: The easiest way to automate beta deployments and releases for your iOS and
|
data/fastlane/lib/.DS_Store
DELETED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|