fastlane 2.90.0.beta.20180404050031 → 2.90.0.beta.20180405050125

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: afc3633c64e4735c5defd70067167afe04228848
4
- data.tar.gz: 60883afd89f2fb0aa026ae085465a452fd12dec3
3
+ metadata.gz: 519122d2a049bd148d8cb94d05e68431c6baa6db
4
+ data.tar.gz: 25c587dc308cd88183a48c8aeee7720ea56c1dee
5
5
  SHA512:
6
- metadata.gz: c555000553891db735063f07b0f84fc965ef1265de6071871dfd8dd66b7af3d076a8c9936062c92576cf87a08e4e8b2d45906b907fa7db20d78da664c891c713
7
- data.tar.gz: faa80ac30a29ae1497aa4e09c6e7cacd3a66288da3a69a2c953a8fd8d87a6e4fc68719a329cc4ba9d77e5594f072fa361f76c488f6b1f0bafdc2d47a4e0644ad
6
+ metadata.gz: 95e21e2f6737aa4bb9e37748339ff9994da6475273bb9a663d50715813b3ac43191e1a4697530c0ceee3ac112942601e5320160e2341d0b0afdd37c7c9b88de6
7
+ data.tar.gz: b07a2c0ac2b6c74a797802c7ba0011272b0b6dddffdf0bea893dff691ccfda5204a82d51428e4ac5d3b808cfe3d5ec3a1e5e4cae1303620c79d40a8d8c385acc
@@ -74,6 +74,19 @@ However, UI Automator requires a device with **API level >= 18**, so it is not y
74
74
  Screengrab.setDefaultScreenshotStrategy(new UiAutomatorScreenshotStrategy());
75
75
  ```
76
76
 
77
+ ## Improved screenshot capture with Falcon
78
+
79
+ As of _screengrab_ 1.2.0, you can specify a new strategy to delegate to [Falcon](https://github.com/jraska/Falcon). Falcon may work better than UI Automator in some situations and also provides similar benefits as UI Automator:
80
+
81
+ * Multi-window situations are correctly captured (dialogs, etc.)
82
+ * Works on Android N
83
+
84
+ Falcon requires a device with **API level >= 10**. To enable it for all screenshots by default, make the following call before your tests run:
85
+
86
+ ```java
87
+ Screengrab.setDefaultScreenshotStrategy(new FalconScreenshotStrategy(activityRule.getActivity()));
88
+ ```
89
+
77
90
  ## Advanced Screengrabfile Configuration
78
91
 
79
92
  Running `fastlane screengrab init` generated a Screengrabfile which can store all of your configuration options. Since most values will not change often for your project, it is recommended to store them there.
@@ -6,12 +6,14 @@ module Fastlane
6
6
  # @param lane_name The name of the lane to execute
7
7
  # @param parameters [Hash] The parameters passed from the command line to the lane
8
8
  # @param env Dot Env Information
9
- def self.cruise_lane(platform, lane, parameters = nil, env = nil)
9
+ # @param A custom Fastfile path, this is used by fastlane.ci
10
+ # rubocop:disable Metrics/PerceivedComplexity
11
+ def self.cruise_lane(platform, lane, parameters = nil, env = nil, fastfile_path = nil)
10
12
  UI.user_error!("lane must be a string") unless lane.kind_of?(String) || lane.nil?
11
13
  UI.user_error!("platform must be a string") unless platform.kind_of?(String) || platform.nil?
12
14
  UI.user_error!("parameters must be a hash") unless parameters.kind_of?(Hash) || parameters.nil?
13
15
 
14
- ff = Fastlane::FastFile.new(FastlaneCore::FastlaneFolder.fastfile_path)
16
+ ff = Fastlane::FastFile.new(fastfile_path || FastlaneCore::FastlaneFolder.fastfile_path)
15
17
 
16
18
  is_platform = false
17
19
  begin
@@ -73,6 +75,7 @@ module Fastlane
73
75
 
74
76
  return ff
75
77
  end
78
+ # rubocop:enable Metrics/PerceivedComplexity
76
79
 
77
80
  def self.skip_docs?
78
81
  Helper.test? || FastlaneCore::Env.truthy?("FASTLANE_SKIP_DOCS")
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
- VERSION = '2.90.0.beta.20180404050031'.freeze
2
+ VERSION = '2.90.0.beta.20180405050125'.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
@@ -12,7 +12,12 @@ require "plist"
12
12
  # CFPropertyList also adds Enumerator#to_plist, but there is no such
13
13
  # method from Plist, so leave it.
14
14
  [Array, Hash].each do |c|
15
- c.send(:alias_method, :to_binary_plist, :to_plist)
16
- c.send(:remove_method, :to_plist)
15
+ if c.method_defined?(:to_plist)
16
+ begin
17
+ c.send(:alias_method, :to_binary_plist, :to_plist)
18
+ c.send(:remove_method, :to_plist)
19
+ rescue NameError
20
+ end
21
+ end
17
22
  c.module_eval("include Plist::Emit")
18
23
  end
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.90.0.beta.20180404050031
4
+ version: 2.90.0.beta.20180405050125
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manu Wallner
@@ -27,7 +27,7 @@ authors:
27
27
  autorequire:
28
28
  bindir: bin
29
29
  cert_chain: []
30
- date: 2018-04-04 00:00:00.000000000 Z
30
+ date: 2018-04-05 00:00:00.000000000 Z
31
31
  dependencies:
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: slack-notifier
@@ -1623,23 +1623,23 @@ post_install_message:
1623
1623
  rdoc_options: []
1624
1624
  require_paths:
1625
1625
  - sigh/lib
1626
- - gym/lib
1627
- - screengrab/lib
1628
- - deliver/lib
1626
+ - frameit/lib
1629
1627
  - precheck/lib
1630
- - match/lib
1631
- - pem/lib
1632
- - pilot/lib
1633
1628
  - scan/lib
1634
- - frameit/lib
1635
- - supply/lib
1629
+ - match/lib
1630
+ - deliver/lib
1636
1631
  - produce/lib
1632
+ - supply/lib
1633
+ - screengrab/lib
1637
1634
  - spaceship/lib
1638
- - credentials_manager/lib
1635
+ - pilot/lib
1639
1636
  - cert/lib
1640
- - fastlane_core/lib
1641
- - snapshot/lib
1642
1637
  - fastlane/lib
1638
+ - gym/lib
1639
+ - credentials_manager/lib
1640
+ - snapshot/lib
1641
+ - fastlane_core/lib
1642
+ - pem/lib
1643
1643
  required_ruby_version: !ruby/object:Gem::Requirement
1644
1644
  requirements:
1645
1645
  - - ">="