fastlane 2.86.0.beta.20180309050025 → 2.86.0.beta.20180310050010

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: 304ce3c40ab943cb98ce641616c2457abf85138a
4
- data.tar.gz: cb8b52b907a59566eb874781c6e0112dd6fbdd49
3
+ metadata.gz: 367d266272fb392c6fab1bb00b7bea0ad36801f3
4
+ data.tar.gz: 6c577dd6582a6d077e0944607fd2cb771e74c514
5
5
  SHA512:
6
- metadata.gz: 563979768357f628e0ef12b1c8f097a2b7bedb55ec4bff85c84e6dbb76f8fc0759fb8992692ac83ac3643a73e040c83ffd57bef8b8a68a0e56d7dfaaaa550b9d
7
- data.tar.gz: d44ce5d16b10adb96e6944d2ec7609f97b42fdc9d2ea683188ec656f2f81883ad325695357aaa87850ee0ca506a9de445a9d69f962baeed5b75ecfdff9f8d96f
6
+ metadata.gz: c9eff83f42df80eb5d67290a39747ff430bc31751c03f48656443f2e811e6b0c100671d013f7ed548ba124a270d27bdd97c9fccd36ead90eb51ed0e4e647a433
7
+ data.tar.gz: 05e09ee70cab704b2746070238a06f21c2d24623ebfa444191880c02bb9ec7929c68d0a9eae5593c64a6f7fb1a2855a4174d8263fdf76eea6acb71564cda51d6
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
- VERSION = '2.86.0.beta.20180309050025'.freeze
2
+ VERSION = '2.86.0.beta.20180310050010'.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
@@ -5,7 +5,18 @@ module Spaceship
5
5
  module TestFlight
6
6
  class Base < Spaceship::Base
7
7
  def self.client
8
- @client ||= Client.client_with_authorization_from(Spaceship::Tunes.client)
8
+ # Verify there is a client that can be used
9
+ if Spaceship::Tunes.client
10
+ # Initialize new client if new or if team changed
11
+ if @client.nil? || @client.team_id != Spaceship::Tunes.client.team_id
12
+ @client = Client.client_with_authorization_from(Spaceship::Tunes.client)
13
+ end
14
+ end
15
+
16
+ # Need to handle not having a client but this shouldn't ever happen
17
+ raise "Please login using `Spaceship::Tunes.login('user', 'password')`" unless @client
18
+
19
+ @client
9
20
  end
10
21
 
11
22
  ##
@@ -5,7 +5,7 @@ module Supply
5
5
 
6
6
  client.begin_edit(package_name: Supply.config[:package_name])
7
7
 
8
- UI.user_error!("No local metadata found, make sure to run `fastlane supply init` to setup supply") unless metadata_path || Supply.config[:apk] || Supply.config[:apk_paths]
8
+ verify_config!
9
9
 
10
10
  if metadata_path
11
11
  UI.user_error!("Could not find folder #{metadata_path}") unless File.directory?(metadata_path)
@@ -38,6 +38,12 @@ module Supply
38
38
  end
39
39
  end
40
40
 
41
+ def verify_config!
42
+ unless metadata_path || Supply.config[:apk] || Supply.config[:apk_paths] || (Supply.config[:track] && Supply.config[:track_promote_to])
43
+ UI.user_error!("No local metadata, apks, or track to promote were found, make sure to run `fastlane supply init` to setup supply")
44
+ end
45
+ end
46
+
41
47
  def promote_track
42
48
  version_codes = client.track_version_codes(Supply.config[:track])
43
49
  # the actual value passed for the rollout argument does not matter because it will be ignored by the Google Play API
@@ -106,6 +112,7 @@ module Supply
106
112
 
107
113
  def upload_binaries
108
114
  apk_paths = [Supply.config[:apk]] unless (apk_paths = Supply.config[:apk_paths])
115
+ apk_paths.compact!
109
116
 
110
117
  apk_version_codes = []
111
118
 
@@ -120,7 +127,9 @@ module Supply
120
127
  end
121
128
  end
122
129
 
123
- update_track(apk_version_codes)
130
+ # Only update tracks if we have version codes
131
+ # Updating a track with empty version codes can completely clear out a track
132
+ update_track(apk_version_codes) unless apk_version_codes.empty?
124
133
  end
125
134
 
126
135
  private
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.86.0.beta.20180309050025
4
+ version: 2.86.0.beta.20180310050010
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maksym Grebenets
@@ -27,7 +27,7 @@ authors:
27
27
  autorequire:
28
28
  bindir: bin
29
29
  cert_chain: []
30
- date: 2018-03-09 00:00:00.000000000 Z
30
+ date: 2018-03-10 00:00:00.000000000 Z
31
31
  dependencies:
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: slack-notifier
@@ -1606,24 +1606,24 @@ metadata:
1606
1606
  post_install_message:
1607
1607
  rdoc_options: []
1608
1608
  require_paths:
1609
- - cert/lib
1610
- - frameit/lib
1611
- - scan/lib
1612
- - fastlane_core/lib
1613
- - gym/lib
1614
- - precheck/lib
1615
- - match/lib
1616
- - supply/lib
1617
1609
  - spaceship/lib
1618
- - produce/lib
1619
1610
  - pem/lib
1620
- - deliver/lib
1611
+ - snapshot/lib
1612
+ - match/lib
1613
+ - sigh/lib
1614
+ - gym/lib
1615
+ - supply/lib
1621
1616
  - credentials_manager/lib
1622
- - pilot/lib
1623
1617
  - fastlane/lib
1618
+ - produce/lib
1619
+ - frameit/lib
1620
+ - scan/lib
1621
+ - fastlane_core/lib
1622
+ - cert/lib
1623
+ - pilot/lib
1624
+ - deliver/lib
1625
+ - precheck/lib
1624
1626
  - screengrab/lib
1625
- - snapshot/lib
1626
- - sigh/lib
1627
1627
  required_ruby_version: !ruby/object:Gem::Requirement
1628
1628
  requirements:
1629
1629
  - - ">="