fastlane 2.158.0 → 2.159.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +78 -78
  3. data/deliver/lib/deliver/upload_metadata.rb +5 -1
  4. data/{pilot/lib/pilot/.manager.rb.swp → fastlane/lib/fastlane/.erb_template_helper.rb.swp} +0 -0
  5. data/fastlane/lib/fastlane/actions/{.hockey.rb.swp → .git_commit.rb.swp} +0 -0
  6. data/fastlane/lib/fastlane/actions/docs/upload_to_testflight.md +1 -1
  7. data/fastlane/lib/fastlane/actions/download_dsyms.rb +1 -1
  8. data/fastlane/lib/fastlane/helper/git_helper.rb +2 -0
  9. data/fastlane/lib/fastlane/swift_fastlane_api_generator.rb +6 -4
  10. data/fastlane/lib/fastlane/swift_fastlane_function.rb +1 -1
  11. data/fastlane/lib/fastlane/version.rb +1 -1
  12. data/fastlane/swift/Actions.swift +2 -1
  13. data/fastlane/swift/Appfile.swift +2 -4
  14. data/fastlane/swift/ArgumentProcessor.swift +2 -6
  15. data/fastlane/swift/ControlCommand.swift +2 -5
  16. data/fastlane/swift/Deliverfile.swift +5 -2
  17. data/fastlane/swift/DeliverfileProtocol.swift +6 -3
  18. data/fastlane/swift/Fastfile.swift +5 -1
  19. data/fastlane/swift/Fastlane.swift +2223 -2220
  20. data/fastlane/swift/FastlaneSwiftRunner/FastlaneSwiftRunner.xcodeproj/project.pbxproj +5 -5
  21. data/fastlane/swift/Gymfile.swift +5 -2
  22. data/fastlane/swift/GymfileProtocol.swift +6 -3
  23. data/fastlane/swift/LaneFileProtocol.swift +36 -19
  24. data/fastlane/swift/MainProcess.swift +77 -0
  25. data/fastlane/swift/Matchfile.swift +5 -2
  26. data/fastlane/swift/MatchfileProtocol.swift +6 -3
  27. data/fastlane/swift/Plugins.swift +2 -1
  28. data/fastlane/swift/Precheckfile.swift +5 -2
  29. data/fastlane/swift/PrecheckfileProtocol.swift +6 -3
  30. data/fastlane/swift/RubyCommand.swift +2 -6
  31. data/fastlane/swift/RubyCommandable.swift +2 -6
  32. data/fastlane/swift/Runner.swift +5 -9
  33. data/fastlane/swift/RunnerArgument.swift +2 -6
  34. data/fastlane/swift/Scanfile.swift +5 -2
  35. data/fastlane/swift/ScanfileProtocol.swift +6 -3
  36. data/fastlane/swift/Screengrabfile.swift +5 -2
  37. data/fastlane/swift/ScreengrabfileProtocol.swift +6 -3
  38. data/fastlane/swift/Snapshotfile.swift +5 -2
  39. data/fastlane/swift/SnapshotfileProtocol.swift +6 -3
  40. data/fastlane/swift/SocketClient.swift +3 -7
  41. data/fastlane/swift/SocketClientDelegateProtocol.swift +2 -6
  42. data/fastlane/swift/SocketResponse.swift +2 -6
  43. data/fastlane/swift/formatting/Brewfile.lock.json +18 -10
  44. data/fastlane/swift/main.swift +4 -8
  45. data/fastlane/swift/upgrade_manifest.json +1 -1
  46. data/match/lib/match/importer.rb +5 -2
  47. data/snapshot/lib/assets/SnapshotHelper.swift +17 -2
  48. data/spaceship/lib/spaceship/{connect_api/.DS_Store → .DS_Store} +0 -0
  49. data/spaceship/lib/spaceship/connect_api/client.rb +25 -12
  50. data/{fastlane/lib/fastlane/actions/.update_project_provisioning.rb.swp → spaceship/lib/spaceship/connect_api/models/.app.rb.swp} +0 -0
  51. data/spaceship/lib/spaceship/connect_api/models/.app_store_version.rb.swp +0 -0
  52. data/{fastlane/lib/fastlane/actions/.slack.rb.swp → spaceship/lib/spaceship/connect_api/models/.app_store_version_submission.rb.swp} +0 -0
  53. data/spaceship/lib/spaceship/connect_api/spaceship.rb +3 -2
  54. data/spaceship/lib/spaceship/connect_api/tunes/tunes.rb +2 -2
  55. metadata +26 -25
  56. data/fastlane/swift/FastlaneSwiftRunner/FastlaneSwiftRunner.xcodeproj/project.xcworkspace/xcuserdata/josh.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
@@ -1,4 +1,7 @@
1
- protocol ScanfileProtocol: class {
1
+ // ScanfileProtocol.swift
2
+ // Copyright (c) 2020 FastlaneTools
3
+
4
+ public protocol ScanfileProtocol: class {
2
5
  /// Path to the workspace file
3
6
  var workspace: String? { get }
4
7
 
@@ -189,7 +192,7 @@ protocol ScanfileProtocol: class {
189
192
  var failBuild: Bool { get }
190
193
  }
191
194
 
192
- extension ScanfileProtocol {
195
+ public extension ScanfileProtocol {
193
196
  var workspace: String? { return nil }
194
197
  var project: String? { return nil }
195
198
  var scheme: String? { return nil }
@@ -257,4 +260,4 @@ extension ScanfileProtocol {
257
260
 
258
261
  // Please don't remove the lines below
259
262
  // They are used to detect outdated files
260
- // FastlaneRunnerAPIVersion [0.9.48]
263
+ // FastlaneRunnerAPIVersion [0.9.50]
@@ -1,3 +1,6 @@
1
+ // Screengrabfile.swift
2
+ // Copyright (c) 2020 FastlaneTools
3
+
1
4
  // This class is automatically included in FastlaneRunner during build
2
5
 
3
6
  // This autogenerated file will be overwritten or replaced during build time, or when you initialize `screengrab`
@@ -8,10 +11,10 @@
8
11
  // new group so that it won't be marked for upgrade
9
12
  //
10
13
 
11
- class Screengrabfile: ScreengrabfileProtocol {
14
+ public class Screengrabfile: ScreengrabfileProtocol {
12
15
  // If you want to enable `screengrab`, run `fastlane screengrab init`
13
16
  // After, this file will be replaced with a custom implementation that contains values you supplied
14
17
  // during the `init` process, and you won't see this message
15
18
  }
16
19
 
17
- // Generated with fastlane 2.158.0
20
+ // Generated with fastlane 2.159.0
@@ -1,4 +1,7 @@
1
- protocol ScreengrabfileProtocol: class {
1
+ // ScreengrabfileProtocol.swift
2
+ // Copyright (c) 2020 FastlaneTools
3
+
4
+ public protocol ScreengrabfileProtocol: class {
2
5
  /// Path to the root of your Android SDK installation, e.g. ~/tools/android-sdk-macosx
3
6
  var androidHome: String? { get }
4
7
 
@@ -66,7 +69,7 @@ protocol ScreengrabfileProtocol: class {
66
69
  var adbHost: String? { get }
67
70
  }
68
71
 
69
- extension ScreengrabfileProtocol {
72
+ public extension ScreengrabfileProtocol {
70
73
  var androidHome: String? { return nil }
71
74
  var buildToolsVersion: String? { return nil }
72
75
  var locales: [String] { return ["en-US"] }
@@ -93,4 +96,4 @@ extension ScreengrabfileProtocol {
93
96
 
94
97
  // Please don't remove the lines below
95
98
  // They are used to detect outdated files
96
- // FastlaneRunnerAPIVersion [0.9.38]
99
+ // FastlaneRunnerAPIVersion [0.9.40]
@@ -1,3 +1,6 @@
1
+ // Snapshotfile.swift
2
+ // Copyright (c) 2020 FastlaneTools
3
+
1
4
  // This class is automatically included in FastlaneRunner during build
2
5
 
3
6
  // This autogenerated file will be overwritten or replaced during build time, or when you initialize `snapshot`
@@ -8,10 +11,10 @@
8
11
  // new group so that it won't be marked for upgrade
9
12
  //
10
13
 
11
- class Snapshotfile: SnapshotfileProtocol {
14
+ public class Snapshotfile: SnapshotfileProtocol {
12
15
  // If you want to enable `snapshot`, run `fastlane snapshot init`
13
16
  // After, this file will be replaced with a custom implementation that contains values you supplied
14
17
  // during the `init` process, and you won't see this message
15
18
  }
16
19
 
17
- // Generated with fastlane 2.158.0
20
+ // Generated with fastlane 2.159.0
@@ -1,4 +1,7 @@
1
- protocol SnapshotfileProtocol: class {
1
+ // SnapshotfileProtocol.swift
2
+ // Copyright (c) 2020 FastlaneTools
3
+
4
+ public protocol SnapshotfileProtocol: class {
2
5
  /// Path the workspace file
3
6
  var workspace: String? { get }
4
7
 
@@ -132,7 +135,7 @@ protocol SnapshotfileProtocol: class {
132
135
  var suppressXcodeOutput: Bool? { get }
133
136
  }
134
137
 
135
- extension SnapshotfileProtocol {
138
+ public extension SnapshotfileProtocol {
136
139
  var workspace: String? { return nil }
137
140
  var project: String? { return nil }
138
141
  var xcargs: String? { return nil }
@@ -181,4 +184,4 @@ extension SnapshotfileProtocol {
181
184
 
182
185
  // Please don't remove the lines below
183
186
  // They are used to detect outdated files
184
- // FastlaneRunnerAPIVersion [0.9.32]
187
+ // FastlaneRunnerAPIVersion [0.9.34]
@@ -1,9 +1,5 @@
1
- //
2
- // SocketClient.swift
3
- // FastlaneSwiftRunner
4
- //
5
- // Created by Joshua Liebowitz on 7/30/17.
6
- //
1
+ // SocketClient.swift
2
+ // Copyright (c) 2020 FastlaneTools
7
3
 
8
4
  //
9
5
  // ** NOTE **
@@ -40,7 +36,7 @@ class SocketClient: NSObject {
40
36
  fileprivate var inputStream: InputStream!
41
37
  fileprivate var outputStream: OutputStream!
42
38
  fileprivate var cleaningUpAfterDone = false
43
- fileprivate let dispatchGroup: DispatchGroup = DispatchGroup()
39
+ fileprivate let dispatchGroup = DispatchGroup()
44
40
  fileprivate let readSemaphore = DispatchSemaphore(value: 1)
45
41
  fileprivate let writeSemaphore = DispatchSemaphore(value: 1)
46
42
  fileprivate let commandTimeoutSeconds: Int
@@ -1,9 +1,5 @@
1
- //
2
- // SocketClientDelegateProtocol.swift
3
- // FastlaneSwiftRunner
4
- //
5
- // Created by Joshua Liebowitz on 8/12/17.
6
- //
1
+ // SocketClientDelegateProtocol.swift
2
+ // Copyright (c) 2020 FastlaneTools
7
3
 
8
4
  //
9
5
  // ** NOTE **
@@ -1,9 +1,5 @@
1
- //
2
- // SocketResponse.swift
3
- // FastlaneSwiftRunner
4
- //
5
- // Created by Joshua Liebowitz on 7/30/17.
6
- //
1
+ // SocketResponse.swift
2
+ // Copyright (c) 2020 FastlaneTools
7
3
 
8
4
  //
9
5
  // ** NOTE **
@@ -2,22 +2,22 @@
2
2
  "entries": {
3
3
  "brew": {
4
4
  "swiftformat": {
5
- "version": "0.44.8",
5
+ "version": "0.45.6",
6
6
  "bottle": {
7
7
  "cellar": ":any_skip_relocation",
8
8
  "prefix": "/usr/local",
9
9
  "files": {
10
10
  "catalina": {
11
- "url": "https://homebrew.bintray.com/bottles/swiftformat-0.44.8.catalina.bottle.tar.gz",
12
- "sha256": "9cbd2c21d4579c8c4ffc9df7b44593f7622d13f8517a3fed047c5e5f3f2560c6"
11
+ "url": "https://homebrew.bintray.com/bottles/swiftformat-0.45.6.catalina.bottle.tar.gz",
12
+ "sha256": "7f23ff740679b30e313c91533c2f3e6fa4210bb68f8e383c29e7f922f87d8f66"
13
13
  },
14
14
  "mojave": {
15
- "url": "https://homebrew.bintray.com/bottles/swiftformat-0.44.8.mojave.bottle.tar.gz",
16
- "sha256": "a8f8b6fa977804c2d13f0cbc9ed223ddaa88e3c0684e91519e005784c8418b36"
15
+ "url": "https://homebrew.bintray.com/bottles/swiftformat-0.45.6.mojave.bottle.tar.gz",
16
+ "sha256": "b5349b775ff60c73c284d5de8ad2c0fdfb35428cff92bb7a8e5fcc6536750b89"
17
17
  },
18
18
  "high_sierra": {
19
- "url": "https://homebrew.bintray.com/bottles/swiftformat-0.44.8.high_sierra.bottle.tar.gz",
20
- "sha256": "fd43d192d194a8bb02308714b691e6a7101f839889f749dff4a1facf8172b951"
19
+ "url": "https://homebrew.bintray.com/bottles/swiftformat-0.45.6.high_sierra.bottle.tar.gz",
20
+ "sha256": "34d900217ca12736a112c31e54a5f4f7e64c1fe224f6e4ea76ad1d25b149f647"
21
21
  }
22
22
  }
23
23
  }
@@ -27,12 +27,20 @@
27
27
  "system": {
28
28
  "macos": {
29
29
  "catalina": {
30
- "HOMEBREW_VERSION": "2.2.14-62-g9befd55",
30
+ "HOMEBREW_VERSION": "2.4.9-133-g0fdf8f2",
31
31
  "HOMEBREW_PREFIX": "/usr/local",
32
- "Homebrew/homebrew-core": "0b738b77a5a13a66a52d76d34c4f608b719e0485",
32
+ "Homebrew/homebrew-core": "7141f37f3af0e6702f6dab2263852ddefbbbf8ed",
33
33
  "CLT": "11.0.28.3",
34
- "Xcode": "11.4.1",
34
+ "Xcode": "11.6",
35
35
  "macOS": "10.15.4"
36
+ },
37
+ "big_sur": {
38
+ "HOMEBREW_VERSION": "2.4.13-249-g6454504",
39
+ "HOMEBREW_PREFIX": "/usr/local",
40
+ "Homebrew/homebrew-core": "020491c34515c229d904e6e69e14157cb728d2fa",
41
+ "CLT": "11.0.28.3",
42
+ "Xcode": "12.0",
43
+ "macOS": "11.0"
36
44
  }
37
45
  }
38
46
  }
@@ -1,9 +1,5 @@
1
- //
2
- // main.swift
3
- // FastlaneSwiftRunner
4
- //
5
- // Created by Joshua Liebowitz on 8/26/17.
6
- //
1
+ // main.swift
2
+ // Copyright (c) 2020 FastlaneTools
7
3
 
8
4
  //
9
5
  // ** NOTE **
@@ -24,7 +20,7 @@ class MainProcess {
24
20
  @objc func connectToFastlaneAndRunLane() {
25
21
  runner.startSocketThread(port: argumentProcessor.port)
26
22
 
27
- let completedRun = Fastfile.runLane(named: argumentProcessor.currentLane, parameters: argumentProcessor.laneParameters())
23
+ let completedRun = Fastfile.runLane(from: nil, named: argumentProcessor.currentLane, parameters: argumentProcessor.laneParameters())
28
24
  if completedRun {
29
25
  runner.disconnectFromFastlaneProcess()
30
26
  }
@@ -39,7 +35,7 @@ class MainProcess {
39
35
  }
40
36
  }
41
37
 
42
- let process: MainProcess = MainProcess()
38
+ let process = MainProcess()
43
39
  process.startFastlaneThread()
44
40
 
45
41
  while !process.doneRunningLane, RunLoop.current.run(mode: RunLoopMode.defaultRunLoopMode, before: Date(timeIntervalSinceNow: 2)) {
@@ -1 +1 @@
1
- {"Actions.swift":"Autogenerated API","Fastlane.swift":"Autogenerated API","DeliverfileProtocol.swift":"Autogenerated API","GymfileProtocol.swift":"Autogenerated API","MatchfileProtocol.swift":"Autogenerated API","Plugins.swift":"Autogenerated API","PrecheckfileProtocol.swift":"Autogenerated API","ScanfileProtocol.swift":"Autogenerated API","ScreengrabfileProtocol.swift":"Autogenerated API","SnapshotfileProtocol.swift":"Autogenerated API","LaneFileProtocol.swift":"Fastfile Components","ControlCommand.swift":"Networking","RubyCommand.swift":"Networking","RubyCommandable.swift":"Networking","Runner.swift":"Networking","SocketClient.swift":"Networking","SocketClientDelegateProtocol.swift":"Networking","SocketResponse.swift":"Networking","ArgumentProcessor.swift":"Runner Code","main.swift":"Runner Code","RunnerArgument.swift":"Runner Code"}
1
+ {"Actions.swift":"Autogenerated API","Fastlane.swift":"Autogenerated API","DeliverfileProtocol.swift":"Autogenerated API","GymfileProtocol.swift":"Autogenerated API","MatchfileProtocol.swift":"Autogenerated API","Plugins.swift":"Autogenerated API","PrecheckfileProtocol.swift":"Autogenerated API","ScanfileProtocol.swift":"Autogenerated API","ScreengrabfileProtocol.swift":"Autogenerated API","SnapshotfileProtocol.swift":"Autogenerated API","LaneFileProtocol.swift":"Fastfile Components","ControlCommand.swift":"Networking","RubyCommand.swift":"Networking","RubyCommandable.swift":"Networking","Runner.swift":"Networking","SocketClient.swift":"Networking","SocketClientDelegateProtocol.swift":"Networking","SocketResponse.swift":"Networking","main.swift":"Runner Code","ArgumentProcessor.swift":"Runner Code","RunnerArgument.swift":"Runner Code"}
@@ -2,6 +2,7 @@ require_relative 'spaceship_ensure'
2
2
  require_relative 'encryption'
3
3
  require_relative 'storage'
4
4
  require_relative 'module'
5
+ require_relative 'generator'
5
6
  require 'fastlane_core/provisioning_profile'
6
7
  require 'fileutils'
7
8
 
@@ -56,8 +57,9 @@ module Match
56
57
  UI.user_error!("Cert type '#{cert_type}' is not supported")
57
58
  end
58
59
 
60
+ prov_type = Match.profile_type_sym(params[:type])
59
61
  output_dir_certs = File.join(storage.prefixed_working_directory, "certs", cert_type.to_s)
60
- output_dir_profiles = File.join(storage.prefixed_working_directory, "profiles", cert_type.to_s)
62
+ output_dir_profiles = File.join(storage.prefixed_working_directory, "profiles", prov_type.to_s)
61
63
 
62
64
  # Need to get the cert id by comparing base64 encoded cert content with certificate content from the API responses
63
65
  Spaceship::Portal.login(params[:username])
@@ -86,7 +88,8 @@ module Match
86
88
  FileUtils.mkdir_p(output_dir_profiles)
87
89
  bundle_id = FastlaneCore::ProvisioningProfile.bundle_id(profile_path)
88
90
  profile_extension = FastlaneCore::ProvisioningProfile.profile_extension(profile_path)
89
- dest_profile_path = File.join(output_dir_profiles, "#{cert_type.to_s.capitalize}_#{bundle_id}#{profile_extension}")
91
+ profile_type_name = Match::Generator.profile_type_name(prov_type)
92
+ dest_profile_path = File.join(output_dir_profiles, "#{profile_type_name}_#{bundle_id}#{profile_extension}")
90
93
  files_to_commit.push(dest_profile_path)
91
94
  IO.copy_stream(profile_path, dest_profile_path)
92
95
  end
@@ -165,6 +165,8 @@ open class Snapshot: NSObject {
165
165
  }
166
166
 
167
167
  let screenshot = XCUIScreen.main.screenshot()
168
+ let image = XCUIDevice.shared.orientation.isLandscape ? fixLandscapeOrientation(image: screenshot.image) : screenshot.image
169
+
168
170
  guard var simulator = ProcessInfo().environment["SIMULATOR_DEVICE_NAME"], let screenshotsDir = screenshotsDirectory else { return }
169
171
 
170
172
  do {
@@ -174,7 +176,7 @@ open class Snapshot: NSObject {
174
176
  simulator = regex.stringByReplacingMatches(in: simulator, range: range, withTemplate: "")
175
177
 
176
178
  let path = screenshotsDir.appendingPathComponent("\(simulator)-\(name).png")
177
- try screenshot.pngRepresentation.write(to: path)
179
+ try image.pngData()?.write(to: path, options: .atomic)
178
180
  } catch let error {
179
181
  NSLog("Problem writing screenshot: \(name) to \(screenshotsDir)/\(simulator)-\(name).png")
180
182
  NSLog(error.localizedDescription)
@@ -182,6 +184,19 @@ open class Snapshot: NSObject {
182
184
  #endif
183
185
  }
184
186
 
187
+ class func fixLandscapeOrientation(image: UIImage) -> UIImage {
188
+ if #available(iOS 10.0, *) {
189
+ let format = UIGraphicsImageRendererFormat()
190
+ format.scale = image.scale
191
+ let renderer = UIGraphicsImageRenderer(size: image.size, format: format)
192
+ return renderer.image { context in
193
+ image.draw(in: CGRect(x: 0, y: 0, width: image.size.width, height: image.size.height))
194
+ }
195
+ } else {
196
+ return image
197
+ }
198
+ }
199
+
185
200
  class func waitForLoadingIndicatorToDisappear(within timeout: TimeInterval) {
186
201
  #if os(tvOS)
187
202
  return
@@ -279,4 +294,4 @@ private extension CGFloat {
279
294
 
280
295
  // Please don't remove the lines below
281
296
  // They are used to detect outdated configuration files
282
- // SnapshotHelperVersion [1.23]
297
+ // SnapshotHelperVersion [1.24]
@@ -43,25 +43,28 @@ module Spaceship
43
43
  # @param portal_team_id (String) (optional): The Spaceship::Portal team id
44
44
  # @param tunes_team_id (String) (optional): The Spaceship::Tunes team id
45
45
  # @param team_name (String) (optional): The team name
46
+ # @param skip_select_team (Boolean) (optional): Whether to skip automatic selection or prompt for team
46
47
  #
47
48
  # @raise InvalidUserCredentialsError: raised if authentication failed
48
49
  #
49
50
  # @return (Spaceship::ConnectAPI::Client) The client the login method was called for
50
- def self.login(user = nil, password = nil, use_portal: true, use_tunes: true, portal_team_id: nil, tunes_team_id: nil, team_name: nil)
51
+ def self.login(user = nil, password = nil, use_portal: true, use_tunes: true, portal_team_id: nil, tunes_team_id: nil, team_name: nil, skip_select_team: false)
51
52
  portal_client = Spaceship::Portal.login(user, password) if use_portal
52
53
  tunes_client = Spaceship::Tunes.login(user, password) if use_tunes
53
54
 
54
- # Check if environment variables are set for Spaceship::Portal or Spaceship::Tunes to select team
55
- portal_team_id ||= ENV['FASTLANE_TEAM_ID']
56
- portal_team_name = team_name || ENV['FASTLANE_TEAM_NAME']
57
- tunes_team_id ||= ENV['FASTLANE_ITC_TEAM_ID']
58
- tunes_team_name = team_name || ENV['FASTLANE_ITC_TEAM_NAME']
59
-
60
- # The clients will prompt for a team selection if:
61
- # 1. client exists
62
- # 2. team_id and team_name are nil and user belongs to multiple teams
63
- portal_client.select_team(team_id: portal_team_id, team_name: portal_team_name) if portal_client
64
- tunes_client.select_team(team_id: tunes_team_id, team_name: tunes_team_name) if tunes_client
55
+ unless skip_select_team
56
+ # Check if environment variables are set for Spaceship::Portal or Spaceship::Tunes to select team
57
+ portal_team_id ||= ENV['FASTLANE_TEAM_ID']
58
+ portal_team_name = team_name || ENV['FASTLANE_TEAM_NAME']
59
+ tunes_team_id ||= ENV['FASTLANE_ITC_TEAM_ID']
60
+ tunes_team_name = team_name || ENV['FASTLANE_ITC_TEAM_NAME']
61
+
62
+ # The clients will prompt for a team selection if:
63
+ # 1. client exists
64
+ # 2. team_id and team_name are nil and user belongs to multiple teams
65
+ portal_client.select_team(team_id: portal_team_id, team_name: portal_team_name) if portal_client
66
+ tunes_client.select_team(team_id: tunes_team_id, team_name: tunes_team_name) if tunes_client
67
+ end
65
68
 
66
69
  return ConnectAPI::Client.new(tunes_client: tunes_client, portal_client: portal_client)
67
70
  end
@@ -103,6 +106,16 @@ module Spaceship
103
106
  return @tunes_client.team_id
104
107
  end
105
108
 
109
+ def portal_teams
110
+ return nil if @portal_client.nil?
111
+ return @portal_client.teams
112
+ end
113
+
114
+ def tunes_teams
115
+ return nil if @tunes_client.nil?
116
+ return @tunes_client.teams
117
+ end
118
+
106
119
  def in_house?
107
120
  if token
108
121
  if token.in_house.nil?
@@ -73,12 +73,13 @@ module Spaceship
73
73
  # @param portal_team_id (String) (optional): The Spaceship::Portal team id
74
74
  # @param tunes_team_id (String) (optional): The Spaceship::Tunes team id
75
75
  # @param team_name (String) (optional): The team name
76
+ # @param skip_select_team (Boolean) (optional): Whether to skip automatic selection or prompt for team
76
77
  #
77
78
  # @raise InvalidUserCredentialsError: raised if authentication failed
78
79
  #
79
80
  # @return (Spaceship::ConnectAPI::Client) The client the login method was called for
80
- def login(user = nil, password = nil, use_portal: true, use_tunes: true, portal_team_id: nil, tunes_team_id: nil, team_name: nil)
81
- @client = ConnectAPI::Client.login(user, password, use_portal: use_portal, use_tunes: use_tunes, portal_team_id: portal_team_id, tunes_team_id: tunes_team_id, team_name: team_name)
81
+ def login(user = nil, password = nil, use_portal: true, use_tunes: true, portal_team_id: nil, tunes_team_id: nil, team_name: nil, skip_select_team: false)
82
+ @client = ConnectAPI::Client.login(user, password, use_portal: use_portal, use_tunes: use_tunes, portal_team_id: portal_team_id, tunes_team_id: tunes_team_id, team_name: team_name, skip_select_team: skip_select_team)
82
83
  end
83
84
 
84
85
  # Open up the team selection for the user (if necessary).
@@ -312,8 +312,8 @@ module Spaceship
312
312
  # appPricePoints
313
313
  #
314
314
  def get_app_price_points(filter: {}, includes: nil, limit: nil, sort: nil)
315
- params = Client.instance.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
316
- Client.instance.get("appPricePoints", params)
315
+ params = tunes_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
316
+ tunes_request_client.get("appPricePoints", params)
317
317
  end
318
318
 
319
319
  #
metadata CHANGED
@@ -1,35 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.158.0
4
+ version: 2.159.0
5
5
  platform: ruby
6
6
  authors:
7
- - Aaron Brager
8
- - Stefan Natchev
9
- - Manu Wallner
10
- - Maksym Grebenets
11
- - Jérôme Lacoste
12
- - Josh Holtz
13
- - Matthew Ellis
14
- - Felix Krause
7
+ - Jimmy Dee
8
+ - Iulian Onofrei
9
+ - Kohki Miki
15
10
  - Daniel Jankowski
11
+ - Olivier Halligon
12
+ - Matthew Ellis
16
13
  - Danielle Tomlinson
17
- - Iulian Onofrei
14
+ - Max Ott
18
15
  - Luka Mirosevic
19
- - Jimmy Dee
20
- - Andrew McBurney
21
- - Kohki Miki
22
- - Jorge Revuelta H
16
+ - Maksym Grebenets
17
+ - Josh Holtz
23
18
  - Joshua Liebowitz
19
+ - Stefan Natchev
20
+ - Aaron Brager
21
+ - Jorge Revuelta H
22
+ - Jan Piotrowski
23
+ - Jérôme Lacoste
24
+ - Andrew McBurney
24
25
  - Fumiya Nakamura
25
26
  - Helmut Januschka
26
- - Olivier Halligon
27
- - Jan Piotrowski
28
- - Max Ott
27
+ - Manu Wallner
28
+ - Felix Krause
29
29
  autorequire:
30
30
  bindir: bin
31
31
  cert_chain: []
32
- date: 2020-09-04 00:00:00.000000000 Z
32
+ date: 2020-09-10 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: slack-notifier
@@ -980,11 +980,10 @@ files:
980
980
  - fastlane/lib/assets/s3_plist_template.erb
981
981
  - fastlane/lib/assets/s3_version_template.erb
982
982
  - fastlane/lib/fastlane.rb
983
+ - fastlane/lib/fastlane/.erb_template_helper.rb.swp
983
984
  - fastlane/lib/fastlane/action.rb
984
985
  - fastlane/lib/fastlane/action_collector.rb
985
- - fastlane/lib/fastlane/actions/.hockey.rb.swp
986
- - fastlane/lib/fastlane/actions/.slack.rb.swp
987
- - fastlane/lib/fastlane/actions/.update_project_provisioning.rb.swp
986
+ - fastlane/lib/fastlane/actions/.git_commit.rb.swp
988
987
  - fastlane/lib/fastlane/actions/README.md
989
988
  - fastlane/lib/fastlane/actions/actions_helper.rb
990
989
  - fastlane/lib/fastlane/actions/adb.rb
@@ -1323,12 +1322,12 @@ files:
1323
1322
  - fastlane/swift/FastlaneSwiftRunner/FastlaneSwiftRunner.xcodeproj/project.pbxproj
1324
1323
  - fastlane/swift/FastlaneSwiftRunner/FastlaneSwiftRunner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
1325
1324
  - fastlane/swift/FastlaneSwiftRunner/FastlaneSwiftRunner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
1326
- - fastlane/swift/FastlaneSwiftRunner/FastlaneSwiftRunner.xcodeproj/project.xcworkspace/xcuserdata/josh.xcuserdatad/UserInterfaceState.xcuserstate
1327
1325
  - fastlane/swift/FastlaneSwiftRunner/FastlaneSwiftRunner.xcodeproj/xcshareddata/xcschemes/FastlaneRunner.xcscheme
1328
1326
  - fastlane/swift/FastlaneSwiftRunner/README.txt
1329
1327
  - fastlane/swift/Gymfile.swift
1330
1328
  - fastlane/swift/GymfileProtocol.swift
1331
1329
  - fastlane/swift/LaneFileProtocol.swift
1330
+ - fastlane/swift/MainProcess.swift
1332
1331
  - fastlane/swift/Matchfile.swift
1333
1332
  - fastlane/swift/MatchfileProtocol.swift
1334
1333
  - fastlane/swift/Plugins.swift
@@ -1483,7 +1482,6 @@ files:
1483
1482
  - pem/lib/pem/options.rb
1484
1483
  - pilot/README.md
1485
1484
  - pilot/lib/pilot.rb
1486
- - pilot/lib/pilot/.manager.rb.swp
1487
1485
  - pilot/lib/pilot/build_manager.rb
1488
1486
  - pilot/lib/pilot/commands_generator.rb
1489
1487
  - pilot/lib/pilot/features.rb
@@ -1611,15 +1609,18 @@ files:
1611
1609
  - spaceship/lib/assets/languageMapping.json
1612
1610
  - spaceship/lib/assets/languageMappingReadable.json
1613
1611
  - spaceship/lib/spaceship.rb
1612
+ - spaceship/lib/spaceship/.DS_Store
1614
1613
  - spaceship/lib/spaceship/base.rb
1615
1614
  - spaceship/lib/spaceship/client.rb
1616
1615
  - spaceship/lib/spaceship/commands_generator.rb
1617
1616
  - spaceship/lib/spaceship/connect_api.rb
1618
- - spaceship/lib/spaceship/connect_api/.DS_Store
1619
1617
  - spaceship/lib/spaceship/connect_api/api_client.rb
1620
1618
  - spaceship/lib/spaceship/connect_api/client.rb
1621
1619
  - spaceship/lib/spaceship/connect_api/file_uploader.rb
1622
1620
  - spaceship/lib/spaceship/connect_api/model.rb
1621
+ - spaceship/lib/spaceship/connect_api/models/.app.rb.swp
1622
+ - spaceship/lib/spaceship/connect_api/models/.app_store_version.rb.swp
1623
+ - spaceship/lib/spaceship/connect_api/models/.app_store_version_submission.rb.swp
1623
1624
  - spaceship/lib/spaceship/connect_api/models/age_rating_declaration.rb
1624
1625
  - spaceship/lib/spaceship/connect_api/models/app.rb
1625
1626
  - spaceship/lib/spaceship/connect_api/models/app_category.rb
@@ -1826,7 +1827,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1826
1827
  - !ruby/object:Gem::Version
1827
1828
  version: '0'
1828
1829
  requirements: []
1829
- rubygems_version: 3.0.3
1830
+ rubygems_version: 3.0.6
1830
1831
  signing_key:
1831
1832
  specification_version: 4
1832
1833
  summary: The easiest way to automate beta deployments and releases for your iOS and