Skip to content

Commit

Permalink
fix #2
Browse files Browse the repository at this point in the history
  • Loading branch information
bamx23 committed Dec 25, 2019
1 parent 16a7cba commit d162f54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def self.run_helper(temp_dir, params)
files += params[:files] if params[:files]
files << Actions.lane_context[SharedValues::DSYM_OUTPUT_PATH] if Actions.lane_context[SharedValues::DSYM_OUTPUT_PATH]
files += Actions.lane_context[SharedValues::DSYM_PATHS] if Actions.lane_context[SharedValues::DSYM_PATHS]

files = files.map do |file|
self.process_file(file, temp_dir) unless file.nil?
end
Expand Down Expand Up @@ -52,9 +52,9 @@ def self.find_binary(params)
"You may specify the location of the binary by using the binary_path option")
end

params[:binary_path] = File.expand_path(params[:binary_path])
params[:binary_path] = File.expand_path(params[:binary_path]).shellescape

cli_version = Gem::Version.new(`#{params[:binary_path].shellescape} --version`.strip)
cli_version = Gem::Version.new(`#{params[:binary_path]} --version`.strip)
unless Gem::Requirement.new(Fastlane::Appmetrica::CLI_VERSION) =~ cli_version
UI.user_error!("Your 'helper' is outdatedcd, please upgrade to at least version "\
"#{Fastlane::Appmetrica::CLI_VERSION} and start again!")
Expand Down
2 changes: 1 addition & 1 deletion lib/fastlane/plugin/appmetrica/version.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Fastlane
module Appmetrica
VERSION = "0.1.2"
VERSION = "0.1.3"
CLI_VERSION = "~> 0.0"
end
end

0 comments on commit d162f54

Please sign in to comment.