fastlane 2.126.0.beta.20190623200100 → 2.126.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +76 -76
  3. data/fastlane/lib/fastlane/actions/.slack.rb.swp +0 -0
  4. data/fastlane/lib/fastlane/actions/.update_project_provisioning.rb.swp +0 -0
  5. data/fastlane/lib/fastlane/actions/app_store_build_number.rb +1 -2
  6. data/fastlane/lib/fastlane/actions/oclint.rb +9 -2
  7. data/fastlane/lib/fastlane/actions/reset_simulator_contents.rb +34 -27
  8. data/fastlane/lib/fastlane/lane_manager_base.rb +4 -1
  9. data/fastlane/lib/fastlane/version.rb +1 -1
  10. data/fastlane/swift/Deliverfile.swift +1 -1
  11. data/fastlane/swift/DeliverfileProtocol.swift +3 -1
  12. data/fastlane/swift/Fastlane.swift +19 -5
  13. data/fastlane/swift/FastlaneSwiftRunner/FastlaneSwiftRunner.xcodeproj/project.xcworkspace/xcuserdata/josh.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  14. data/fastlane/swift/Gymfile.swift +1 -1
  15. data/fastlane/swift/Matchfile.swift +1 -1
  16. data/fastlane/swift/Precheckfile.swift +1 -1
  17. data/fastlane/swift/Scanfile.swift +1 -1
  18. data/fastlane/swift/ScanfileProtocol.swift +3 -1
  19. data/fastlane/swift/Screengrabfile.swift +1 -1
  20. data/fastlane/swift/Snapshotfile.swift +1 -1
  21. data/fastlane_core/lib/fastlane_core/.build_watcher.rb.swp +0 -0
  22. data/fastlane_core/lib/fastlane_core/build_watcher.rb +2 -2
  23. data/pilot/lib/pilot/.build_manager.rb.swp +0 -0
  24. data/pilot/lib/pilot/.manager.rb.swp +0 -0
  25. data/pilot/lib/pilot/.tester_manager.rb.swp +0 -0
  26. data/pilot/lib/pilot/build_manager.rb +9 -14
  27. data/pilot/lib/pilot/manager.rb +2 -2
  28. data/pilot/lib/pilot/tester_exporter.rb +3 -3
  29. data/pilot/lib/pilot/tester_manager.rb +2 -2
  30. data/scan/lib/scan/options.rb +7 -1
  31. data/scan/lib/scan/test_command_generator.rb +1 -1
  32. data/snapshot/lib/assets/SnapshotHelper.swift +10 -4
  33. data/spaceship/lib/spaceship/connect_api.rb +42 -0
  34. data/spaceship/lib/spaceship/connect_api/.DS_Store +0 -0
  35. data/spaceship/lib/spaceship/connect_api/client.rb +178 -0
  36. data/spaceship/lib/spaceship/connect_api/model.rb +1 -15
  37. data/spaceship/lib/spaceship/connect_api/models/app.rb +97 -0
  38. data/spaceship/lib/spaceship/connect_api/models/beta_app_localization.rb +28 -0
  39. data/spaceship/lib/spaceship/connect_api/models/beta_app_review_detail.rb +32 -0
  40. data/spaceship/lib/spaceship/connect_api/models/beta_app_review_submission.rb +26 -0
  41. data/spaceship/lib/spaceship/connect_api/models/beta_build_localization.rb +20 -0
  42. data/spaceship/lib/spaceship/connect_api/models/beta_build_metric.rb +24 -0
  43. data/spaceship/lib/spaceship/connect_api/models/beta_group.rb +41 -0
  44. data/spaceship/lib/spaceship/connect_api/models/beta_tester.rb +56 -0
  45. data/spaceship/lib/spaceship/connect_api/models/beta_tester_metric.rb +43 -0
  46. data/spaceship/lib/spaceship/connect_api/models/build.rb +144 -0
  47. data/spaceship/lib/spaceship/connect_api/models/build_beta_detail.rb +56 -0
  48. data/spaceship/lib/spaceship/connect_api/models/build_delivery.rb +36 -0
  49. data/spaceship/lib/spaceship/connect_api/models/bundle_id.rb +46 -0
  50. data/spaceship/lib/spaceship/connect_api/models/bundle_id_capability.rb +37 -0
  51. data/spaceship/lib/spaceship/connect_api/models/certificate.rb +48 -0
  52. data/spaceship/lib/spaceship/connect_api/models/device.rb +53 -0
  53. data/spaceship/lib/spaceship/connect_api/models/pre_release_version.rb +20 -0
  54. data/spaceship/lib/spaceship/connect_api/models/profile.rb +60 -0
  55. data/spaceship/lib/spaceship/connect_api/models/user.rb +50 -0
  56. data/spaceship/lib/spaceship/connect_api/provisioning/client.rb +59 -0
  57. data/spaceship/lib/spaceship/connect_api/provisioning/provisioning.rb +48 -0
  58. data/spaceship/lib/spaceship/connect_api/response.rb +1 -1
  59. data/spaceship/lib/spaceship/connect_api/testflight/client.rb +18 -538
  60. data/spaceship/lib/spaceship/connect_api/testflight/testflight.rb +314 -19
  61. data/spaceship/lib/spaceship/connect_api/token.rb +13 -1
  62. data/spaceship/lib/spaceship/connect_api/users/client.rb +33 -0
  63. data/spaceship/lib/spaceship/connect_api/users/users.rb +16 -0
  64. data/spaceship/lib/spaceship/test_flight/build.rb +2 -2
  65. data/spaceship/lib/spaceship/test_flight/build_trains.rb +5 -56
  66. metadata +64 -48
  67. data/spaceship/lib/spaceship/connect_api/testflight/base.rb +0 -41
  68. data/spaceship/lib/spaceship/connect_api/testflight/models/app.rb +0 -99
  69. data/spaceship/lib/spaceship/connect_api/testflight/models/beta_app_localization.rb +0 -30
  70. data/spaceship/lib/spaceship/connect_api/testflight/models/beta_app_review_detail.rb +0 -34
  71. data/spaceship/lib/spaceship/connect_api/testflight/models/beta_app_review_submission.rb +0 -28
  72. data/spaceship/lib/spaceship/connect_api/testflight/models/beta_build_localization.rb +0 -22
  73. data/spaceship/lib/spaceship/connect_api/testflight/models/beta_build_metric.rb +0 -26
  74. data/spaceship/lib/spaceship/connect_api/testflight/models/beta_group.rb +0 -43
  75. data/spaceship/lib/spaceship/connect_api/testflight/models/beta_tester.rb +0 -58
  76. data/spaceship/lib/spaceship/connect_api/testflight/models/beta_tester_metric.rb +0 -45
  77. data/spaceship/lib/spaceship/connect_api/testflight/models/build.rb +0 -146
  78. data/spaceship/lib/spaceship/connect_api/testflight/models/build_beta_detail.rb +0 -58
  79. data/spaceship/lib/spaceship/connect_api/testflight/models/build_delivery.rb +0 -38
  80. data/spaceship/lib/spaceship/connect_api/testflight/models/pre_release_version.rb +0 -22
  81. data/spaceship/lib/spaceship/connect_api/testflight/models/user.rb +0 -52
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: cc7a124eba85b8a79ba5ab85b8ba1faab31f86a1
4
- data.tar.gz: 3b5cfcf24a8a256da0ca74e0cdefa94d23adbaa7
2
+ SHA256:
3
+ metadata.gz: cdfbc78fda60bc0c3260cd37e538a61d05c3eb997b46b9827e69457b9162aa99
4
+ data.tar.gz: 154cc1d2687a54fb42e9815dca4c860d66cb3a49aff5e941e67afd14bfe041c6
5
5
  SHA512:
6
- metadata.gz: 5a2e0585ecde084657c8aeffdffbaab39d50094386d6409715b42e64adc39108e649c2e29495e576b9549c3dd6dc59bd74d154268bd1bdd166d86cdef9231889
7
- data.tar.gz: b127e6d7f42dc1ac7437f3821f47cbd07ff80bf39cebd13135fd0410547be51a2dcd2afaf1ef066cfd2b8e8f7ebd3280aa395c27ef4a8c6a0efefc3b253714c3
6
+ metadata.gz: 3ab42acce455d0e4ea730462c6c9aa9ba2c499c7cdf40638d51a1b0beac47c83d7f4de6ed05a0b1a0a848c403b55ca0006065bfdc8965ec76ea0452a9fca01c6
7
+ data.tar.gz: 2e69d93435ea13cff7867cd2f9befa6714e20b009e0e054d98785ae4439387f376ce4a8914f5eb1179d420d4ec0a8353023d47e09f426c90ae69f17c432f5e15
data/README.md CHANGED
@@ -34,23 +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='maksym-grebenets'>
38
- <a href='https://github.com/mgrebenets'>
39
- <img src='https://github.com/mgrebenets.png?size=140'>
40
- </a>
41
- <h4 align='center'><a href='https://twitter.com/mgrebenets'>Maksym Grebenets</a></h4>
42
- </td>
43
- <td id='andrew-mcburney'>
44
- <a href='https://github.com/armcburney'>
45
- <img src='https://github.com/armcburney.png?size=140'>
46
- </a>
47
- <h4 align='center'><a href='https://twitter.com/armcburney'>Andrew McBurney</a></h4>
48
- </td>
49
- <td id='manu-wallner'>
50
- <a href='https://github.com/milch'>
51
- <img src='https://github.com/milch.png?size=140'>
37
+ <td id='danielle-tomlinson'>
38
+ <a href='https://github.com/endocrimes'>
39
+ <img src='https://github.com/endocrimes.png?size=140'>
52
40
  </a>
53
- <h4 align='center'><a href='https://twitter.com/acrooow'>Manu Wallner</a></h4>
41
+ <h4 align='center'><a href='https://twitter.com/endocrimes'>Danielle Tomlinson</a></h4>
54
42
  </td>
55
43
  <td id='fumiya-nakamura'>
56
44
  <a href='https://github.com/nafu'>
@@ -58,25 +46,17 @@ If the above doesn't help, please [submit an issue](https://github.com/fastlane/
58
46
  </a>
59
47
  <h4 align='center'><a href='https://twitter.com/nafu003'>Fumiya Nakamura</a></h4>
60
48
  </td>
61
- <td id='luka-mirosevic'>
62
- <a href='https://github.com/lmirosevic'>
63
- <img src='https://github.com/lmirosevic.png?size=140'>
64
- </a>
65
- <h4 align='center'><a href='https://twitter.com/lmirosevic'>Luka Mirosevic</a></h4>
66
- </td>
67
- </tr>
68
- <tr>
69
- <td id='iulian-onofrei'>
70
- <a href='https://github.com/revolter'>
71
- <img src='https://github.com/revolter.png?size=140'>
49
+ <td id='olivier-halligon'>
50
+ <a href='https://github.com/AliSoftware'>
51
+ <img src='https://github.com/AliSoftware.png?size=140'>
72
52
  </a>
73
- <h4 align='center'><a href='https://twitter.com/Revolt666'>Iulian Onofrei</a></h4>
53
+ <h4 align='center'><a href='https://twitter.com/aligatr'>Olivier Halligon</a></h4>
74
54
  </td>
75
- <td id='danielle-tomlinson'>
76
- <a href='https://github.com/endocrimes'>
77
- <img src='https://github.com/endocrimes.png?size=140'>
55
+ <td id='joshua-liebowitz'>
56
+ <a href='https://github.com/taquitos'>
57
+ <img src='https://github.com/taquitos.png?size=140'>
78
58
  </a>
79
- <h4 align='center'><a href='https://twitter.com/endocrimes'>Danielle Tomlinson</a></h4>
59
+ <h4 align='center'><a href='https://twitter.com/taquitos'>Joshua Liebowitz</a></h4>
80
60
  </td>
81
61
  <td id='josh-holtz'>
82
62
  <a href='https://github.com/joshdholtz'>
@@ -84,81 +64,101 @@ If the above doesn't help, please [submit an issue](https://github.com/fastlane/
84
64
  </a>
85
65
  <h4 align='center'><a href='https://twitter.com/joshdholtz'>Josh Holtz</a></h4>
86
66
  </td>
87
- <td id='jimmy-dee'>
88
- <a href='https://github.com/jdee'>
89
- <img src='https://github.com/jdee.png?size=140'>
67
+ </tr>
68
+ <tr>
69
+ <td id='manu-wallner'>
70
+ <a href='https://github.com/milch'>
71
+ <img src='https://github.com/milch.png?size=140'>
90
72
  </a>
91
- <h4 align='center'>Jimmy Dee</h4>
73
+ <h4 align='center'><a href='https://twitter.com/acrooow'>Manu Wallner</a></h4>
92
74
  </td>
93
- <td id='jérôme-lacoste'>
94
- <a href='https://github.com/lacostej'>
95
- <img src='https://github.com/lacostej.png?size=140'>
75
+ <td id='jorge-revuelta-h'>
76
+ <a href='https://github.com/minuscorp'>
77
+ <img src='https://github.com/minuscorp.png?size=140'>
96
78
  </a>
97
- <h4 align='center'><a href='https://twitter.com/lacostej'>Jérôme Lacoste</a></h4>
79
+ <h4 align='center'><a href='https://twitter.com/minuscorp'>Jorge Revuelta H</a></h4>
80
+ </td>
81
+ <td id='matthew-ellis'>
82
+ <a href='https://github.com/matthewellis'>
83
+ <img src='https://github.com/matthewellis.png?size=140'>
84
+ </a>
85
+ <h4 align='center'><a href='https://twitter.com/mellis1995'>Matthew Ellis</a></h4>
86
+ </td>
87
+ <td id='iulian-onofrei'>
88
+ <a href='https://github.com/revolter'>
89
+ <img src='https://github.com/revolter.png?size=140'>
90
+ </a>
91
+ <h4 align='center'><a href='https://twitter.com/Revolt666'>Iulian Onofrei</a></h4>
98
92
  </td>
99
- </tr>
100
- <tr>
101
93
  <td id='kohki-miki'>
102
94
  <a href='https://github.com/giginet'>
103
95
  <img src='https://github.com/giginet.png?size=140'>
104
96
  </a>
105
97
  <h4 align='center'><a href='https://twitter.com/giginet'>Kohki Miki</a></h4>
106
98
  </td>
107
- <td id='helmut-januschka'>
108
- <a href='https://github.com/hjanuschka'>
109
- <img src='https://github.com/hjanuschka.png?size=140'>
99
+ </tr>
100
+ <tr>
101
+ <td id='jan-piotrowski'>
102
+ <a href='https://github.com/janpio'>
103
+ <img src='https://github.com/janpio.png?size=140'>
110
104
  </a>
111
- <h4 align='center'><a href='https://twitter.com/hjanuschka'>Helmut Januschka</a></h4>
105
+ <h4 align='center'><a href='https://twitter.com/Sujan'>Jan Piotrowski</a></h4>
112
106
  </td>
113
- <td id='joshua-liebowitz'>
114
- <a href='https://github.com/taquitos'>
115
- <img src='https://github.com/taquitos.png?size=140'>
107
+ <td id='andrew-mcburney'>
108
+ <a href='https://github.com/armcburney'>
109
+ <img src='https://github.com/armcburney.png?size=140'>
116
110
  </a>
117
- <h4 align='center'><a href='https://twitter.com/taquitos'>Joshua Liebowitz</a></h4>
111
+ <h4 align='center'><a href='https://twitter.com/armcburney'>Andrew McBurney</a></h4>
118
112
  </td>
119
- <td id='olivier-halligon'>
120
- <a href='https://github.com/AliSoftware'>
121
- <img src='https://github.com/AliSoftware.png?size=140'>
113
+ <td id='maksym-grebenets'>
114
+ <a href='https://github.com/mgrebenets'>
115
+ <img src='https://github.com/mgrebenets.png?size=140'>
122
116
  </a>
123
- <h4 align='center'><a href='https://twitter.com/aligatr'>Olivier Halligon</a></h4>
117
+ <h4 align='center'><a href='https://twitter.com/mgrebenets'>Maksym Grebenets</a></h4>
124
118
  </td>
125
- <td id='felix-krause'>
126
- <a href='https://github.com/KrauseFx'>
127
- <img src='https://github.com/KrauseFx.png?size=140'>
119
+ <td id='stefan-natchev'>
120
+ <a href='https://github.com/snatchev'>
121
+ <img src='https://github.com/snatchev.png?size=140'>
128
122
  </a>
129
- <h4 align='center'><a href='https://twitter.com/KrauseFx'>Felix Krause</a></h4>
123
+ <h4 align='center'><a href='https://twitter.com/snatchev'>Stefan Natchev</a></h4>
130
124
  </td>
131
- </tr>
132
- <tr>
133
125
  <td id='aaron-brager'>
134
126
  <a href='https://github.com/getaaron'>
135
127
  <img src='https://github.com/getaaron.png?size=140'>
136
128
  </a>
137
129
  <h4 align='center'><a href='https://twitter.com/getaaron'>Aaron Brager</a></h4>
138
130
  </td>
139
- <td id='jan-piotrowski'>
140
- <a href='https://github.com/janpio'>
141
- <img src='https://github.com/janpio.png?size=140'>
131
+ </tr>
132
+ <tr>
133
+ <td id='felix-krause'>
134
+ <a href='https://github.com/KrauseFx'>
135
+ <img src='https://github.com/KrauseFx.png?size=140'>
142
136
  </a>
143
- <h4 align='center'><a href='https://twitter.com/Sujan'>Jan Piotrowski</a></h4>
137
+ <h4 align='center'><a href='https://twitter.com/KrauseFx'>Felix Krause</a></h4>
144
138
  </td>
145
- <td id='stefan-natchev'>
146
- <a href='https://github.com/snatchev'>
147
- <img src='https://github.com/snatchev.png?size=140'>
139
+ <td id='helmut-januschka'>
140
+ <a href='https://github.com/hjanuschka'>
141
+ <img src='https://github.com/hjanuschka.png?size=140'>
148
142
  </a>
149
- <h4 align='center'><a href='https://twitter.com/snatchev'>Stefan Natchev</a></h4>
143
+ <h4 align='center'><a href='https://twitter.com/hjanuschka'>Helmut Januschka</a></h4>
150
144
  </td>
151
- <td id='matthew-ellis'>
152
- <a href='https://github.com/matthewellis'>
153
- <img src='https://github.com/matthewellis.png?size=140'>
145
+ <td id='luka-mirosevic'>
146
+ <a href='https://github.com/lmirosevic'>
147
+ <img src='https://github.com/lmirosevic.png?size=140'>
154
148
  </a>
155
- <h4 align='center'><a href='https://twitter.com/mellis1995'>Matthew Ellis</a></h4>
149
+ <h4 align='center'><a href='https://twitter.com/lmirosevic'>Luka Mirosevic</a></h4>
156
150
  </td>
157
- <td id='jorge-revuelta-h'>
158
- <a href='https://github.com/minuscorp'>
159
- <img src='https://github.com/minuscorp.png?size=140'>
151
+ <td id='jimmy-dee'>
152
+ <a href='https://github.com/jdee'>
153
+ <img src='https://github.com/jdee.png?size=140'>
160
154
  </a>
161
- <h4 align='center'><a href='https://twitter.com/minuscorp'>Jorge Revuelta H</a></h4>
155
+ <h4 align='center'>Jimmy Dee</h4>
156
+ </td>
157
+ <td id='jérôme-lacoste'>
158
+ <a href='https://github.com/lacostej'>
159
+ <img src='https://github.com/lacostej.png?size=140'>
160
+ </a>
161
+ <h4 align='center'><a href='https://twitter.com/lacostej'>Jérôme Lacoste</a></h4>
162
162
  </td>
163
163
  </tr>
164
164
  </table>
@@ -49,8 +49,7 @@ module Fastlane
49
49
  UI.message("Fetching the latest build number for #{version_number_message}")
50
50
 
51
51
  # Get latest build for optional version number and return build number if found
52
- client = Spaceship::ConnectAPI::TestFlight.client
53
- build = client.get_builds(filter: filter, sort: "-version", includes: "preReleaseVersion", limit: 1).first
52
+ build = Spaceship::ConnectAPI.get_builds(filter: filter, sort: "-version", includes: "preReleaseVersion", limit: 1).first
54
53
  if build
55
54
  build_nr = build.version
56
55
  UI.message("Latest upload for version #{build.app_version} is build: #{build_nr}")
@@ -81,6 +81,8 @@ module Fastlane
81
81
  oclint_args << "-allow-duplicated-violations" if params[:allow_duplicated_violations]
82
82
  oclint_args << "-p #{compile_commands_dir.shellescape}"
83
83
 
84
+ oclint_args << "-extra-arg=#{params[:extra_arg]}" if params[:extra_arg]
85
+
84
86
  command = [
85
87
  command_prefix,
86
88
  oclint_path,
@@ -204,7 +206,11 @@ module Fastlane
204
206
  env_name: "FL_OCLINT_ALLOW_DUPLICATED_VIOLATIONS",
205
207
  description: "Allow duplicated violations in the OCLint report",
206
208
  is_string: false,
207
- default_value: false)
209
+ default_value: false),
210
+ FastlaneCore::ConfigItem.new(key: :extra_arg,
211
+ env_name: 'FL_OCLINT_EXTRA_ARG',
212
+ description: 'Additional argument to append to the compiler command line',
213
+ optional: true)
208
214
  ]
209
215
  end
210
216
  # rubocop:enable Metrics/PerceivedComplexity
@@ -249,7 +255,8 @@ module Fastlane
249
255
  list_enabled_rules: true, # List enabled rules
250
256
  enable_clang_static_analyzer: true, # Enable Clang Static Analyzer, and integrate results into OCLint report
251
257
  enable_global_analysis: true, # Compile every source, and analyze across global contexts (depends on number of source files, could results in high memory load)
252
- allow_duplicated_violations: true # Allow duplicated violations in the OCLint report
258
+ allow_duplicated_violations: true, # Allow duplicated violations in the OCLint report
259
+ extra_arg: "-Wno-everything" # Additional argument to append to the compiler command line
253
260
  )'
254
261
  ]
255
262
  end
@@ -2,37 +2,35 @@ module Fastlane
2
2
  module Actions
3
3
  class ResetSimulatorContentsAction < Action
4
4
  def self.run(params)
5
- ios_versions = params[:ios]
5
+ os_versions = params[:os_versions] || params[:ios]
6
6
 
7
- if Helper.xcode_at_least?("9")
8
- reset_xcode9_and_higher(ios_versions)
9
- else
10
- reset_up_to_xcode8(ios_versions)
11
- end
7
+ reset_simulators(os_versions)
12
8
  end
13
9
 
14
- def self.reset_xcode9_and_higher(ios_versions)
15
- UI.verbose("Resetting simulator contents for Xcode 9 and later")
16
- simulators = FastlaneCore::DeviceManager.simulators('iOS')
17
- if ios_versions
18
- simulators.select! { |s| ios_versions.include?(s.os_version) }
19
- end
20
- simulators.each do |simulator|
21
- FastlaneCore::Simulator.reset(udid: simulator.udid)
22
- end
23
- UI.success('Simulators reset')
24
- end
10
+ def self.reset_simulators(os_versions)
11
+ UI.verbose("Resetting simulator contents")
25
12
 
26
- def self.reset_up_to_xcode8(ios_versions)
27
- UI.verbose("Resetting simulator contents for Xcode 8 and earlier")
28
- if ios_versions
29
- ios_versions.each do |os_version|
30
- FastlaneCore::Simulator.reset_all_by_version(os_version: os_version)
13
+ if os_versions
14
+ os_versions.each do |os_version|
15
+ reset_all_by_version(os_version)
31
16
  end
32
17
  else
33
- FastlaneCore::Simulator.reset_all
18
+ reset_all
34
19
  end
35
- UI.success('Simulators reset')
20
+
21
+ UI.success('Simulators reset done')
22
+ end
23
+
24
+ def self.reset_all_by_version(os_version)
25
+ FastlaneCore::Simulator.reset_all_by_version(os_version: os_version)
26
+ FastlaneCore::SimulatorTV.reset_all_by_version(os_version: os_version)
27
+ FastlaneCore::SimulatorWatch.reset_all_by_version(os_version: os_version)
28
+ end
29
+
30
+ def self.reset_all
31
+ FastlaneCore::Simulator.reset_all
32
+ FastlaneCore::SimulatorTV.reset_all
33
+ FastlaneCore::SimulatorWatch.reset_all
36
34
  end
37
35
 
38
36
  def self.description
@@ -42,9 +40,17 @@ module Fastlane
42
40
  def self.available_options
43
41
  [
44
42
  FastlaneCore::ConfigItem.new(key: :ios,
43
+ deprecated: "Use `:os_versions` instead",
45
44
  short_option: "-i",
46
45
  env_name: "FASTLANE_RESET_SIMULATOR_VERSIONS",
47
- description: "Which versions of Simulators you want to reset content and settings, this does not remove/recreate the simulators",
46
+ description: "Which OS versions of Simulators you want to reset content and settings, this does not remove/recreate the simulators",
47
+ is_string: false,
48
+ optional: true,
49
+ type: Array),
50
+ FastlaneCore::ConfigItem.new(key: :os_versions,
51
+ short_option: "-v",
52
+ env_name: "FASTLANE_RESET_SIMULATOR_OS_VERSIONS",
53
+ description: "Which OS versions of Simulators you want to reset content and settings, this does not remove/recreate the simulators",
48
54
  is_string: false,
49
55
  optional: true,
50
56
  type: Array)
@@ -68,12 +74,13 @@ module Fastlane
68
74
  end
69
75
 
70
76
  def self.is_supported?(platform)
71
- platform == :ios
77
+ [:ios, :tvos, :watchos].include?(platform)
72
78
  end
73
79
 
74
80
  def self.example_code
75
81
  [
76
- 'reset_simulator_contents'
82
+ 'reset_simulator_contents',
83
+ 'reset_simulator_contents(os_versions: ["10.3.1","12.2"])'
77
84
  ]
78
85
  end
79
86
 
@@ -78,7 +78,10 @@ module Fastlane
78
78
  end
79
79
 
80
80
  def self.print_error_line(ex)
81
- error_line = ex.backtrace[0].match("Fastfile:(\\d+):")
81
+ error_line = ex.backtrace.first
82
+ return if error_line.nil?
83
+
84
+ error_line = error_line.match("Fastfile:(\\d+):")
82
85
  return unless error_line
83
86
 
84
87
  line = error_line[1]
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
- VERSION = '2.126.0.beta.20190623200100'.freeze
2
+ VERSION = '2.126.0'.freeze
3
3
  DESCRIPTION = "The easiest way to automate beta deployments and releases for your iOS and Android apps".freeze
4
4
  MINIMUM_XCODE_RELEASE = "7.0".freeze
5
5
  RUBOCOP_REQUIREMENT = '0.49.1'.freeze
@@ -18,4 +18,4 @@ class Deliverfile: DeliverfileProtocol {
18
18
 
19
19
 
20
20
 
21
- // Generated with fastlane 2.125.2
21
+ // Generated with fastlane 2.126.0
@@ -44,6 +44,7 @@ protocol DeliverfileProtocol: class {
44
44
  var secondarySecondSubCategory: String? { get }
45
45
  var tradeRepresentativeContactInformation: [String : Any]? { get }
46
46
  var appReviewInformation: [String : Any]? { get }
47
+ var appReviewAttachmentFile: String? { get }
47
48
  var description: String? { get }
48
49
  var name: String? { get }
49
50
  var subtitle: [String : Any]? { get }
@@ -106,6 +107,7 @@ extension DeliverfileProtocol {
106
107
  var secondarySecondSubCategory: String? { return nil }
107
108
  var tradeRepresentativeContactInformation: [String : Any]? { return nil }
108
109
  var appReviewInformation: [String : Any]? { return nil }
110
+ var appReviewAttachmentFile: String? { return nil }
109
111
  var description: String? { return nil }
110
112
  var name: String? { return nil }
111
113
  var subtitle: [String : Any]? { return nil }
@@ -124,4 +126,4 @@ extension DeliverfileProtocol {
124
126
 
125
127
  // Please don't remove the lines below
126
128
  // They are used to detect outdated files
127
- // FastlaneRunnerAPIVersion [0.9.7]
129
+ // FastlaneRunnerAPIVersion [0.9.8]
@@ -268,6 +268,7 @@ func appstore(username: String,
268
268
  secondarySecondSubCategory: String? = nil,
269
269
  tradeRepresentativeContactInformation: [String : Any]? = nil,
270
270
  appReviewInformation: [String : Any]? = nil,
271
+ appReviewAttachmentFile: String? = nil,
271
272
  description: String? = nil,
272
273
  name: String? = nil,
273
274
  subtitle: [String : Any]? = nil,
@@ -327,6 +328,7 @@ func appstore(username: String,
327
328
  RubyCommand.Argument(name: "secondary_second_sub_category", value: secondarySecondSubCategory),
328
329
  RubyCommand.Argument(name: "trade_representative_contact_information", value: tradeRepresentativeContactInformation),
329
330
  RubyCommand.Argument(name: "app_review_information", value: appReviewInformation),
331
+ RubyCommand.Argument(name: "app_review_attachment_file", value: appReviewAttachmentFile),
330
332
  RubyCommand.Argument(name: "description", value: description),
331
333
  RubyCommand.Argument(name: "name", value: name),
332
334
  RubyCommand.Argument(name: "subtitle", value: subtitle),
@@ -1278,6 +1280,7 @@ func deliver(username: String = deliverfile.username,
1278
1280
  secondarySecondSubCategory: String? = deliverfile.secondarySecondSubCategory,
1279
1281
  tradeRepresentativeContactInformation: [String : Any]? = deliverfile.tradeRepresentativeContactInformation,
1280
1282
  appReviewInformation: [String : Any]? = deliverfile.appReviewInformation,
1283
+ appReviewAttachmentFile: String? = deliverfile.appReviewAttachmentFile,
1281
1284
  description: String? = deliverfile.description,
1282
1285
  name: String? = deliverfile.name,
1283
1286
  subtitle: [String : Any]? = deliverfile.subtitle,
@@ -1337,6 +1340,7 @@ func deliver(username: String = deliverfile.username,
1337
1340
  RubyCommand.Argument(name: "secondary_second_sub_category", value: secondarySecondSubCategory),
1338
1341
  RubyCommand.Argument(name: "trade_representative_contact_information", value: tradeRepresentativeContactInformation),
1339
1342
  RubyCommand.Argument(name: "app_review_information", value: appReviewInformation),
1343
+ RubyCommand.Argument(name: "app_review_attachment_file", value: appReviewAttachmentFile),
1340
1344
  RubyCommand.Argument(name: "description", value: description),
1341
1345
  RubyCommand.Argument(name: "name", value: name),
1342
1346
  RubyCommand.Argument(name: "subtitle", value: subtitle),
@@ -2330,7 +2334,8 @@ func oclint(oclintPath: String = "oclint",
2330
2334
  maxPriority3: String? = nil,
2331
2335
  enableClangStaticAnalyzer: Bool = false,
2332
2336
  enableGlobalAnalysis: Bool = false,
2333
- allowDuplicatedViolations: Bool = false) {
2337
+ allowDuplicatedViolations: Bool = false,
2338
+ extraArg: String? = nil) {
2334
2339
  let command = RubyCommand(commandID: "", methodName: "oclint", className: nil, args: [RubyCommand.Argument(name: "oclint_path", value: oclintPath),
2335
2340
  RubyCommand.Argument(name: "compile_commands", value: compileCommands),
2336
2341
  RubyCommand.Argument(name: "select_reqex", value: selectReqex),
@@ -2348,7 +2353,8 @@ func oclint(oclintPath: String = "oclint",
2348
2353
  RubyCommand.Argument(name: "max_priority_3", value: maxPriority3),
2349
2354
  RubyCommand.Argument(name: "enable_clang_static_analyzer", value: enableClangStaticAnalyzer),
2350
2355
  RubyCommand.Argument(name: "enable_global_analysis", value: enableGlobalAnalysis),
2351
- RubyCommand.Argument(name: "allow_duplicated_violations", value: allowDuplicatedViolations)])
2356
+ RubyCommand.Argument(name: "allow_duplicated_violations", value: allowDuplicatedViolations),
2357
+ RubyCommand.Argument(name: "extra_arg", value: extraArg)])
2352
2358
  _ = runner.executeCommand(command)
2353
2359
  }
2354
2360
  func onesignal(authToken: String,
@@ -2699,8 +2705,10 @@ func resetGitRepo(files: String? = nil,
2699
2705
  RubyCommand.Argument(name: "exclude", value: exclude)])
2700
2706
  _ = runner.executeCommand(command)
2701
2707
  }
2702
- func resetSimulatorContents(ios: [String]? = nil) {
2703
- let command = RubyCommand(commandID: "", methodName: "reset_simulator_contents", className: nil, args: [RubyCommand.Argument(name: "ios", value: ios)])
2708
+ func resetSimulatorContents(ios: [String]? = nil,
2709
+ osVersions: [String]? = nil) {
2710
+ let command = RubyCommand(commandID: "", methodName: "reset_simulator_contents", className: nil, args: [RubyCommand.Argument(name: "ios", value: ios),
2711
+ RubyCommand.Argument(name: "os_versions", value: osVersions)])
2704
2712
  _ = runner.executeCommand(command)
2705
2713
  }
2706
2714
  func resign(ipa: String,
@@ -2807,6 +2815,7 @@ func runTests(workspace: String? = nil,
2807
2815
  slackOnlyOnFailure: Bool = false,
2808
2816
  destination: String? = nil,
2809
2817
  customReportFileName: String? = nil,
2818
+ xcodebuildCommand: String = "env NSUnbufferedIO=YES xcodebuild",
2810
2819
  failBuild: Bool = true) {
2811
2820
  let command = RubyCommand(commandID: "", methodName: "run_tests", className: nil, args: [RubyCommand.Argument(name: "workspace", value: workspace),
2812
2821
  RubyCommand.Argument(name: "project", value: project),
@@ -2860,6 +2869,7 @@ func runTests(workspace: String? = nil,
2860
2869
  RubyCommand.Argument(name: "slack_only_on_failure", value: slackOnlyOnFailure),
2861
2870
  RubyCommand.Argument(name: "destination", value: destination),
2862
2871
  RubyCommand.Argument(name: "custom_report_file_name", value: customReportFileName),
2872
+ RubyCommand.Argument(name: "xcodebuild_command", value: xcodebuildCommand),
2863
2873
  RubyCommand.Argument(name: "fail_build", value: failBuild)])
2864
2874
  _ = runner.executeCommand(command)
2865
2875
  }
@@ -2955,6 +2965,7 @@ func scan(workspace: String? = scanfile.workspace,
2955
2965
  slackOnlyOnFailure: Bool = scanfile.slackOnlyOnFailure,
2956
2966
  destination: String? = scanfile.destination,
2957
2967
  customReportFileName: String? = scanfile.customReportFileName,
2968
+ xcodebuildCommand: String = scanfile.xcodebuildCommand,
2958
2969
  failBuild: Bool = scanfile.failBuild) {
2959
2970
  let command = RubyCommand(commandID: "", methodName: "scan", className: nil, args: [RubyCommand.Argument(name: "workspace", value: workspace),
2960
2971
  RubyCommand.Argument(name: "project", value: project),
@@ -3008,6 +3019,7 @@ func scan(workspace: String? = scanfile.workspace,
3008
3019
  RubyCommand.Argument(name: "slack_only_on_failure", value: slackOnlyOnFailure),
3009
3020
  RubyCommand.Argument(name: "destination", value: destination),
3010
3021
  RubyCommand.Argument(name: "custom_report_file_name", value: customReportFileName),
3022
+ RubyCommand.Argument(name: "xcodebuild_command", value: xcodebuildCommand),
3011
3023
  RubyCommand.Argument(name: "fail_build", value: failBuild)])
3012
3024
  _ = runner.executeCommand(command)
3013
3025
  }
@@ -3940,6 +3952,7 @@ func uploadToAppStore(username: String,
3940
3952
  secondarySecondSubCategory: String? = nil,
3941
3953
  tradeRepresentativeContactInformation: [String : Any]? = nil,
3942
3954
  appReviewInformation: [String : Any]? = nil,
3955
+ appReviewAttachmentFile: String? = nil,
3943
3956
  description: String? = nil,
3944
3957
  name: String? = nil,
3945
3958
  subtitle: [String : Any]? = nil,
@@ -3999,6 +4012,7 @@ func uploadToAppStore(username: String,
3999
4012
  RubyCommand.Argument(name: "secondary_second_sub_category", value: secondarySecondSubCategory),
4000
4013
  RubyCommand.Argument(name: "trade_representative_contact_information", value: tradeRepresentativeContactInformation),
4001
4014
  RubyCommand.Argument(name: "app_review_information", value: appReviewInformation),
4015
+ RubyCommand.Argument(name: "app_review_attachment_file", value: appReviewAttachmentFile),
4002
4016
  RubyCommand.Argument(name: "description", value: description),
4003
4017
  RubyCommand.Argument(name: "name", value: name),
4004
4018
  RubyCommand.Argument(name: "subtitle", value: subtitle),
@@ -4379,4 +4393,4 @@ let screengrabfile: Screengrabfile = Screengrabfile()
4379
4393
  let snapshotfile: Snapshotfile = Snapshotfile()
4380
4394
  // Please don't remove the lines below
4381
4395
  // They are used to detect outdated files
4382
- // FastlaneRunnerAPIVersion [0.9.50]
4396
+ // FastlaneRunnerAPIVersion [0.9.51]