fastlane 2.120.0.beta.20190330200100 → 2.120.0.beta.20190331200023

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3cafa3f8f937d038d6d383024277d8e4d21e3326
4
- data.tar.gz: e4dfaf241847970ee96032559b8e2d02ba913938
3
+ metadata.gz: 0f87e9f50f056ea1cbf192436b3d23055ee312f1
4
+ data.tar.gz: c89a3f2c0be58ad70308c4e02ffe75e62ddd4916
5
5
  SHA512:
6
- metadata.gz: 1f5efd02f31f9db1105b2242e26ef566649f267735e955c832a3ec190a04a02ded9a3afb0842049cd29508b024b45e1c30f4a90f1e270cdfcf443fd7b4ac3d24
7
- data.tar.gz: 7a8af99a2d38459f5fe90b5dbf29997951d95d95c011626cbba06d55706cac661bf0847c98966184c8d47991f8487e7bd46a26919c88e2d58b26ab03c5b831ca
6
+ metadata.gz: e3c0129a94532b5331c357d0e7cb48d66a3c1c4d116838b24297306816643a4e49656d2c0f46444a11caaab88db4f895c25a1b9349a3223aca9496b2db359a86
7
+ data.tar.gz: c641a9c0857e71c9d5cc40c810387430acb4441351d47b336e21d8e3de42a072d8e263d697db589feca8e05561e98bef9530d7a0daffee109ef0028d4671c2e7
@@ -130,7 +130,7 @@ module Deliver
130
130
  set_trade_representative_contact_information(v, options)
131
131
  set_review_information(v, options)
132
132
  set_app_rating(v, options)
133
- v.ratings_reset = options[:reset_ratings]
133
+ v.ratings_reset = options[:reset_ratings] unless options[:reset_ratings].nil?
134
134
 
135
135
  Helper.show_loading_indicator("Uploading metadata to App Store Connect")
136
136
  v.save!
@@ -336,3 +336,28 @@ When the app dies directly after the application is launched there might be 2 pr
336
336
  ## Determine language
337
337
 
338
338
  To detect the currently used localization in your tests, access the `deviceLanguage` variable from `SnapshotHelper.swift`.
339
+
340
+ ## Speed up snapshots
341
+
342
+ A lot of time in UI tests is spent waiting for animations.
343
+
344
+ You can disable `UIView` animations in your app to make the tests faster:
345
+
346
+ ```swift
347
+ if ProcessInfo().arguments.contains("SKIP_ANIMATIONS") {
348
+ UIView.setAnimationsEnabled(false)
349
+ }
350
+ ```
351
+
352
+ This requires you to pass the launch argument like so:
353
+
354
+ ```ruby
355
+ snapshot(launch_arguments: ["SKIP_ANIMATIONS"])
356
+ ```
357
+
358
+ By default, _snapshot_ will wait for a short time for the animations to finish.
359
+ If you're skipping the animations, this is wait time is unnecessary and can be skipped:
360
+
361
+ ```swift
362
+ setupSnapshot(app, waitForAnimations: false)
363
+ ```
@@ -29,6 +29,9 @@ module Fastlane
29
29
  # optionally add the no-verify component
30
30
  command << '--no-verify' if params[:no_verify]
31
31
 
32
+ # optionally add the set-upstream component
33
+ command << '--set-upstream' if params[:set_upstream]
34
+
32
35
  # execute our command
33
36
  Actions.sh('pwd')
34
37
  return command.join(' ') if Helper.test?
@@ -76,6 +79,11 @@ module Fastlane
76
79
  env_name: "FL_GIT_PUSH_USE_NO_VERIFY",
77
80
  description: "Whether or not to use --no-verify",
78
81
  type: Boolean,
82
+ default_value: false),
83
+ FastlaneCore::ConfigItem.new(key: :set_upstream,
84
+ env_name: "FL_GIT_PUSH_USE_SET_UPSTREAM",
85
+ description: "Whether or not to use --set-upstream",
86
+ type: Boolean,
79
87
  default_value: false)
80
88
  ]
81
89
  end
@@ -85,7 +93,10 @@ module Fastlane
85
93
  end
86
94
 
87
95
  def self.details
88
- "Lets you push your local commits to a remote git repo. Useful if you make local changes such as adding a version bump commit (using `commit_version_bump`) or a git tag (using 'add_git_tag') on a CI server, and you want to push those changes back to your canonical/main repo."
96
+ [
97
+ "Lets you push your local commits to a remote git repo. Useful if you make local changes such as adding a version bump commit (using `commit_version_bump`) or a git tag (using 'add_git_tag') on a CI server, and you want to push those changes back to your canonical/main repo.",
98
+ "If this is a new branch, use the `set_upstream` option to set the remote branch as upstream."
99
+ ].join("\n")
89
100
  end
90
101
 
91
102
  def self.is_supported?(platform)
@@ -102,7 +113,8 @@ module Fastlane
102
113
  force: true, # optional, default: false
103
114
  force_with_lease: true, # optional, default: false
104
115
  tags: false, # optional, default: true
105
- no_verify: true # optional, default: false
116
+ no_verify: true, # optional, default: false
117
+ set_upstream: true # optional, default: false
106
118
  )'
107
119
  ]
108
120
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
- VERSION = '2.120.0.beta.20190330200100'.freeze
2
+ VERSION = '2.120.0.beta.20190331200023'.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
@@ -130,6 +130,7 @@ module Scan
130
130
  is_string: false,
131
131
  default_value: false),
132
132
  FastlaneCore::ConfigItem.new(key: :code_coverage,
133
+ env_name: "SCAN_CODE_COVERAGE",
133
134
  description: "Should code coverage be generated? (Xcode 7 and up)",
134
135
  is_string: false,
135
136
  type: Boolean,
@@ -342,13 +343,15 @@ module Scan
342
343
  is_string: true,
343
344
  optional: true),
344
345
  FastlaneCore::ConfigItem.new(key: :skip_slack,
346
+ env_name: "SCAN_SKIP_SLACK",
345
347
  description: "Don't publish to slack, even when an URL is given",
346
348
  is_string: false,
347
349
  default_value: false),
348
350
  FastlaneCore::ConfigItem.new(key: :slack_only_on_failure,
349
- description: "Only post on Slack if the tests fail",
350
- is_string: false,
351
- default_value: false),
351
+ env_name: "SCAN_SLACK_ONLY_ON_FAILURE",
352
+ description: "Only post on Slack if the tests fail",
353
+ is_string: false,
354
+ default_value: false),
352
355
 
353
356
  # misc
354
357
  FastlaneCore::ConfigItem.new(key: :destination,
@@ -18,8 +18,8 @@ import XCTest
18
18
  var deviceLanguage = ""
19
19
  var locale = ""
20
20
 
21
- func setupSnapshot(_ app: XCUIApplication) {
22
- Snapshot.setupSnapshot(app)
21
+ func setupSnapshot(_ app: XCUIApplication, waitForAnimations: Bool = true) {
22
+ Snapshot.setupSnapshot(app, waitForAnimations: waitForAnimations)
23
23
  }
24
24
 
25
25
  func snapshot(_ name: String, waitForLoadingIndicator: Bool) {
@@ -63,14 +63,16 @@ enum SnapshotError: Error, CustomDebugStringConvertible {
63
63
  @objcMembers
64
64
  open class Snapshot: NSObject {
65
65
  static var app: XCUIApplication?
66
+ static var waitForAnimations = true
66
67
  static var cacheDirectory: URL?
67
68
  static var screenshotsDirectory: URL? {
68
69
  return cacheDirectory?.appendingPathComponent("screenshots", isDirectory: true)
69
70
  }
70
71
 
71
- open class func setupSnapshot(_ app: XCUIApplication) {
72
+ open class func setupSnapshot(_ app: XCUIApplication, waitForAnimations: Bool = true) {
72
73
 
73
74
  Snapshot.app = app
75
+ Snapshot.waitForAnimations = waitForAnimations
74
76
 
75
77
  do {
76
78
  let cacheDir = try pathPrefix()
@@ -153,7 +155,9 @@ open class Snapshot: NSObject {
153
155
 
154
156
  print("snapshot: \(name)") // more information about this, check out https://docs.fastlane.tools/actions/snapshot/#how-does-it-work
155
157
 
156
- sleep(1) // Waiting for the animation to be finished (kind of)
158
+ if Snapshot.waitForAnimations {
159
+ sleep(1) // Waiting for the animation to be finished (kind of)
160
+ }
157
161
 
158
162
  #if os(OSX)
159
163
  guard let app = self.app else {
@@ -291,4 +295,4 @@ private extension CGFloat {
291
295
 
292
296
  // Please don't remove the lines below
293
297
  // They are used to detect outdated configuration files
294
- // SnapshotHelperVersion [1.14]
298
+ // SnapshotHelperVersion [1.15]
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.120.0.beta.20190330200100
4
+ version: 2.120.0.beta.20190331200023
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Natchev
@@ -27,7 +27,7 @@ authors:
27
27
  autorequire:
28
28
  bindir: bin
29
29
  cert_chain: []
30
- date: 2019-03-30 00:00:00.000000000 Z
30
+ date: 2019-03-31 00:00:00.000000000 Z
31
31
  dependencies:
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: slack-notifier
@@ -1688,24 +1688,24 @@ metadata:
1688
1688
  post_install_message:
1689
1689
  rdoc_options: []
1690
1690
  require_paths:
1691
- - snapshot/lib
1692
- - fastlane_core/lib
1691
+ - sigh/lib
1693
1692
  - pilot/lib
1694
- - frameit/lib
1695
- - gym/lib
1696
- - match/lib
1697
- - supply/lib
1698
- - scan/lib
1699
- - deliver/lib
1700
- - cert/lib
1693
+ - spaceship/lib
1701
1694
  - fastlane/lib
1695
+ - frameit/lib
1696
+ - fastlane_core/lib
1702
1697
  - credentials_manager/lib
1703
- - sigh/lib
1704
- - precheck/lib
1705
- - screengrab/lib
1698
+ - cert/lib
1706
1699
  - produce/lib
1707
- - spaceship/lib
1708
1700
  - pem/lib
1701
+ - precheck/lib
1702
+ - screengrab/lib
1703
+ - deliver/lib
1704
+ - scan/lib
1705
+ - snapshot/lib
1706
+ - supply/lib
1707
+ - match/lib
1708
+ - gym/lib
1709
1709
  required_ruby_version: !ruby/object:Gem::Requirement
1710
1710
  requirements:
1711
1711
  - - ">="