fastlane 2.149.1 → 2.150.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/deliver/lib/deliver.rb +0 -1
  3. data/deliver/lib/deliver/app_screenshot.rb +26 -25
  4. data/deliver/lib/deliver/options.rb +6 -11
  5. data/deliver/lib/deliver/runner.rb +7 -4
  6. data/deliver/lib/deliver/setup.rb +5 -30
  7. data/deliver/lib/deliver/submit_for_review.rb +124 -87
  8. data/deliver/lib/deliver/upload_metadata.rb +284 -143
  9. data/deliver/lib/deliver/upload_price_tier.rb +15 -8
  10. data/deliver/lib/deliver/upload_screenshots.rb +86 -37
  11. data/fastlane/lib/fastlane/actions/docs/capture_ios_screenshots.md +1 -1
  12. data/fastlane/lib/fastlane/actions/docs/upload_to_app_store.md.erb +3 -11
  13. data/fastlane/lib/fastlane/actions/docs/upload_to_play_store.md +3 -2
  14. data/fastlane/lib/fastlane/actions/download_dsyms.rb +7 -1
  15. data/fastlane/lib/fastlane/actions/google_play_track_release_names.rb +74 -0
  16. data/fastlane/lib/fastlane/actions/slack.rb +1 -1
  17. data/fastlane/lib/fastlane/actions/spm.rb +7 -0
  18. data/fastlane/lib/fastlane/actions/upload_symbols_to_crashlytics.rb +1 -32
  19. data/fastlane/lib/fastlane/lane.rb +3 -3
  20. data/fastlane/lib/fastlane/swift_fastlane_function.rb +8 -4
  21. data/fastlane/lib/fastlane/version.rb +1 -1
  22. data/fastlane/swift/ControlCommand.swift +1 -0
  23. data/fastlane/swift/Fastlane.swift +48 -12
  24. data/fastlane/swift/FastlaneSwiftRunner/FastlaneSwiftRunner.xcodeproj/xcshareddata/xcschemes/FastlaneRunner.xcscheme +3 -9
  25. data/fastlane/swift/LaneFileProtocol.swift +2 -5
  26. data/fastlane/swift/MatchfileProtocol.swift +1 -1
  27. data/fastlane/swift/RubyCommand.swift +29 -6
  28. data/fastlane/swift/RubyCommandable.swift +1 -0
  29. data/fastlane/swift/Runner.swift +85 -13
  30. data/fastlane/swift/ScanfileProtocol.swift +1 -1
  31. data/fastlane/swift/SnapshotfileProtocol.swift +3 -3
  32. data/fastlane/swift/SocketClient.swift +76 -45
  33. data/fastlane/swift/SocketClientDelegateProtocol.swift +1 -1
  34. data/fastlane/swift/SocketResponse.swift +1 -0
  35. data/fastlane_core/lib/fastlane_core/configuration/config_item.rb +1 -3
  36. data/fastlane_core/lib/fastlane_core/pkg_file_analyser.rb +7 -0
  37. data/frameit/lib/frameit/device_types.rb +100 -100
  38. data/produce/lib/produce/itunes_connect.rb +20 -20
  39. data/produce/lib/produce/options.rb +3 -3
  40. data/sigh/lib/assets/resign.sh +7 -7
  41. data/snapshot/lib/assets/SnapshotHelper.swift +5 -5
  42. data/snapshot/lib/assets/SnapshotHelperXcode8.swift +3 -3
  43. data/snapshot/lib/snapshot/options.rb +0 -1
  44. data/snapshot/lib/snapshot/reports_generator.rb +8 -1
  45. data/spaceship/lib/spaceship/.DS_Store +0 -0
  46. data/spaceship/lib/spaceship/connect_api.rb +21 -2
  47. data/spaceship/lib/spaceship/connect_api/client.rb +47 -11
  48. data/spaceship/lib/spaceship/connect_api/model.rb +1 -1
  49. data/spaceship/lib/spaceship/connect_api/models/age_rating_declaration.rb +109 -0
  50. data/spaceship/lib/spaceship/connect_api/models/app.rb +113 -3
  51. data/spaceship/lib/spaceship/connect_api/models/app_category.rb +94 -0
  52. data/spaceship/lib/spaceship/connect_api/models/app_info.rb +74 -0
  53. data/spaceship/lib/spaceship/connect_api/models/app_info_localization.rb +38 -0
  54. data/spaceship/lib/spaceship/connect_api/models/app_price.rb +22 -0
  55. data/spaceship/lib/spaceship/connect_api/models/app_price_tier.rb +12 -0
  56. data/spaceship/lib/spaceship/connect_api/models/app_review_attachment.rb +81 -0
  57. data/spaceship/lib/spaceship/connect_api/models/app_screenshot.rb +117 -0
  58. data/spaceship/lib/spaceship/connect_api/models/app_screenshot_set.rb +101 -0
  59. data/spaceship/lib/spaceship/connect_api/models/app_store_review_detail.rb +51 -0
  60. data/spaceship/lib/spaceship/connect_api/models/app_store_version.rb +182 -0
  61. data/spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb +70 -0
  62. data/spaceship/lib/spaceship/connect_api/models/app_store_version_phased_release.rb +36 -0
  63. data/spaceship/lib/spaceship/connect_api/models/app_store_version_submission.rb +26 -0
  64. data/spaceship/lib/spaceship/connect_api/models/build.rb +4 -0
  65. data/spaceship/lib/spaceship/connect_api/models/idfa_declaration.rb +40 -0
  66. data/spaceship/lib/spaceship/connect_api/models/reset_ratings_request.rb +26 -0
  67. data/spaceship/lib/spaceship/connect_api/testflight/testflight.rb +10 -3
  68. data/spaceship/lib/spaceship/connect_api/tunes/client.rb +33 -0
  69. data/spaceship/lib/spaceship/connect_api/tunes/tunes.rb +703 -0
  70. data/spaceship/lib/spaceship/spaceauth_runner.rb +2 -2
  71. data/supply/lib/supply/client.rb +19 -0
  72. data/supply/lib/supply/reader.rb +16 -0
  73. metadata +27 -24
  74. data/deliver/lib/deliver/upload_assets.rb +0 -27
  75. data/scan/lib/scan/.test_command_generator.rb.swp +0 -0
  76. data/snapshot/lib/snapshot/.test_command_generator_base.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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.149.1
4
+ version: 2.150.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manu Wallner
@@ -26,10 +26,10 @@ authors:
26
26
  - Aaron Brager
27
27
  - Josh Holtz
28
28
  - Joshua Liebowitz
29
- autorequire:
29
+ autorequire:
30
30
  bindir: bin
31
31
  cert_chain: []
32
- date: 2020-06-04 00:00:00.000000000 Z
32
+ date: 2020-06-21 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,7 +989,6 @@ 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
@@ -1132,6 +1117,7 @@ files:
1132
1117
  - fastlane/lib/fastlane/actions/git_submodule_update.rb
1133
1118
  - fastlane/lib/fastlane/actions/git_tag_exists.rb
1134
1119
  - fastlane/lib/fastlane/actions/github_api.rb
1120
+ - fastlane/lib/fastlane/actions/google_play_track_release_names.rb
1135
1121
  - fastlane/lib/fastlane/actions/google_play_track_version_codes.rb
1136
1122
  - fastlane/lib/fastlane/actions/gradle.rb
1137
1123
  - fastlane/lib/fastlane/actions/gym.rb
@@ -1571,7 +1557,6 @@ files:
1571
1557
  - scan/lib/assets/ScanfileTemplate
1572
1558
  - scan/lib/assets/ScanfileTemplate.swift
1573
1559
  - scan/lib/scan.rb
1574
- - scan/lib/scan/.test_command_generator.rb.swp
1575
1560
  - scan/lib/scan/commands_generator.rb
1576
1561
  - scan/lib/scan/detect_values.rb
1577
1562
  - scan/lib/scan/error_handler.rb
@@ -1615,7 +1600,6 @@ files:
1615
1600
  - snapshot/lib/assets/SnapshotHelper.swift
1616
1601
  - snapshot/lib/assets/SnapshotHelperXcode8.swift
1617
1602
  - snapshot/lib/snapshot.rb
1618
- - snapshot/lib/snapshot/.test_command_generator_base.rb.swp
1619
1603
  - snapshot/lib/snapshot/collector.rb
1620
1604
  - snapshot/lib/snapshot/commands_generator.rb
1621
1605
  - snapshot/lib/snapshot/dependency_checker.rb
@@ -1648,6 +1632,7 @@ files:
1648
1632
  - spaceship/lib/assets/languageMapping.json
1649
1633
  - spaceship/lib/assets/languageMappingReadable.json
1650
1634
  - spaceship/lib/spaceship.rb
1635
+ - spaceship/lib/spaceship/.DS_Store
1651
1636
  - spaceship/lib/spaceship/babosa_fix.rb
1652
1637
  - spaceship/lib/spaceship/base.rb
1653
1638
  - spaceship/lib/spaceship/client.rb
@@ -1655,7 +1640,21 @@ files:
1655
1640
  - spaceship/lib/spaceship/connect_api.rb
1656
1641
  - spaceship/lib/spaceship/connect_api/client.rb
1657
1642
  - spaceship/lib/spaceship/connect_api/model.rb
1643
+ - spaceship/lib/spaceship/connect_api/models/age_rating_declaration.rb
1658
1644
  - spaceship/lib/spaceship/connect_api/models/app.rb
1645
+ - spaceship/lib/spaceship/connect_api/models/app_category.rb
1646
+ - spaceship/lib/spaceship/connect_api/models/app_info.rb
1647
+ - spaceship/lib/spaceship/connect_api/models/app_info_localization.rb
1648
+ - spaceship/lib/spaceship/connect_api/models/app_price.rb
1649
+ - spaceship/lib/spaceship/connect_api/models/app_price_tier.rb
1650
+ - spaceship/lib/spaceship/connect_api/models/app_review_attachment.rb
1651
+ - spaceship/lib/spaceship/connect_api/models/app_screenshot.rb
1652
+ - spaceship/lib/spaceship/connect_api/models/app_screenshot_set.rb
1653
+ - spaceship/lib/spaceship/connect_api/models/app_store_review_detail.rb
1654
+ - spaceship/lib/spaceship/connect_api/models/app_store_version.rb
1655
+ - spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb
1656
+ - spaceship/lib/spaceship/connect_api/models/app_store_version_phased_release.rb
1657
+ - spaceship/lib/spaceship/connect_api/models/app_store_version_submission.rb
1659
1658
  - spaceship/lib/spaceship/connect_api/models/beta_app_localization.rb
1660
1659
  - spaceship/lib/spaceship/connect_api/models/beta_app_review_detail.rb
1661
1660
  - spaceship/lib/spaceship/connect_api/models/beta_app_review_submission.rb
@@ -1673,8 +1672,10 @@ files:
1673
1672
  - spaceship/lib/spaceship/connect_api/models/bundle_id_capability.rb
1674
1673
  - spaceship/lib/spaceship/connect_api/models/certificate.rb
1675
1674
  - spaceship/lib/spaceship/connect_api/models/device.rb
1675
+ - spaceship/lib/spaceship/connect_api/models/idfa_declaration.rb
1676
1676
  - spaceship/lib/spaceship/connect_api/models/pre_release_version.rb
1677
1677
  - spaceship/lib/spaceship/connect_api/models/profile.rb
1678
+ - spaceship/lib/spaceship/connect_api/models/reset_ratings_request.rb
1678
1679
  - spaceship/lib/spaceship/connect_api/models/user.rb
1679
1680
  - spaceship/lib/spaceship/connect_api/provisioning/client.rb
1680
1681
  - spaceship/lib/spaceship/connect_api/provisioning/provisioning.rb
@@ -1682,6 +1683,8 @@ files:
1682
1683
  - spaceship/lib/spaceship/connect_api/testflight/client.rb
1683
1684
  - spaceship/lib/spaceship/connect_api/testflight/testflight.rb
1684
1685
  - spaceship/lib/spaceship/connect_api/token.rb
1686
+ - spaceship/lib/spaceship/connect_api/tunes/client.rb
1687
+ - spaceship/lib/spaceship/connect_api/tunes/tunes.rb
1685
1688
  - spaceship/lib/spaceship/connect_api/users/client.rb
1686
1689
  - spaceship/lib/spaceship/connect_api/users/users.rb
1687
1690
  - spaceship/lib/spaceship/du/du_client.rb
@@ -1802,7 +1805,7 @@ licenses:
1802
1805
  - MIT
1803
1806
  metadata:
1804
1807
  docs_url: https://docs.fastlane.tools
1805
- post_install_message:
1808
+ post_install_message:
1806
1809
  rdoc_options: []
1807
1810
  require_paths:
1808
1811
  - credentials_manager/lib
@@ -1830,12 +1833,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
1830
1833
  version: '2.4'
1831
1834
  required_rubygems_version: !ruby/object:Gem::Requirement
1832
1835
  requirements:
1833
- - - ">="
1836
+ - - ">"
1834
1837
  - !ruby/object:Gem::Version
1835
- version: '0'
1838
+ version: 1.3.1
1836
1839
  requirements: []
1837
1840
  rubygems_version: 3.0.6
1838
- signing_key:
1841
+ signing_key:
1839
1842
  specification_version: 4
1840
1843
  summary: The easiest way to automate beta deployments and releases for your iOS and
1841
1844
  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