fastlane 2.88.0.beta.20180325050025 → 2.88.0.beta.20180327050037

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: 6e67f0aa4f3e7e0df64204d8e5f124b04bbef506
4
- data.tar.gz: 1e2722e6343a39ef18359c7340cd78cde3465dc6
3
+ metadata.gz: e7d8fe55934095bf84ebaa89c021072afc257dba
4
+ data.tar.gz: 20a0d9fbb84a19e37b9963a52fa7326246608084
5
5
  SHA512:
6
- metadata.gz: db75c8c82b0a765304e992c4de0d4b6dc53ee8b6b416e618b70ce2c7a9ffd9d579381d0527095c87fdcc7839100dba76ae7a04f80a6b9392fabdb96115266931
7
- data.tar.gz: e74dd0157cfbe57153ab945d876f0ae953878f12194e2f9f363159b818693b873dae05d380f7f2d7d3b195a8e9ff6c1de47462c5b8101c90202c84b1aa534740
6
+ metadata.gz: 4948d03682f1b3b1d713e758cd8f7d057b3580876a72b05cb9b5bb2e839c4b65fda7483f5890a5a73cd69ddd51168e51fcffc592fb30760f846fec7471185ab9
7
+ data.tar.gz: b8fa017b3b70bc3a10cb841574a97b5596e251efdb4b91760564d798a587ac2341e8ead26d149e9d4372ae35ac47ab6b5b3474a3376319f3cca4f291957d0c56
@@ -2,8 +2,19 @@ module Fastlane
2
2
  module Actions
3
3
  class GitTagExistsAction < Action
4
4
  def self.run(params)
5
- result = Actions.sh("git rev-parse -q --verify refs/tags/#{params[:tag].shellescape} || true", log: FastlaneCore::Globals.verbose?).chomp
6
- !result.empty?
5
+ tag_ref = "refs/tags/#{params[:tag].shellescape}"
6
+ if params[:remote]
7
+ command = "git ls-remote -q --exit-code #{params[:remote_name].shellescape} #{tag_ref}"
8
+ else
9
+ command = "git rev-parse -q --verify #{tag_ref}"
10
+ end
11
+ exists = true
12
+ Actions.sh(
13
+ command,
14
+ log: FastlaneCore::Globals.verbose?,
15
+ error_callback: ->(result) { exists = false }
16
+ )
17
+ exists
7
18
  end
8
19
 
9
20
  #####################################################
@@ -21,7 +32,16 @@ module Fastlane
21
32
  def self.available_options
22
33
  [
23
34
  FastlaneCore::ConfigItem.new(key: :tag,
24
- description: "The tag name that should be checked")
35
+ description: "The tag name that should be checked"),
36
+ FastlaneCore::ConfigItem.new(key: :remote,
37
+ description: "Whether to check remote. Defaults to `false`",
38
+ type: Boolean,
39
+ default_value: false,
40
+ optional: true),
41
+ FastlaneCore::ConfigItem.new(key: :remote_name,
42
+ description: "The remote to check. Defaults to `origin`",
43
+ default_value: 'origin',
44
+ optional: true)
25
45
  ]
26
46
  end
27
47
 
@@ -22,13 +22,14 @@ module Fastlane
22
22
  line.strip!
23
23
  if line.start_with?("func")
24
24
  current_lane_name = self.lane_name_from_swift_line(potential_lane_line: line)
25
+ lanes_by_name[current_lane_name] = Fastlane::Lane.new(platform: nil, name: current_lane_name.to_sym, description: [])
25
26
  elsif line.start_with?("desc")
26
27
  lane_description = self.desc_entry_for_swift_lane(named: current_lane_name, potential_desc_line: line)
27
28
  unless lane_description
28
29
  next
29
30
  end
30
31
 
31
- lanes_by_name[current_lane_name] = Fastlane::Lane.new(platform: nil, name: current_lane_name.to_sym, description: [lane_description])
32
+ lanes_by_name[current_lane_name].description = [lane_description]
32
33
  current_lane_name = nil
33
34
  end
34
35
  end
@@ -28,8 +28,7 @@ module Fastlane
28
28
  return_value = ""
29
29
  end
30
30
 
31
- # quirks_mode because sometimes the built-in library is used for some folks and that needs quirks_mode: true
32
- return JSON.generate(return_value.to_s, quirks_mode: true)
31
+ return_value
33
32
  end
34
33
 
35
34
  def process_value_as_array_of_strings(return_value: nil)
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
- VERSION = '2.88.0.beta.20180325050025'.freeze
2
+ VERSION = '2.88.0.beta.20180327050037'.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
@@ -16,7 +16,7 @@ module Screengrab
16
16
  short_option: "-n",
17
17
  optional: true,
18
18
  code_gen_sensitive: true,
19
- default_value: ENV['ANDROID_HOME'] || ENV['ANDROID_SDK'],
19
+ default_value: ENV['ANDROID_HOME'] || ENV['ANDROID_SDK_ROOT'] || ENV['ANDROID_SDK'],
20
20
  default_value_dynamic: true,
21
21
  description: "Path to the root of your Android SDK installation, e.g. ~/tools/android-sdk-macosx"),
22
22
  FastlaneCore::ConfigItem.new(key: :build_tools_version,
@@ -348,7 +348,8 @@ module Screengrab
348
348
  end
349
349
 
350
350
  def run_adb_command(command, print_all: false, print_command: false)
351
- output = @executor.execute(command: command,
351
+ adb_path = @android_env.adb_path.chomp("adb")
352
+ output = @executor.execute(command: adb_path + command,
352
353
  print_all: print_all,
353
354
  print_command: print_command) || ''
354
355
  output.lines.reject do |line|
@@ -161,7 +161,12 @@ open class Snapshot: NSObject {
161
161
  return
162
162
  }
163
163
 
164
- let screenshot = app.windows.firstMatch.screenshot()
164
+ guard let window = app.windows.allElementsBoundByIndex.first(where: { $0.frame.isEmpty == false }) else {
165
+ print("Couldn't find an element window in XCUIApplication with a non-empty frame.")
166
+ return
167
+ }
168
+
169
+ let screenshot = window.screenshot()
165
170
  guard let simulator = ProcessInfo().environment["SIMULATOR_DEVICE_NAME"], let screenshotsDir = screenshotsDirectory else { return }
166
171
  let path = screenshotsDir.appendingPathComponent("\(simulator)-\(name).png")
167
172
  do {
@@ -273,4 +278,4 @@ private extension CGFloat {
273
278
 
274
279
  // Please don't remove the lines below
275
280
  // They are used to detect outdated configuration files
276
- // SnapshotHelperVersion [1.9]
281
+ // SnapshotHelperVersion [1.10]
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.88.0.beta.20180325050025
4
+ version: 2.88.0.beta.20180327050037
5
5
  platform: ruby
6
6
  authors:
7
7
  - Olivier Halligon
@@ -27,7 +27,7 @@ authors:
27
27
  autorequire:
28
28
  bindir: bin
29
29
  cert_chain: []
30
- date: 2018-03-25 00:00:00.000000000 Z
30
+ date: 2018-03-27 00:00:00.000000000 Z
31
31
  dependencies:
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: slack-notifier
@@ -1622,24 +1622,24 @@ metadata:
1622
1622
  post_install_message:
1623
1623
  rdoc_options: []
1624
1624
  require_paths:
1625
- - supply/lib
1626
- - fastlane/lib
1627
- - sigh/lib
1628
1625
  - fastlane_core/lib
1629
- - spaceship/lib
1630
- - precheck/lib
1631
- - scan/lib
1632
- - deliver/lib
1633
- - match/lib
1634
- - snapshot/lib
1635
- - pilot/lib
1626
+ - sigh/lib
1627
+ - credentials_manager/lib
1636
1628
  - screengrab/lib
1637
1629
  - cert/lib
1638
- - produce/lib
1639
- - credentials_manager/lib
1640
1630
  - frameit/lib
1631
+ - pilot/lib
1641
1632
  - gym/lib
1633
+ - produce/lib
1634
+ - fastlane/lib
1635
+ - spaceship/lib
1636
+ - scan/lib
1637
+ - match/lib
1638
+ - supply/lib
1642
1639
  - pem/lib
1640
+ - precheck/lib
1641
+ - deliver/lib
1642
+ - snapshot/lib
1643
1643
  required_ruby_version: !ruby/object:Gem::Requirement
1644
1644
  requirements:
1645
1645
  - - ">="