fastlane 2.149.0 → 2.150.0.rc4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +82 -82
  3. data/deliver/lib/deliver.rb +0 -1
  4. data/deliver/lib/deliver/app_screenshot.rb +26 -25
  5. data/deliver/lib/deliver/options.rb +6 -11
  6. data/deliver/lib/deliver/runner.rb +7 -21
  7. data/deliver/lib/deliver/setup.rb +5 -30
  8. data/deliver/lib/deliver/submit_for_review.rb +155 -90
  9. data/deliver/lib/deliver/upload_metadata.rb +355 -143
  10. data/deliver/lib/deliver/upload_price_tier.rb +22 -8
  11. data/deliver/lib/deliver/upload_screenshots.rb +134 -39
  12. data/fastlane/lib/fastlane/actions/docs/capture_ios_screenshots.md +1 -1
  13. data/fastlane/lib/fastlane/actions/docs/upload_to_app_store.md.erb +77 -96
  14. data/fastlane/lib/fastlane/actions/docs/upload_to_play_store.md +3 -2
  15. data/fastlane/lib/fastlane/actions/download_dsyms.rb +7 -1
  16. data/fastlane/lib/fastlane/actions/google_play_track_release_names.rb +74 -0
  17. data/fastlane/lib/fastlane/actions/set_changelog.rb +23 -20
  18. data/fastlane/lib/fastlane/actions/slack.rb +1 -1
  19. data/fastlane/lib/fastlane/actions/spm.rb +7 -0
  20. data/fastlane/lib/fastlane/actions/upload_symbols_to_crashlytics.rb +1 -32
  21. data/fastlane/lib/fastlane/lane.rb +3 -3
  22. data/fastlane/lib/fastlane/swift_fastlane_function.rb +8 -4
  23. data/fastlane/lib/fastlane/version.rb +1 -1
  24. data/fastlane/swift/ControlCommand.swift +1 -0
  25. data/fastlane/swift/Deliverfile.swift +1 -1
  26. data/fastlane/swift/Fastlane.swift +48 -12
  27. data/fastlane/swift/FastlaneSwiftRunner/FastlaneSwiftRunner.xcodeproj/xcshareddata/xcschemes/FastlaneRunner.xcscheme +3 -9
  28. data/fastlane/swift/Gymfile.swift +1 -1
  29. data/fastlane/swift/LaneFileProtocol.swift +2 -5
  30. data/fastlane/swift/Matchfile.swift +1 -1
  31. data/fastlane/swift/MatchfileProtocol.swift +1 -1
  32. data/fastlane/swift/Precheckfile.swift +1 -1
  33. data/fastlane/swift/RubyCommand.swift +29 -6
  34. data/fastlane/swift/RubyCommandable.swift +1 -0
  35. data/fastlane/swift/Runner.swift +85 -13
  36. data/fastlane/swift/Scanfile.swift +1 -1
  37. data/fastlane/swift/ScanfileProtocol.swift +1 -1
  38. data/fastlane/swift/Screengrabfile.swift +1 -1
  39. data/fastlane/swift/Snapshotfile.swift +1 -1
  40. data/fastlane/swift/SnapshotfileProtocol.swift +3 -3
  41. data/fastlane/swift/SocketClient.swift +76 -45
  42. data/fastlane/swift/SocketClientDelegateProtocol.swift +1 -1
  43. data/fastlane/swift/SocketResponse.swift +1 -0
  44. data/fastlane_core/lib/fastlane_core/configuration/config_item.rb +1 -3
  45. data/fastlane_core/lib/fastlane_core/itunes_transporter.rb +89 -52
  46. data/fastlane_core/lib/fastlane_core/pkg_file_analyser.rb +7 -0
  47. data/fastlane_core/lib/fastlane_core/project.rb +0 -1
  48. data/frameit/lib/frameit/device_types.rb +100 -100
  49. data/produce/lib/produce/itunes_connect.rb +32 -21
  50. data/produce/lib/produce/options.rb +3 -3
  51. data/sigh/lib/assets/resign.sh +7 -7
  52. data/snapshot/lib/assets/SnapshotHelper.swift +5 -5
  53. data/snapshot/lib/assets/SnapshotHelperXcode8.swift +3 -3
  54. data/snapshot/lib/snapshot/options.rb +0 -1
  55. data/snapshot/lib/snapshot/reports_generator.rb +8 -1
  56. data/spaceship/lib/spaceship/.DS_Store +0 -0
  57. data/spaceship/lib/spaceship/client.rb +4 -3
  58. data/spaceship/lib/spaceship/connect_api.rb +25 -2
  59. data/spaceship/lib/spaceship/connect_api/client.rb +97 -31
  60. data/spaceship/lib/spaceship/connect_api/file_uploader.rb +98 -0
  61. data/spaceship/lib/spaceship/connect_api/model.rb +1 -1
  62. data/spaceship/lib/spaceship/connect_api/models/age_rating_declaration.rb +113 -0
  63. data/spaceship/lib/spaceship/connect_api/models/app.rb +120 -3
  64. data/spaceship/lib/spaceship/connect_api/models/app_category.rb +94 -0
  65. data/spaceship/lib/spaceship/connect_api/models/app_info.rb +67 -0
  66. data/spaceship/lib/spaceship/connect_api/models/app_info_localization.rb +38 -0
  67. data/spaceship/lib/spaceship/connect_api/models/app_preview.rb +129 -0
  68. data/spaceship/lib/spaceship/connect_api/models/app_preview_set.rb +71 -0
  69. data/spaceship/lib/spaceship/connect_api/models/app_price.rb +22 -0
  70. data/spaceship/lib/spaceship/connect_api/models/app_price_tier.rb +12 -0
  71. data/spaceship/lib/spaceship/connect_api/models/app_review_attachment.rb +71 -0
  72. data/spaceship/lib/spaceship/connect_api/models/app_screenshot.rb +93 -0
  73. data/spaceship/lib/spaceship/connect_api/models/app_screenshot_set.rb +101 -0
  74. data/spaceship/lib/spaceship/connect_api/models/app_store_review_detail.rb +51 -0
  75. data/spaceship/lib/spaceship/connect_api/models/app_store_version.rb +183 -0
  76. data/spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb +86 -0
  77. data/spaceship/lib/spaceship/connect_api/models/app_store_version_phased_release.rb +36 -0
  78. data/spaceship/lib/spaceship/connect_api/models/app_store_version_submission.rb +26 -0
  79. data/spaceship/lib/spaceship/connect_api/models/build.rb +4 -0
  80. data/spaceship/lib/spaceship/connect_api/models/idfa_declaration.rb +40 -0
  81. data/spaceship/lib/spaceship/connect_api/models/reset_ratings_request.rb +26 -0
  82. data/spaceship/lib/spaceship/connect_api/models/territory.rb +27 -0
  83. data/spaceship/lib/spaceship/connect_api/testflight/testflight.rb +10 -3
  84. data/spaceship/lib/spaceship/connect_api/tunes/client.rb +33 -0
  85. data/spaceship/lib/spaceship/connect_api/tunes/tunes.rb +841 -0
  86. data/spaceship/lib/spaceship/spaceauth_runner.rb +2 -2
  87. data/supply/lib/supply/client.rb +19 -0
  88. data/supply/lib/supply/reader.rb +16 -0
  89. metadata +44 -39
  90. data/deliver/lib/deliver/upload_assets.rb +0 -27
  91. data/fastlane/lib/assets/.s3_html_template.erb.swp +0 -0
  92. data/fastlane/lib/fastlane/actions/.hipchat.rb.swp +0 -0
  93. data/fastlane/lib/fastlane/actions/.slack.rb.swp +0 -0
  94. data/scan/lib/scan/.options.rb.swp +0 -0
@@ -39,8 +39,8 @@ module Spaceship
39
39
  # value: HSARMTKNSRVTWFlaF/ek8asaa9lymMA0dN8JQ6pY7B3F5kdqTxJvMT19EVEFX8EQudB/uNwBHOHzaa30KYTU/eCP/UF7vGTgxs6PAnlVWKscWssOVHfP2IKWUPaa4Dn+I6ilA7eAFQsiaaVT
40
40
  cookies = YAML.safe_load(
41
41
  itc_cookie_content,
42
- [HTTP::Cookie, Time], # classes whitelist
43
- [], # symbols whitelist
42
+ [HTTP::Cookie, Time], # classes allowlist
43
+ [], # symbols allowlist
44
44
  true # allow YAML aliases
45
45
  )
46
46
 
@@ -4,6 +4,7 @@ AndroidPublisher = Google::Apis::AndroidpublisherV3
4
4
 
5
5
  require 'net/http'
6
6
 
7
+ # rubocop:disable Metrics/ClassLength
7
8
  module Supply
8
9
  class AbstractGoogleServiceClient
9
10
  SCOPE = nil
@@ -410,6 +411,23 @@ module Supply
410
411
  end
411
412
  end
412
413
 
414
+ # Get list of release names for track
415
+ def track_releases(track)
416
+ ensure_active_edit!
417
+
418
+ begin
419
+ result = client.get_edit_track(
420
+ current_package_name,
421
+ current_edit.id,
422
+ track
423
+ )
424
+ return result.releases || []
425
+ rescue Google::Apis::ClientError => e
426
+ return [] if e.status_code == 404 && e.to_s.include?("trackEmpty")
427
+ raise
428
+ end
429
+ end
430
+
413
431
  def upload_changelogs(track, track_name)
414
432
  ensure_active_edit!
415
433
 
@@ -529,3 +547,4 @@ module Supply
529
547
  end
530
548
  end
531
549
  end
550
+ # rubocop:enable Metrics/ClassLength
@@ -16,6 +16,22 @@ module Supply
16
16
  version_codes
17
17
  end
18
18
 
19
+ def track_release_names
20
+ track = Supply.config[:track]
21
+
22
+ client.begin_edit(package_name: Supply.config[:package_name])
23
+ release_names = client.track_releases(track).map(&:name)
24
+ client.abort_current_edit
25
+
26
+ if release_names.empty?
27
+ UI.important("No release names found in track '#{track}'")
28
+ else
29
+ UI.success("Found '#{release_names.join(', ')}' release names in track '#{track}'")
30
+ end
31
+
32
+ release_names
33
+ end
34
+
19
35
  private
20
36
 
21
37
  def client
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.149.0
4
+ version: 2.150.0.rc4
5
5
  platform: ruby
6
6
  authors:
7
+ - Manu Wallner
8
+ - Danielle Tomlinson
9
+ - Matthew Ellis
10
+ - Stefan Natchev
11
+ - Jimmy Dee
7
12
  - Kohki Miki
13
+ - Jorge Revuelta H
14
+ - Daniel Jankowski
15
+ - Jérôme Lacoste
8
16
  - Andrew McBurney
9
- - Jan Piotrowski
17
+ - Max Ott
10
18
  - Iulian Onofrei
19
+ - Helmut Januschka
20
+ - Jan Piotrowski
11
21
  - Luka Mirosevic
12
- - Jimmy Dee
13
- - Josh Holtz
14
- - Max Ott
15
- - Matthew Ellis
16
22
  - Felix Krause
23
+ - Fumiya Nakamura
17
24
  - Olivier Halligon
18
- - Stefan Natchev
19
- - Helmut Januschka
20
25
  - Maksym Grebenets
21
- - Manu Wallner
22
26
  - Aaron Brager
23
- - Fumiya Nakamura
24
- - Daniel Jankowski
25
- - Danielle Tomlinson
26
- - Jorge Revuelta H
27
+ - Josh Holtz
27
28
  - Joshua Liebowitz
28
- - Jérôme Lacoste
29
- autorequire:
29
+ autorequire:
30
30
  bindir: bin
31
31
  cert_chain: []
32
- date: 2020-06-03 00:00:00.000000000 Z
32
+ date: 2020-06-28 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: slack-notifier
@@ -213,20 +213,6 @@ dependencies:
213
213
  - - "~>"
214
214
  - !ruby/object:Gem::Version
215
215
  version: 1.0.0
216
- - !ruby/object:Gem::Dependency
217
- name: public_suffix
218
- requirement: !ruby/object:Gem::Requirement
219
- requirements:
220
- - - "~>"
221
- - !ruby/object:Gem::Version
222
- version: 2.0.0
223
- type: :runtime
224
- prerelease: false
225
- version_requirements: !ruby/object:Gem::Requirement
226
- requirements:
227
- - - "~>"
228
- - !ruby/object:Gem::Version
229
- version: 2.0.0
230
216
  - !ruby/object:Gem::Dependency
231
217
  name: tty-screen
232
218
  requirement: !ruby/object:Gem::Requirement
@@ -1003,12 +989,10 @@ files:
1003
989
  - deliver/lib/deliver/runner.rb
1004
990
  - deliver/lib/deliver/setup.rb
1005
991
  - deliver/lib/deliver/submit_for_review.rb
1006
- - deliver/lib/deliver/upload_assets.rb
1007
992
  - deliver/lib/deliver/upload_metadata.rb
1008
993
  - deliver/lib/deliver/upload_price_tier.rb
1009
994
  - deliver/lib/deliver/upload_screenshots.rb
1010
995
  - fastlane/README.md
1011
- - fastlane/lib/assets/.s3_html_template.erb.swp
1012
996
  - fastlane/lib/assets/ActionDetails.md.erb
1013
997
  - fastlane/lib/assets/Actions.md.erb
1014
998
  - fastlane/lib/assets/AppfileTemplate
@@ -1029,8 +1013,6 @@ files:
1029
1013
  - fastlane/lib/fastlane.rb
1030
1014
  - fastlane/lib/fastlane/action.rb
1031
1015
  - fastlane/lib/fastlane/action_collector.rb
1032
- - fastlane/lib/fastlane/actions/.hipchat.rb.swp
1033
- - fastlane/lib/fastlane/actions/.slack.rb.swp
1034
1016
  - fastlane/lib/fastlane/actions/README.md
1035
1017
  - fastlane/lib/fastlane/actions/actions_helper.rb
1036
1018
  - fastlane/lib/fastlane/actions/adb.rb
@@ -1135,6 +1117,7 @@ files:
1135
1117
  - fastlane/lib/fastlane/actions/git_submodule_update.rb
1136
1118
  - fastlane/lib/fastlane/actions/git_tag_exists.rb
1137
1119
  - fastlane/lib/fastlane/actions/github_api.rb
1120
+ - fastlane/lib/fastlane/actions/google_play_track_release_names.rb
1138
1121
  - fastlane/lib/fastlane/actions/google_play_track_version_codes.rb
1139
1122
  - fastlane/lib/fastlane/actions/gradle.rb
1140
1123
  - fastlane/lib/fastlane/actions/gym.rb
@@ -1574,7 +1557,6 @@ files:
1574
1557
  - scan/lib/assets/ScanfileTemplate
1575
1558
  - scan/lib/assets/ScanfileTemplate.swift
1576
1559
  - scan/lib/scan.rb
1577
- - scan/lib/scan/.options.rb.swp
1578
1560
  - scan/lib/scan/commands_generator.rb
1579
1561
  - scan/lib/scan/detect_values.rb
1580
1562
  - scan/lib/scan/error_handler.rb
@@ -1650,14 +1632,32 @@ files:
1650
1632
  - spaceship/lib/assets/languageMapping.json
1651
1633
  - spaceship/lib/assets/languageMappingReadable.json
1652
1634
  - spaceship/lib/spaceship.rb
1635
+ - spaceship/lib/spaceship/.DS_Store
1653
1636
  - spaceship/lib/spaceship/babosa_fix.rb
1654
1637
  - spaceship/lib/spaceship/base.rb
1655
1638
  - spaceship/lib/spaceship/client.rb
1656
1639
  - spaceship/lib/spaceship/commands_generator.rb
1657
1640
  - spaceship/lib/spaceship/connect_api.rb
1658
1641
  - spaceship/lib/spaceship/connect_api/client.rb
1642
+ - spaceship/lib/spaceship/connect_api/file_uploader.rb
1659
1643
  - spaceship/lib/spaceship/connect_api/model.rb
1644
+ - spaceship/lib/spaceship/connect_api/models/age_rating_declaration.rb
1660
1645
  - spaceship/lib/spaceship/connect_api/models/app.rb
1646
+ - spaceship/lib/spaceship/connect_api/models/app_category.rb
1647
+ - spaceship/lib/spaceship/connect_api/models/app_info.rb
1648
+ - spaceship/lib/spaceship/connect_api/models/app_info_localization.rb
1649
+ - spaceship/lib/spaceship/connect_api/models/app_preview.rb
1650
+ - spaceship/lib/spaceship/connect_api/models/app_preview_set.rb
1651
+ - spaceship/lib/spaceship/connect_api/models/app_price.rb
1652
+ - spaceship/lib/spaceship/connect_api/models/app_price_tier.rb
1653
+ - spaceship/lib/spaceship/connect_api/models/app_review_attachment.rb
1654
+ - spaceship/lib/spaceship/connect_api/models/app_screenshot.rb
1655
+ - spaceship/lib/spaceship/connect_api/models/app_screenshot_set.rb
1656
+ - spaceship/lib/spaceship/connect_api/models/app_store_review_detail.rb
1657
+ - spaceship/lib/spaceship/connect_api/models/app_store_version.rb
1658
+ - spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb
1659
+ - spaceship/lib/spaceship/connect_api/models/app_store_version_phased_release.rb
1660
+ - spaceship/lib/spaceship/connect_api/models/app_store_version_submission.rb
1661
1661
  - spaceship/lib/spaceship/connect_api/models/beta_app_localization.rb
1662
1662
  - spaceship/lib/spaceship/connect_api/models/beta_app_review_detail.rb
1663
1663
  - spaceship/lib/spaceship/connect_api/models/beta_app_review_submission.rb
@@ -1675,8 +1675,11 @@ files:
1675
1675
  - spaceship/lib/spaceship/connect_api/models/bundle_id_capability.rb
1676
1676
  - spaceship/lib/spaceship/connect_api/models/certificate.rb
1677
1677
  - spaceship/lib/spaceship/connect_api/models/device.rb
1678
+ - spaceship/lib/spaceship/connect_api/models/idfa_declaration.rb
1678
1679
  - spaceship/lib/spaceship/connect_api/models/pre_release_version.rb
1679
1680
  - spaceship/lib/spaceship/connect_api/models/profile.rb
1681
+ - spaceship/lib/spaceship/connect_api/models/reset_ratings_request.rb
1682
+ - spaceship/lib/spaceship/connect_api/models/territory.rb
1680
1683
  - spaceship/lib/spaceship/connect_api/models/user.rb
1681
1684
  - spaceship/lib/spaceship/connect_api/provisioning/client.rb
1682
1685
  - spaceship/lib/spaceship/connect_api/provisioning/provisioning.rb
@@ -1684,6 +1687,8 @@ files:
1684
1687
  - spaceship/lib/spaceship/connect_api/testflight/client.rb
1685
1688
  - spaceship/lib/spaceship/connect_api/testflight/testflight.rb
1686
1689
  - spaceship/lib/spaceship/connect_api/token.rb
1690
+ - spaceship/lib/spaceship/connect_api/tunes/client.rb
1691
+ - spaceship/lib/spaceship/connect_api/tunes/tunes.rb
1687
1692
  - spaceship/lib/spaceship/connect_api/users/client.rb
1688
1693
  - spaceship/lib/spaceship/connect_api/users/users.rb
1689
1694
  - spaceship/lib/spaceship/du/du_client.rb
@@ -1804,7 +1809,7 @@ licenses:
1804
1809
  - MIT
1805
1810
  metadata:
1806
1811
  docs_url: https://docs.fastlane.tools
1807
- post_install_message:
1812
+ post_install_message:
1808
1813
  rdoc_options: []
1809
1814
  require_paths:
1810
1815
  - credentials_manager/lib
@@ -1832,12 +1837,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
1832
1837
  version: '2.4'
1833
1838
  required_rubygems_version: !ruby/object:Gem::Requirement
1834
1839
  requirements:
1835
- - - ">="
1840
+ - - ">"
1836
1841
  - !ruby/object:Gem::Version
1837
- version: '0'
1842
+ version: 1.3.1
1838
1843
  requirements: []
1839
1844
  rubygems_version: 3.0.6
1840
- signing_key:
1845
+ signing_key:
1841
1846
  specification_version: 4
1842
1847
  summary: The easiest way to automate beta deployments and releases for your iOS and
1843
1848
  Android apps
@@ -1,27 +0,0 @@
1
- require_relative 'module'
2
-
3
- module Deliver
4
- class UploadAssets
5
- SUPPORTED_ICON_EXTENSIONS = [".png", ".jpg", ".jpeg"]
6
- def upload(options)
7
- return unless options[:app_icon] || options[:apple_watch_app_icon]
8
- return if options[:edit_live]
9
- app = options[:app]
10
-
11
- v = app.edit_version(platform: options[:platform])
12
- UI.user_error!("Could not find a version to edit for app '#{app.name}'") unless v
13
-
14
- if options[:app_icon]
15
- UI.message("Uploading app icon...")
16
- v.upload_large_icon!(options[:app_icon])
17
- end
18
-
19
- if options[:apple_watch_app_icon]
20
- UI.message("Uploading apple watchapp icon...")
21
- v.upload_watch_icon!(options[:apple_watch_app_icon])
22
- end
23
-
24
- v.save!
25
- end
26
- end
27
- end