fastlane 2.135.2 → 2.140.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +64 -64
  3. data/deliver/lib/deliver/submit_for_review.rb +7 -1
  4. data/fastlane/lib/fastlane/action.rb +2 -2
  5. data/fastlane/lib/fastlane/actions/.hockey.rb.swp +0 -0
  6. data/fastlane/lib/fastlane/actions/.slack.rb.swp +0 -0
  7. data/fastlane/lib/fastlane/actions/.update_project_provisioning.rb.swp +0 -0
  8. data/fastlane/lib/fastlane/actions/app_store_build_number.rb +1 -1
  9. data/fastlane/lib/fastlane/actions/create_pull_request.rb +42 -2
  10. data/fastlane/lib/fastlane/actions/docs/capture_android_screenshots.md +38 -4
  11. data/fastlane/lib/fastlane/actions/docs/sync_code_signing.md +19 -0
  12. data/fastlane/lib/fastlane/actions/docs/upload_to_app_store.md.erb +10 -0
  13. data/fastlane/lib/fastlane/actions/docs/upload_to_play_store.md +4 -2
  14. data/fastlane/lib/fastlane/actions/ensure_bundle_exec.rb +3 -3
  15. data/fastlane/lib/fastlane/actions/get_version_number.rb +7 -2
  16. data/fastlane/lib/fastlane/actions/gradle.rb +54 -3
  17. data/fastlane/lib/fastlane/actions/increment_version_number.rb +6 -3
  18. data/fastlane/lib/fastlane/actions/last_git_tag.rb +14 -5
  19. data/fastlane/lib/fastlane/actions/latest_testflight_build_number.rb +2 -2
  20. data/fastlane/lib/fastlane/actions/register_devices.rb +5 -1
  21. data/fastlane/lib/fastlane/actions/ruby_version.rb +1 -1
  22. data/fastlane/lib/fastlane/actions/run_tests.rb +5 -22
  23. data/fastlane/lib/fastlane/actions/setup_ci.rb +14 -8
  24. data/fastlane/lib/fastlane/actions/testfairy.rb +8 -1
  25. data/fastlane/lib/fastlane/actions/upload_to_play_store_internal_app_sharing.rb +78 -0
  26. data/fastlane/lib/fastlane/actions/verify_build.rb +1 -1
  27. data/fastlane/lib/fastlane/actions/xcode_select.rb +6 -1
  28. data/fastlane/lib/fastlane/cli_tools_distributor.rb +2 -2
  29. data/fastlane/lib/fastlane/commands_generator.rb +1 -1
  30. data/fastlane/lib/fastlane/helper/adb_helper.rb +13 -4
  31. data/fastlane/lib/fastlane/plugins/template/.rubocop.yml +1 -0
  32. data/fastlane/lib/fastlane/runner.rb +23 -18
  33. data/fastlane/lib/fastlane/swift_fastlane_function.rb +9 -0
  34. data/fastlane/lib/fastlane/version.rb +1 -1
  35. data/fastlane/swift/Deliverfile.swift +1 -1
  36. data/fastlane/swift/Fastlane.swift +130 -28
  37. data/fastlane/swift/FastlaneSwiftRunner/FastlaneSwiftRunner.xcodeproj/project.xcworkspace/xcuserdata/josh.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  38. data/fastlane/swift/Gymfile.swift +1 -1
  39. data/fastlane/swift/Matchfile.swift +1 -1
  40. data/fastlane/swift/MatchfileProtocol.swift +6 -2
  41. data/fastlane/swift/Precheckfile.swift +1 -1
  42. data/fastlane/swift/Scanfile.swift +1 -1
  43. data/fastlane/swift/ScanfileProtocol.swift +13 -1
  44. data/fastlane/swift/Screengrabfile.swift +1 -1
  45. data/fastlane/swift/ScreengrabfileProtocol.swift +14 -2
  46. data/fastlane/swift/Snapshotfile.swift +1 -1
  47. data/fastlane_core/lib/fastlane_core/.build_watcher.rb.swp +0 -0
  48. data/fastlane_core/lib/fastlane_core/build_watcher.rb +6 -2
  49. data/fastlane_core/lib/fastlane_core/device_manager.rb +20 -0
  50. data/fastlane_core/lib/fastlane_core/helper.rb +7 -1
  51. data/frameit/lib/frameit/editor.rb +3 -0
  52. data/gym/lib/gym/generators/build_command_generator.rb +1 -0
  53. data/gym/lib/gym/runner.rb +38 -19
  54. data/match/lib/match/options.rb +8 -0
  55. data/match/lib/match/runner.rb +1 -0
  56. data/match/lib/match/storage/git_storage.rb +7 -2
  57. data/pilot/lib/pilot/.manager.rb.swp +0 -0
  58. data/pilot/lib/pilot/build_manager.rb +46 -12
  59. data/pilot/lib/pilot/options.rb +3 -1
  60. data/scan/lib/scan/detect_values.rb +6 -1
  61. data/scan/lib/scan/manager.rb +18 -1
  62. data/scan/lib/scan/options.rb +17 -0
  63. data/scan/lib/scan/runner.rb +6 -0
  64. data/scan/lib/scan/slack_poster.rb +1 -1
  65. data/scan/lib/scan/test_command_generator.rb +1 -1
  66. data/screengrab/lib/screengrab/module.rb +2 -0
  67. data/screengrab/lib/screengrab/options.rb +24 -11
  68. data/screengrab/lib/screengrab/runner.rb +79 -42
  69. data/spaceship/lib/spaceship/client.rb +9 -4
  70. data/spaceship/lib/spaceship/connect_api.rb +2 -0
  71. data/spaceship/lib/spaceship/connect_api/.DS_Store +0 -0
  72. data/spaceship/lib/spaceship/connect_api/models/app.rb +11 -0
  73. data/spaceship/lib/spaceship/connect_api/models/beta_feedback.rb +71 -0
  74. data/spaceship/lib/spaceship/connect_api/models/beta_screenshot.rb +18 -0
  75. data/spaceship/lib/spaceship/connect_api/models/build.rb +5 -0
  76. data/spaceship/lib/spaceship/connect_api/models/build_beta_detail.rb +5 -0
  77. data/spaceship/lib/spaceship/connect_api/testflight/testflight.rb +9 -0
  78. data/spaceship/lib/spaceship/portal/.certificate.rb.swp +0 -0
  79. data/spaceship/lib/spaceship/tunes/iap.rb +11 -11
  80. data/spaceship/lib/spaceship/tunes/iap_detail.rb +7 -3
  81. data/spaceship/lib/spaceship/tunes/iap_families.rb +12 -1
  82. data/spaceship/lib/spaceship/tunes/iap_family_details.rb +26 -17
  83. data/spaceship/lib/spaceship/tunes/tunes_client.rb +4 -7
  84. data/supply/lib/supply/client.rb +27 -0
  85. data/supply/lib/supply/options.rb +8 -2
  86. data/supply/lib/supply/uploader.rb +82 -33
  87. metadata +49 -26
  88. data/supply/lib/supply/.options.rb.swp +0 -0
  89. data/supply/lib/supply/.uploader.rb.swp +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bc8a348892470f7c95c046a30e878eeb46a3364e29266d6e2eede8820cda60c9
4
- data.tar.gz: a33412ac7217f0dfe530dcbee955c80c3290cdacabaef708ae9a755008470863
3
+ metadata.gz: 8475d80e9f0452ef7ac3c90a50b82dc52b110235819d0d422783984a5a2e3241
4
+ data.tar.gz: ccfd6ed3734d272250f69816ca5fa408af1102e83336f5e50d8a818ee81e569f
5
5
  SHA512:
6
- metadata.gz: f1eb4a8112757f60290d56eb206f26039b5c47abf1999cd09fcfe29eb308596aa8e117057c4ea09e651c2d63526effae43ff9e0b8d577ce155fe9ff36a110e83
7
- data.tar.gz: f071dcaa3f3a11baa944d5c6408a544a3f7f42d76ec9bdfa32d2a962717242587583e958d8bbd4c2dade656d0b95779c971ddaaabdb0f49da42a3ebcd4171b0b
6
+ metadata.gz: 723bba1783d4fcc2f466010f29d2becae0384549ba9593113cf543bc4642e485c25fa7be07a825d75102d14d0e058819ddb2af52ed026bc425f693310ca9d7e3
7
+ data.tar.gz: 6ffd0b1013c0b31e2ce53789bc855f2a09809bdb8bbb1294f05be06bd356ce390e7b51a77fc61c1cd123b921a3af0ea65d8d36df471a0a72306e454eeb2e041b
data/README.md CHANGED
@@ -34,11 +34,11 @@ If the above doesn't help, please [submit an issue](https://github.com/fastlane/
34
34
  <!-- This table is regenerated and resorted on each release -->
35
35
  <table id='team'>
36
36
  <tr>
37
- <td id='iulian-onofrei'>
38
- <a href='https://github.com/revolter'>
39
- <img src='https://github.com/revolter.png?size=140'>
37
+ <td id='olivier-halligon'>
38
+ <a href='https://github.com/AliSoftware'>
39
+ <img src='https://github.com/AliSoftware.png?size=140'>
40
40
  </a>
41
- <h4 align='center'><a href='https://twitter.com/Revolt666'>Iulian Onofrei</a></h4>
41
+ <h4 align='center'><a href='https://twitter.com/aligatr'>Olivier Halligon</a></h4>
42
42
  </td>
43
43
  <td id='stefan-natchev'>
44
44
  <a href='https://github.com/snatchev'>
@@ -52,32 +52,6 @@ If the above doesn't help, please [submit an issue](https://github.com/fastlane/
52
52
  </a>
53
53
  <h4 align='center'><a href='https://twitter.com/minuscorp'>Jorge Revuelta H</a></h4>
54
54
  </td>
55
- <td id='josh-holtz'>
56
- <a href='https://github.com/joshdholtz'>
57
- <img src='https://github.com/joshdholtz.png?size=140'>
58
- </a>
59
- <h4 align='center'><a href='https://twitter.com/joshdholtz'>Josh Holtz</a></h4>
60
- </td>
61
- <td id='danielle-tomlinson'>
62
- <a href='https://github.com/endocrimes'>
63
- <img src='https://github.com/endocrimes.png?size=140'>
64
- </a>
65
- <h4 align='center'><a href='https://twitter.com/endocrimes'>Danielle Tomlinson</a></h4>
66
- </td>
67
- </tr>
68
- <tr>
69
- <td id='joshua-liebowitz'>
70
- <a href='https://github.com/taquitos'>
71
- <img src='https://github.com/taquitos.png?size=140'>
72
- </a>
73
- <h4 align='center'><a href='https://twitter.com/taquitos'>Joshua Liebowitz</a></h4>
74
- </td>
75
- <td id='olivier-halligon'>
76
- <a href='https://github.com/AliSoftware'>
77
- <img src='https://github.com/AliSoftware.png?size=140'>
78
- </a>
79
- <h4 align='center'><a href='https://twitter.com/aligatr'>Olivier Halligon</a></h4>
80
- </td>
81
55
  <td id='maksym-grebenets'>
82
56
  <a href='https://github.com/mgrebenets'>
83
57
  <img src='https://github.com/mgrebenets.png?size=140'>
@@ -90,25 +64,19 @@ If the above doesn't help, please [submit an issue](https://github.com/fastlane/
90
64
  </a>
91
65
  <h4 align='center'><a href='https://twitter.com/lacostej'>Jérôme Lacoste</a></h4>
92
66
  </td>
93
- <td id='kohki-miki'>
94
- <a href='https://github.com/giginet'>
95
- <img src='https://github.com/giginet.png?size=140'>
96
- </a>
97
- <h4 align='center'><a href='https://twitter.com/giginet'>Kohki Miki</a></h4>
98
- </td>
99
67
  </tr>
100
68
  <tr>
101
- <td id='andrew-mcburney'>
102
- <a href='https://github.com/armcburney'>
103
- <img src='https://github.com/armcburney.png?size=140'>
69
+ <td id='josh-holtz'>
70
+ <a href='https://github.com/joshdholtz'>
71
+ <img src='https://github.com/joshdholtz.png?size=140'>
104
72
  </a>
105
- <h4 align='center'><a href='https://twitter.com/armcburney'>Andrew McBurney</a></h4>
73
+ <h4 align='center'><a href='https://twitter.com/joshdholtz'>Josh Holtz</a></h4>
106
74
  </td>
107
- <td id='luka-mirosevic'>
108
- <a href='https://github.com/lmirosevic'>
109
- <img src='https://github.com/lmirosevic.png?size=140'>
75
+ <td id='felix-krause'>
76
+ <a href='https://github.com/KrauseFx'>
77
+ <img src='https://github.com/KrauseFx.png?size=140'>
110
78
  </a>
111
- <h4 align='center'><a href='https://twitter.com/lmirosevic'>Luka Mirosevic</a></h4>
79
+ <h4 align='center'><a href='https://twitter.com/KrauseFx'>Felix Krause</a></h4>
112
80
  </td>
113
81
  <td id='jan-piotrowski'>
114
82
  <a href='https://github.com/janpio'>
@@ -116,31 +84,31 @@ If the above doesn't help, please [submit an issue](https://github.com/fastlane/
116
84
  </a>
117
85
  <h4 align='center'><a href='https://twitter.com/Sujan'>Jan Piotrowski</a></h4>
118
86
  </td>
119
- <td id='fumiya-nakamura'>
120
- <a href='https://github.com/nafu'>
121
- <img src='https://github.com/nafu.png?size=140'>
87
+ <td id='helmut-januschka'>
88
+ <a href='https://github.com/hjanuschka'>
89
+ <img src='https://github.com/hjanuschka.png?size=140'>
122
90
  </a>
123
- <h4 align='center'><a href='https://twitter.com/nafu003'>Fumiya Nakamura</a></h4>
91
+ <h4 align='center'><a href='https://twitter.com/hjanuschka'>Helmut Januschka</a></h4>
124
92
  </td>
125
- <td id='felix-krause'>
126
- <a href='https://github.com/KrauseFx'>
127
- <img src='https://github.com/KrauseFx.png?size=140'>
93
+ <td id='matthew-ellis'>
94
+ <a href='https://github.com/matthewellis'>
95
+ <img src='https://github.com/matthewellis.png?size=140'>
128
96
  </a>
129
- <h4 align='center'><a href='https://twitter.com/KrauseFx'>Felix Krause</a></h4>
97
+ <h4 align='center'><a href='https://twitter.com/mellis1995'>Matthew Ellis</a></h4>
130
98
  </td>
131
99
  </tr>
132
100
  <tr>
133
- <td id='manu-wallner'>
134
- <a href='https://github.com/milch'>
135
- <img src='https://github.com/milch.png?size=140'>
101
+ <td id='andrew-mcburney'>
102
+ <a href='https://github.com/armcburney'>
103
+ <img src='https://github.com/armcburney.png?size=140'>
136
104
  </a>
137
- <h4 align='center'><a href='https://twitter.com/acrooow'>Manu Wallner</a></h4>
105
+ <h4 align='center'><a href='https://twitter.com/armcburney'>Andrew McBurney</a></h4>
138
106
  </td>
139
- <td id='helmut-januschka'>
140
- <a href='https://github.com/hjanuschka'>
141
- <img src='https://github.com/hjanuschka.png?size=140'>
107
+ <td id='kohki-miki'>
108
+ <a href='https://github.com/giginet'>
109
+ <img src='https://github.com/giginet.png?size=140'>
142
110
  </a>
143
- <h4 align='center'><a href='https://twitter.com/hjanuschka'>Helmut Januschka</a></h4>
111
+ <h4 align='center'><a href='https://twitter.com/giginet'>Kohki Miki</a></h4>
144
112
  </td>
145
113
  <td id='jimmy-dee'>
146
114
  <a href='https://github.com/jdee'>
@@ -154,11 +122,43 @@ If the above doesn't help, please [submit an issue](https://github.com/fastlane/
154
122
  </a>
155
123
  <h4 align='center'><a href='https://twitter.com/getaaron'>Aaron Brager</a></h4>
156
124
  </td>
157
- <td id='matthew-ellis'>
158
- <a href='https://github.com/matthewellis'>
159
- <img src='https://github.com/matthewellis.png?size=140'>
125
+ <td id='fumiya-nakamura'>
126
+ <a href='https://github.com/nafu'>
127
+ <img src='https://github.com/nafu.png?size=140'>
160
128
  </a>
161
- <h4 align='center'><a href='https://twitter.com/mellis1995'>Matthew Ellis</a></h4>
129
+ <h4 align='center'><a href='https://twitter.com/nafu003'>Fumiya Nakamura</a></h4>
130
+ </td>
131
+ </tr>
132
+ <tr>
133
+ <td id='joshua-liebowitz'>
134
+ <a href='https://github.com/taquitos'>
135
+ <img src='https://github.com/taquitos.png?size=140'>
136
+ </a>
137
+ <h4 align='center'><a href='https://twitter.com/taquitos'>Joshua Liebowitz</a></h4>
138
+ </td>
139
+ <td id='iulian-onofrei'>
140
+ <a href='https://github.com/revolter'>
141
+ <img src='https://github.com/revolter.png?size=140'>
142
+ </a>
143
+ <h4 align='center'><a href='https://twitter.com/Revolt666'>Iulian Onofrei</a></h4>
144
+ </td>
145
+ <td id='danielle-tomlinson'>
146
+ <a href='https://github.com/endocrimes'>
147
+ <img src='https://github.com/endocrimes.png?size=140'>
148
+ </a>
149
+ <h4 align='center'><a href='https://twitter.com/endocrimes'>Danielle Tomlinson</a></h4>
150
+ </td>
151
+ <td id='manu-wallner'>
152
+ <a href='https://github.com/milch'>
153
+ <img src='https://github.com/milch.png?size=140'>
154
+ </a>
155
+ <h4 align='center'><a href='https://twitter.com/acrooow'>Manu Wallner</a></h4>
156
+ </td>
157
+ <td id='luka-mirosevic'>
158
+ <a href='https://github.com/lmirosevic'>
159
+ <img src='https://github.com/lmirosevic.png?size=140'>
160
+ </a>
161
+ <h4 align='center'><a href='https://twitter.com/lmirosevic'>Luka Mirosevic</a></h4>
162
162
  </td>
163
163
  </tr>
164
164
  </table>
@@ -58,11 +58,17 @@ module Deliver
58
58
  start = Time.now
59
59
  build = nil
60
60
 
61
+ use_latest_version = app_version.nil?
62
+
61
63
  loop do
62
64
  # Sometimes candidate_builds don't appear immediately after submission
63
65
  # Wait for candidate_builds to appear on App Store Connect
64
66
  # Issue https://github.com/fastlane/fastlane/issues/10411
65
- candidate_builds = app.latest_version.candidate_builds
67
+ if use_latest_version
68
+ candidate_builds = app.latest_version.candidate_builds
69
+ else
70
+ candidate_builds = app.tunes_all_builds_for_train(train: app_version)
71
+ end
66
72
  if (candidate_builds || []).count == 0
67
73
  UI.message("Waiting for candidate builds to appear...")
68
74
  if (Time.now - start) > (60 * 5)
@@ -110,7 +110,7 @@ module Fastlane
110
110
 
111
111
  # Is printed out in the Steps: output in the terminal
112
112
  # Return nil if you don't want any logging in the terminal/JUnit Report
113
- def self.step_text
113
+ def self.step_text(params)
114
114
  self.action_name
115
115
  end
116
116
 
@@ -121,7 +121,7 @@ module Fastlane
121
121
 
122
122
  # instead of "AddGitAction", this will return "add_git" to print it to the user
123
123
  def self.action_name
124
- self.name.split('::').last.gsub('Action', '').fastlane_underscore
124
+ self.name.split('::').last.gsub(/Action$/, '').fastlane_underscore
125
125
  end
126
126
 
127
127
  def self.lane_context
@@ -24,7 +24,7 @@ module Fastlane
24
24
  Spaceship::Tunes.select_team(team_id: params[:team_id], team_name: params[:team_name])
25
25
  UI.message("Login successful")
26
26
 
27
- app = Spaceship::Tunes::Application.find(params[:app_identifier])
27
+ app = Spaceship::Tunes::Application.find(params[:app_identifier], mac: params[:platform] == "osx")
28
28
  UI.user_error!("Could not find an app on App Store Connect with app_identifier: #{params[:app_identifier]}") unless app
29
29
  if params[:live]
30
30
  UI.message("Fetching the latest build number for live-version")
@@ -2,6 +2,7 @@ module Fastlane
2
2
  module Actions
3
3
  module SharedValues
4
4
  CREATE_PULL_REQUEST_HTML_URL = :CREATE_PULL_REQUEST_HTML_URL
5
+ CREATE_PULL_REQUEST_NUMBER = :CREATE_PULL_REQUEST_NUMBER
5
6
  end
6
7
 
7
8
  class CreatePullRequestAction < Action
@@ -39,7 +40,11 @@ module Fastlane
39
40
  # Add assignees to pull request
40
41
  add_assignees(params, number) if params[:assignees]
41
42
 
43
+ # Add reviewers to pull request
44
+ add_reviewers(params, number) if params[:reviewers] || params[:team_reviewers]
45
+
42
46
  Actions.lane_context[SharedValues::CREATE_PULL_REQUEST_HTML_URL] = html_url
47
+ Actions.lane_context[SharedValues::CREATE_PULL_REQUEST_NUMBER] = number
43
48
  return html_url
44
49
  end
45
50
  end
@@ -82,6 +87,30 @@ module Fastlane
82
87
  )
83
88
  end
84
89
 
90
+ def self.add_reviewers(params, number)
91
+ payload = {}
92
+ if params[:reviewers]
93
+ payload["reviewers"] = params[:reviewers]
94
+ end
95
+
96
+ if params[:team_reviewers]
97
+ payload["team_reviewers"] = params[:team_reviewers]
98
+ end
99
+ GithubApiAction.run(
100
+ server_url: params[:api_url],
101
+ api_token: params[:api_token],
102
+ http_method: 'POST',
103
+ path: "repos/#{params[:repo]}/pulls/#{number}/requested_reviewers",
104
+ body: payload,
105
+ error_handlers: {
106
+ '*' => proc do |result|
107
+ UI.error("GitHub responded with #{result[:status]}: #{result[:body]}")
108
+ return nil
109
+ end
110
+ }
111
+ )
112
+ end
113
+
85
114
  #####################################################
86
115
  # @!group Documentation
87
116
  #####################################################
@@ -92,7 +121,8 @@ module Fastlane
92
121
 
93
122
  def self.output
94
123
  [
95
- ['CREATE_PULL_REQUEST_HTML_URL', 'The HTML URL to the created pull request']
124
+ ['CREATE_PULL_REQUEST_HTML_URL', 'The HTML URL to the created pull request'],
125
+ ['CREATE_PULL_REQUEST_NUMBER', 'The identifier number of the created pull request']
96
126
  ]
97
127
  end
98
128
 
@@ -152,12 +182,22 @@ module Fastlane
152
182
  env_name: "GITHUB_PULL_REQUEST_ASSIGNEES",
153
183
  description: "The assignees for the pull request",
154
184
  type: Array,
185
+ optional: true),
186
+ FastlaneCore::ConfigItem.new(key: :reviewers,
187
+ env_name: "GITHUB_PULL_REQUEST_REVIEWERS",
188
+ description: "The reviewers (slug) for the pull request",
189
+ type: Array,
190
+ optional: true),
191
+ FastlaneCore::ConfigItem.new(key: :team_reviewers,
192
+ env_name: "GITHUB_PULL_REQUEST_TEAM_REVIEWERS",
193
+ description: "The team reviewers (slug) for the pull request",
194
+ type: Array,
155
195
  optional: true)
156
196
  ]
157
197
  end
158
198
 
159
199
  def self.author
160
- ["seei", "tommeier", "marumemomo"]
200
+ ["seei", "tommeier", "marumemomo", "elneruda"]
161
201
  end
162
202
 
163
203
  def self.is_supported?(platform)
@@ -26,11 +26,13 @@ sudo gem install fastlane
26
26
 
27
27
  ##### Gradle dependency
28
28
  ```java
29
- androidTestCompile('tools.fastlane:screengrab:x.x.x')
29
+ androidTestImplementation 'tools.fastlane:screengrab:x.x.x'
30
30
  ```
31
31
 
32
32
  The latest version is [ ![Download](https://api.bintray.com/packages/fastlane/fastlane/screengrab/images/download.svg) ](https://bintray.com/fastlane/fastlane/screengrab/_latestVersion)
33
33
 
34
+ As of Screengrab version 2.0.0, all Android test dependencies are AndroidX dependencies. This means a device with API 18+, Android 4.3 or greater is required. If you wish to capture screenshots with an older Android OS, then you must use a 1.x.x version.
35
+
34
36
  ##### Configuring your Manifest Permissions
35
37
 
36
38
  Ensure that the following permissions exist in your **src/debug/AndroidManifest.xml**
@@ -82,10 +84,10 @@ As of _screengrab_ 0.5.0, you can specify different strategies to control the wa
82
84
  * Multi-window situations are correctly captured (dialogs, etc.)
83
85
  * Works on Android N
84
86
 
85
- However, UI Automator requires a device with **API level >= 18**, so it is not yet the default strategy. To enable it for all screenshots by default, make the following call before your tests run:
87
+ UI Automator is the default strategy. However, UI Automator requires a device with **API level >= 18**. If you need to grab screenshots on an older Android version, use the latest 1.x.x version of this library and set the DecorView ScreenshotStrategy.
86
88
 
87
89
  ```java
88
- Screengrab.setDefaultScreenshotStrategy(new UiAutomatorScreenshotStrategy());
90
+ Screengrab.setDefaultScreenshotStrategy(new DecorViewScreenshotStrategy());
89
91
  ```
90
92
 
91
93
  ## Improved screenshot capture with Falcon
@@ -169,7 +171,39 @@ If you're having trouble getting your device unlocked and the screen activated t
169
171
 
170
172
  ## Clean Status Bar
171
173
 
172
- You can use [QuickDemo](https://github.com/PSPDFKit-labs/QuickDemo) to clean up the status bar for your screenshots.
174
+ Screengrab can clean your status bar to make your screenshots even more beautiful.
175
+ Note: the clean status bar feature is only supported on devices with *API level >= 23*.
176
+
177
+ To use the clean status bar feature add the following lines to your src/debug/AndroidManifest.xml
178
+ ```xml
179
+ <!-- Indicates the use of the clean status bar feature -->
180
+ <uses-feature android:name="tools.fastlane.screengrab.cleanstatusbar"/>
181
+ <!-- Allows for changing the status bar -->
182
+ <uses-permission android:name="android.permission.DUMP"/>
183
+ ```
184
+
185
+ After that you can enable and disable the clean status bar at any moment during your tests.
186
+ In most cases you probably want to do this in the @BeforeClass and @AfterClass methods.
187
+ ```java
188
+ @BeforeClass
189
+ public static void beforeAll() {
190
+ CleanStatusBar.enableWithDefaults();
191
+ }
192
+
193
+ @AfterClass
194
+ public static void afterAll() {
195
+ CleanStatusBar.disable();
196
+ }
197
+ ```
198
+
199
+ Have a look at the methods of the `CleanStatusBar` class to customize the status bar even more.
200
+ You could for example show the Bluetooth icon and the LTE text.
201
+ ```java
202
+ new CleanStatusBar()
203
+ .setBluetoothState(BluetoothState.DISCONNECTED)
204
+ .setMobileNetworkDataType(MobileDataType.LTE)
205
+ .enable();
206
+ ```
173
207
 
174
208
  # Advanced _screengrab_
175
209
 
@@ -111,6 +111,25 @@ match
111
111
 
112
112
  You can find more information about GitHub basic authentication and personal token generation here: [https://developer.github.com/v3/auth/#basic-authentication](https://developer.github.com/v3/auth/#basic-authentication)
113
113
 
114
+ ##### Git Storage on Azure Devops
115
+
116
+ If you're running a pipeline on Azure Devops and using git storage in a another repository on the same project, you might want to use `bearer` token authentication.
117
+
118
+ Using parameter:
119
+
120
+ ```
121
+ match(git_bearer_authorization: '<YOUR TOKEN>')
122
+ ```
123
+
124
+ Using environment variable:
125
+
126
+ ```
127
+ ENV['MATCH_GIT_BEARER_AUTHORIZATION'] = '<YOUR TOKEN>'
128
+ match
129
+ ```
130
+
131
+ You can find more information about this use case here: [https://docs.microsoft.com/en-us/azure/devops/pipelines/repos/azure-repos-git?view=azure-devops&tabs=yaml#authorize-access-to-your-repositories](https://docs.microsoft.com/en-us/azure/devops/pipelines/repos/azure-repos-git?view=azure-devops&tabs=yaml#authorize-access-to-your-repositories)
132
+
114
133
  #### Google Cloud Storage
115
134
 
116
135
  Use [Google Cloud Storage](https://cloud.google.com/storage/) for a fully hosted solution for your code signing identities. Certificates are stored on Google Cloud, encrypted using Google managed keys. Everything will be stored on your Google account, inside a storage bucket you provide. You can also directly access the files using the web console.
@@ -706,6 +706,16 @@ DELIVER_ITMSTRANSPORTER_ADDITIONAL_UPLOAD_PARAMETERS="-t DAV" fastlane deliver
706
706
  ## HTTP Proxy
707
707
  iTunes Transporter is a Java application bundled with Xcode. In addition to utilizing the `DELIVER_ITMSTRANSPORTER_ADDITIONAL_UPLOAD_PARAMETERS="-t DAV"`, you need to configure the transporter application to use the proxy independently from the system proxy or any environment proxy settings. You can find the configuration file within Xcode:
708
708
 
709
+ **for Xcode11 and later**
710
+
711
+ ```no-highlight
712
+ TOOLS_PATH=$( xcode-select -p )
713
+ REL_PATH='../SharedFrameworks/ContentDeliveryServices.framework/Versions/A/itms/java/lib/net.properties'
714
+ echo "$TOOLS_PATH/$REL_PATH"
715
+ ```
716
+
717
+ **for Xcode10 or earlier**
718
+
709
719
  ```no-highlight
710
720
  TOOLS_PATH=$( xcode-select -p )
711
721
  REL_PATH='../Applications/Application Loader.app/Contents/itms/java/lib/net.properties'
@@ -136,7 +136,7 @@ Note that these will replace the current images and screenshots on the play stor
136
136
 
137
137
  ## Changelogs (What's new)
138
138
 
139
- You can add changelog files under the `changelogs/` directory for each locale. The filename should exactly match the [version code](https://developer.android.com/studio/publish/versioning#appversioning) of the APK that it represents. `fastlane supply init` will populate changelog files from existing data on Google Play if no `metadata/` directory exists when it is run.
139
+ You can add changelog files under the `changelogs/` directory for each locale. The filename should exactly match the [version code](https://developer.android.com/studio/publish/versioning#appversioning) of the APK that it represents. You can also provide default notes that will be used if no files match the version code by adding a `default.txt` file. `fastlane supply init` will populate changelog files from existing data on Google Play if no `metadata/` directory exists when it is run.
140
140
 
141
141
  ```no-highlight
142
142
  └── fastlane
@@ -144,10 +144,12 @@ You can add changelog files under the `changelogs/` directory for each locale. T
144
144
  └── android
145
145
  ├── en-US
146
146
  │ └── changelogs
147
+ │ ├── default.txt
147
148
  │ ├── 100000.txt
148
149
  │ └── 100100.txt
149
150
  └── fr-FR
150
151
  └── changelogs
152
+ ├── default.txt
151
153
  └── 100100.txt
152
154
  ```
153
155
 
@@ -168,7 +170,7 @@ Before performing a new APK upload you may want to check existing track version
168
170
  - Used when uploading with `:apk_path`, `:apk_paths`, `:aab_path`, and `:aab_paths`
169
171
  - Can be any string such (example: "October Release" or "Awesome New Feature")
170
172
  - Defaults to the version name in app/build.gradle or AndroidManifest.xml
171
- - `:release_status`
173
+ - `:release_status`
172
174
  - Used when uploading with `:apk_path`, `:apk_paths`, `:aab_path`, and `:aab_paths`
173
175
  - Can set as "draft" to complete the release at some other time
174
176
  - Defaults to "completed"