fastlane 1.67.0 → 1.68.0

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: c5d82ee8100e0652407019c36478c5da8bc34352
4
- data.tar.gz: ad22ea1701ae1880d858a71345b95421e5ebacf3
3
+ metadata.gz: d59616b248f69f0e037947a03d2b51396e0af935
4
+ data.tar.gz: ac1772bb6d27c37034440d16aebc44221338efd7
5
5
  SHA512:
6
- metadata.gz: 87fb250f8a51b53599075fc53dca430df5e520aa48bf396b56f70aaa529340d1ab49883b572366d53688c7fdeb32204d52b30c6fcc889c1bcf938ce5e40df8d7
7
- data.tar.gz: f632ae99759937990e7f2bbe33c09027cee9ad0101416216f3640619c00ce23a29f2c8fe1858b7562b08247ae7bca57805522adf1538a8d6b64be6081c438dd7
6
+ metadata.gz: bac4da3473571bbac2733683cb6553ee8d530737fd64afc7e4a850727641c6a428b0e91a8c11c0f08403d7e44ef1f34815d9f09d74a9bb6d380563ec102cd5c8
7
+ data.tar.gz: 9b049a4e393e2898630c709e9f46bcec53ab27fabd941165199150b9513fc87b86e27df6b34bed9dacbd5d31494dd50d22daf99bea45bebfecce97df130703f5
@@ -30,6 +30,7 @@ module Fastlane
30
30
  # Store the number in the shared hash
31
31
  Actions.lane_context[SharedValues::BUILD_NUMBER] = build_number
32
32
  end
33
+ return build_number
33
34
  rescue => ex
34
35
  UI.error('Make sure to follow the steps to setup your Xcode project: https://developer.apple.com/library/ios/qa/qa1827/_index.html')
35
36
  raise ex
@@ -56,9 +56,9 @@ module Fastlane
56
56
  end
57
57
 
58
58
  def self.run(params)
59
- build_number = Action.sh command(params[:use_hg_revision_number])
59
+ build_number = Action.sh(command(params[:use_hg_revision_number])).strip
60
60
  Actions.lane_context[SharedValues::BUILD_NUMBER_REPOSITORY] = build_number
61
- build_number
61
+ return build_number
62
62
  end
63
63
 
64
64
  #####################################################
@@ -16,19 +16,27 @@ module Fastlane
16
16
  require 'shenzhen'
17
17
  require 'shenzhen/plugins/hockeyapp'
18
18
 
19
+ build_file = [
20
+ options[:ipa],
21
+ options[:apk]
22
+ ].detect { |e| !e.to_s.empty? }
23
+
19
24
  if options[:dsym]
20
25
  dsym_filename = options[:dsym]
21
26
  else
22
- if options[:ipa].to_s.length == 0
23
- UI.user_error!("You have to provide an ipa file")
27
+
28
+ if build_file.nil?
29
+ UI.user_error!("You have to provide a build file")
24
30
  end
25
31
 
26
- dsym_path = options[:ipa].gsub('ipa', 'app.dSYM.zip')
27
- if File.exist?(dsym_path)
28
- dsym_filename = dsym_path
29
- else
30
- UI.important("Symbols not found on path #{File.expand_path(dsym_path)}. Crashes won't be symbolicated properly")
31
- dsym_filename = nil
32
+ dsym_path = options[:ipa].to_s.gsub('ipa', 'app.dSYM.zip')
33
+ if options[:ipa]
34
+ if File.exist?(dsym_path)
35
+ dsym_filename = dsym_path
36
+ else
37
+ UI.important("Symbols not found on path #{File.expand_path(dsym_path)}. Crashes won't be symbolicated properly")
38
+ dsym_filename = nil
39
+ end
32
40
  end
33
41
  end
34
42
 
@@ -44,7 +52,7 @@ module Fastlane
44
52
 
45
53
  return values if Helper.test?
46
54
 
47
- ipa_filename = options[:ipa]
55
+ ipa_filename = build_file
48
56
  ipa_filename = nil if options[:upload_dsym_only]
49
57
 
50
58
  response = client.upload_build(ipa_filename, values)
@@ -72,6 +80,18 @@ module Fastlane
72
80
 
73
81
  def self.available_options
74
82
  [
83
+ FastlaneCore::ConfigItem.new(key: :apk,
84
+ env_name: "FL_HOCKEY_APK",
85
+ description: "Path to your APK file",
86
+ default_value: Actions.lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH],
87
+ optional: true,
88
+ verify_block: proc do |value|
89
+ raise "Couldn't find apk file at path '#{value}'".red unless File.exist?(value)
90
+ end,
91
+ conflicting_options: [:ipa],
92
+ conflict_block: proc do |value|
93
+ raise "You can't use 'apk' and '#{value.key}' options in one run".red
94
+ end),
75
95
  FastlaneCore::ConfigItem.new(key: :api_token,
76
96
  env_name: "FL_HOCKEY_API_TOKEN",
77
97
  description: "API Token for Hockey Access",
@@ -85,6 +105,10 @@ module Fastlane
85
105
  optional: true,
86
106
  verify_block: proc do |value|
87
107
  raise "Couldn't find ipa file at path '#{value}'".red unless File.exist?(value)
108
+ end,
109
+ conflicting_options: [:apk],
110
+ conflict_block: proc do |value|
111
+ raise "You can't use 'ipa' and '#{value.key}' options in one run".red
88
112
  end),
89
113
  FastlaneCore::ConfigItem.new(key: :dsym,
90
114
  env_name: "FL_HOCKEY_DSYM",
@@ -166,12 +190,13 @@ module Fastlane
166
190
  end
167
191
 
168
192
  def self.author
169
- "KrauseFx"
193
+ ["KrauseFx", "modzelewski"]
170
194
  end
171
195
 
172
196
  def self.is_supported?(platform)
173
197
  [:ios, :mac, :android].include? platform
174
198
  end
199
+
175
200
  end
176
201
  end
177
202
  end
@@ -23,7 +23,11 @@ module Fastlane
23
23
  select_regex = params[:select_regex] if params[:select_regex] # Overwrite deprecated select_reqex
24
24
  exclude_regex = params[:exclude_regex]
25
25
 
26
- files = JSON.parse(File.read(compile_commands)).map { |compile_command| compile_command['file'] }
26
+ files = JSON.parse(File.read(compile_commands)).map do |compile_command|
27
+ file = compile_command['file']
28
+ File.exist?(file) ? file : File.join(compile_command['directory'], file)
29
+ end
30
+
27
31
  files.uniq!
28
32
  files.select! do |file|
29
33
  file_ruby = file.gsub('\ ', ' ')
@@ -62,6 +66,7 @@ module Fastlane
62
66
  oclint_args << "-enable-clang-static-analyzer" if params[:enable_clang_static_analyzer]
63
67
  oclint_args << "-enable-global-analysis" if params[:enable_global_analysis]
64
68
  oclint_args << "-allow-duplicated-violations" if params[:allow_duplicated_violations]
69
+ oclint_args << "-p #{params[:compile_commands]}" if params[:compile_commands]
65
70
 
66
71
  command = [
67
72
  command_prefix,
@@ -0,0 +1,34 @@
1
+ module Fastlane
2
+ module Actions
3
+ class ResetSimulatorsAction < Action
4
+ def self.run(params)
5
+ FastlaneCore::Simulator.reset_all
6
+ UI.success('Simulators reset')
7
+ end
8
+
9
+ def self.description
10
+ "Shutdown and reset running simulators"
11
+ end
12
+
13
+ def self.available_options
14
+ []
15
+ end
16
+
17
+ def self.output
18
+ nil
19
+ end
20
+
21
+ def self.return_value
22
+ nil
23
+ end
24
+
25
+ def self.authors
26
+ ["danramteke"]
27
+ end
28
+
29
+ def self.is_supported?(platform)
30
+ platform == :ios
31
+ end
32
+ end
33
+ end
34
+ end
@@ -55,7 +55,7 @@ module Fastlane
55
55
  return
56
56
  end
57
57
 
58
- if updater.respond_to? :highest_installed_gems
58
+ unless updater.respond_to? :highest_installed_gems
59
59
  UI.important "The update_fastlane action requires rubygems version 2.1.0 or greater."
60
60
  UI.important "Please update your version of ruby gems before proceeding."
61
61
  UI.command "gem install rubygems-update"
@@ -1,3 +1,3 @@
1
1
  module Fastlane
2
- VERSION = '1.67.0'.freeze
2
+ VERSION = '1.68.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.67.0
4
+ version: 1.68.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-22 00:00:00.000000000 Z
11
+ date: 2016-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: krausefx-shenzhen
@@ -759,6 +759,7 @@ files:
759
759
  - lib/fastlane/actions/recreate_schemes.rb
760
760
  - lib/fastlane/actions/register_devices.rb
761
761
  - lib/fastlane/actions/reset_git_repo.rb
762
+ - lib/fastlane/actions/reset_simulators.rb
762
763
  - lib/fastlane/actions/resign.rb
763
764
  - lib/fastlane/actions/restore_file.rb
764
765
  - lib/fastlane/actions/rocket.rb