fastlane 2.205.2 → 2.206.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +94 -94
  3. data/cert/lib/cert/runner.rb +15 -7
  4. data/deliver/lib/deliver/options.rb +5 -0
  5. data/deliver/lib/deliver/runner.rb +45 -0
  6. data/fastlane/lib/fastlane/actions/.supply.rb.swp +0 -0
  7. data/fastlane/lib/fastlane/actions/danger.rb +14 -0
  8. data/fastlane/lib/fastlane/actions/run_tests.rb +1 -7
  9. data/fastlane/lib/fastlane/actions/setup_ci.rb +13 -4
  10. data/fastlane/lib/fastlane/cli_tools_distributor.rb +20 -0
  11. data/fastlane/lib/fastlane/version.rb +1 -1
  12. data/fastlane/swift/Deliverfile.swift +1 -1
  13. data/fastlane/swift/DeliverfileProtocol.swift +5 -1
  14. data/fastlane/swift/Fastlane.swift +39 -3
  15. data/fastlane/swift/Gymfile.swift +1 -1
  16. data/fastlane/swift/GymfileProtocol.swift +1 -1
  17. data/fastlane/swift/Matchfile.swift +1 -1
  18. data/fastlane/swift/MatchfileProtocol.swift +5 -1
  19. data/fastlane/swift/Precheckfile.swift +1 -1
  20. data/fastlane/swift/PrecheckfileProtocol.swift +1 -1
  21. data/fastlane/swift/Scanfile.swift +1 -1
  22. data/fastlane/swift/ScanfileProtocol.swift +1 -1
  23. data/fastlane/swift/Screengrabfile.swift +1 -1
  24. data/fastlane/swift/ScreengrabfileProtocol.swift +1 -1
  25. data/fastlane/swift/Snapshotfile.swift +1 -1
  26. data/fastlane/swift/SnapshotfileProtocol.swift +1 -1
  27. data/fastlane/swift/formatting/Brewfile.lock.json +13 -13
  28. data/fastlane_core/lib/fastlane_core/itunes_transporter.rb +90 -0
  29. data/match/lib/match/importer.rb +3 -1
  30. data/match/lib/match/options.rb +5 -0
  31. data/match/lib/match/runner.rb +1 -0
  32. data/match/lib/match/storage/google_cloud_storage.rb +7 -6
  33. data/scan/lib/scan/options.rb +6 -1
  34. data/scan/lib/scan/runner.rb +10 -2
  35. data/sigh/lib/sigh/runner.rb +2 -1
  36. data/spaceship/lib/spaceship/connect_api/models/app.rb +1 -2
  37. data/spaceship/lib/spaceship/connect_api/models/build_delivery.rb +2 -1
  38. data/spaceship/lib/spaceship/connect_api/models/certificate.rb +1 -0
  39. data/spaceship/lib/spaceship/connect_api/models/user.rb +5 -0
  40. data/spaceship/lib/spaceship/connect_api/testflight/testflight.rb +24 -2
  41. data/spaceship/lib/spaceship/connect_api/token.rb +5 -2
  42. metadata +19 -19
  43. data/fastlane/lib/fastlane/actions/.update_project_provisioning.rb.swp +0 -0
@@ -305,11 +305,19 @@ module Scan
305
305
  if number_of_failures > 0
306
306
  open_report
307
307
 
308
- UI.test_failure!("Tests have failed")
308
+ if Scan.config[:fail_build]
309
+ UI.test_failure!("Tests have failed")
310
+ else
311
+ UI.error("Tests have failed")
312
+ end
309
313
  end
310
314
 
311
315
  unless tests_exit_status == 0
312
- UI.test_failure!("Test execution failed. Exit status: #{tests_exit_status}")
316
+ if Scan.config[:fail_build]
317
+ UI.test_failure!("Test execution failed. Exit status: #{tests_exit_status}")
318
+ else
319
+ UI.error("Test execution failed. Exit status: #{tests_exit_status}")
320
+ end
313
321
  end
314
322
 
315
323
  open_report
@@ -251,7 +251,8 @@ module Sigh
251
251
  ]
252
252
  elsif profile_type == Spaceship::ConnectAPI::Profile::ProfileType::MAC_APP_DIRECT || profile_type == Spaceship::ConnectAPI::Profile::ProfileType::MAC_CATALYST_APP_DIRECT
253
253
  types = [
254
- Spaceship::ConnectAPI::Certificate::CertificateType::DEVELOPER_ID_APPLICATION
254
+ Spaceship::ConnectAPI::Certificate::CertificateType::DEVELOPER_ID_APPLICATION,
255
+ Spaceship::ConnectAPI::Certificate::CertificateType::DEVELOPER_ID_APPLICATION_G2
255
256
  ]
256
257
  else
257
258
  types = [
@@ -362,9 +362,8 @@ module Spaceship
362
362
  def get_build_deliveries(client: nil, filter: {}, includes: nil, limit: nil, sort: nil)
363
363
  client ||= Spaceship::ConnectAPI
364
364
  filter ||= {}
365
- filter[:app] = id
366
365
 
367
- resps = client.get_build_deliveries(filter: filter, includes: includes, limit: limit, sort: sort).all_pages
366
+ resps = client.get_build_deliveries(app_id: id, filter: filter, includes: includes, limit: limit, sort: sort).all_pages
368
367
  return resps.flat_map(&:to_models)
369
368
  end
370
369
 
@@ -27,7 +27,8 @@ module Spaceship
27
27
  def self.all(client: nil, app_id: nil, version: nil, build_number: nil)
28
28
  client ||= Spaceship::ConnectAPI
29
29
  resps = client.get_build_deliveries(
30
- filter: { app: app_id, cfBundleShortVersionString: version, cfBundleVersion: build_number },
30
+ app_id: app_id,
31
+ filter: { cfBundleShortVersionString: version, cfBundleVersion: build_number },
31
32
  limit: 1
32
33
  ).all_pages
33
34
  return resps.flat_map(&:to_models)
@@ -41,6 +41,7 @@ module Spaceship
41
41
  MAC_APP_DEVELOPMENT = "MAC_APP_DEVELOPMENT"
42
42
  DEVELOPER_ID_KEXT = "DEVELOPER_ID_KEXT"
43
43
  DEVELOPER_ID_APPLICATION = "DEVELOPER_ID_APPLICATION"
44
+ DEVELOPER_ID_APPLICATION_G2 = "DEVELOPER_ID_APPLICATION_G2"
44
45
 
45
46
  # As of 2021-11-09, this is only available with Apple ID auth
46
47
  DEVELOPER_ID_INSTALLER = "DEVELOPER_ID_INSTALLER"
@@ -57,6 +57,11 @@ module Spaceship
57
57
  return all(client: client, filter: { email: email }, includes: includes)
58
58
  end
59
59
 
60
+ def delete!(client: nil)
61
+ client ||= Spaceship::ConnectAPI
62
+ client.delete_user(user_id: id)
63
+ end
64
+
60
65
  def get_visible_apps(client: nil, limit: nil)
61
66
  client ||= Spaceship::ConnectAPI
62
67
  resp = client.get_user_visible_apps(user_id: id, limit: limit)
@@ -290,6 +290,28 @@ module Spaceship
290
290
  test_flight_request_client.post("bulkBetaTesterAssignments", body)
291
291
  end
292
292
 
293
+ # attributes - {email: "", firstName: "", lastName: ""}
294
+ def post_beta_tester_assignment(beta_group_ids: [], attributes: {})
295
+ body = {
296
+ data: {
297
+ attributes: attributes,
298
+ relationships: {
299
+ betaGroups: {
300
+ data: beta_group_ids.map do |id|
301
+ {
302
+ type: "betaGroups",
303
+ id: id
304
+ }
305
+ end
306
+ }
307
+ },
308
+ type: "betaTesters"
309
+ }
310
+ }
311
+
312
+ test_flight_request_client.post("betaTesters", body)
313
+ end
314
+
293
315
  def add_beta_tester_to_group(beta_group_id: nil, beta_tester_ids: nil)
294
316
  beta_tester_ids || []
295
317
  body = {
@@ -448,9 +470,9 @@ module Spaceship
448
470
  # buildDeliveries
449
471
  #
450
472
 
451
- def get_build_deliveries(filter: {}, includes: nil, limit: nil, sort: nil)
473
+ def get_build_deliveries(app_id:, filter: {}, includes: nil, limit: nil, sort: nil)
452
474
  params = test_flight_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
453
- test_flight_request_client.get("buildDeliveries", params)
475
+ test_flight_request_client.get("apps/#{app_id}/buildDeliveries", params)
454
476
  end
455
477
 
456
478
  #
@@ -90,14 +90,17 @@ module Spaceship
90
90
  end
91
91
 
92
92
  def refresh!
93
- @expiration = Time.now + @duration
93
+ now = Time.now
94
+ @expiration = now + @duration
94
95
 
95
96
  header = {
96
- kid: key_id
97
+ kid: key_id,
98
+ typ: 'JWT'
97
99
  }
98
100
 
99
101
  payload = {
100
102
  iss: issuer_id,
103
+ iat: now.to_i,
101
104
  exp: @expiration.to_i,
102
105
  aud: 'appstoreconnect-v1'
103
106
  }
metadata CHANGED
@@ -1,39 +1,39 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.205.2
4
+ version: 2.206.0
5
5
  platform: ruby
6
6
  authors:
7
- - Jan Piotrowski
8
- - Matthew Ellis
9
7
  - Satoshi Namai
10
- - Daniel Jankowski
11
- - Manu Wallner
12
- - Jérôme Lacoste
8
+ - Fumiya Nakamura
9
+ - Matthew Ellis
10
+ - Roger Oba
13
11
  - Jimmy Dee
14
12
  - Luka Mirosevic
15
- - Aaron Brager
16
- - Olivier Halligon
17
13
  - Iulian Onofrei
14
+ - Jan Piotrowski
15
+ - Aaron Brager
16
+ - Maksym Grebenets
18
17
  - Josh Holtz
19
- - Fumiya Nakamura
20
- - Jorge Revuelta H
21
18
  - Danielle Tomlinson
22
- - Kohki Miki
23
- - Max Ott
24
- - Joshua Liebowitz
19
+ - Daniel Jankowski
20
+ - Jérôme Lacoste
21
+ - Andrew McBurney
25
22
  - Manish Rathi
23
+ - Olivier Halligon
26
24
  - Łukasz Grabowski
25
+ - Manu Wallner
26
+ - Jorge Revuelta H
27
+ - Stefan Natchev
27
28
  - Felix Krause
28
- - Andrew McBurney
29
- - Roger Oba
29
+ - Joshua Liebowitz
30
+ - Max Ott
31
+ - Kohki Miki
30
32
  - Helmut Januschka
31
- - Maksym Grebenets
32
- - Stefan Natchev
33
33
  autorequire:
34
34
  bindir: bin
35
35
  cert_chain: []
36
- date: 2022-04-21 00:00:00.000000000 Z
36
+ date: 2022-05-18 00:00:00.000000000 Z
37
37
  dependencies:
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: xcodeproj
@@ -1017,7 +1017,7 @@ files:
1017
1017
  - fastlane/lib/fastlane/action.rb
1018
1018
  - fastlane/lib/fastlane/action_collector.rb
1019
1019
  - fastlane/lib/fastlane/actions/.DS_Store
1020
- - fastlane/lib/fastlane/actions/.update_project_provisioning.rb.swp
1020
+ - fastlane/lib/fastlane/actions/.supply.rb.swp
1021
1021
  - fastlane/lib/fastlane/actions/README.md
1022
1022
  - fastlane/lib/fastlane/actions/actions_helper.rb
1023
1023
  - fastlane/lib/fastlane/actions/adb.rb