Skip to content

Commit

Permalink
release 0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
GLinnik21 committed Sep 30, 2019
1 parent 0c149be commit de993d1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
os: osx
language: ruby
rvm:
- 2.2.2
2 changes: 1 addition & 1 deletion fastlane-plugin-appmetrica.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Gem::Specification.new do |spec|

spec.summary = 'Upload dSYM symbolication files to AppMetrica'
spec.homepage = 'https://github.com/yandexmobile/metrica-plugin-fastlane'
spec.license = 'Proprietary'
spec.license = 'Nonstandard'

spec.files = Dir["lib/**/*"] + %w(README.md LICENSE)
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ def self.run_helper(temp_dir, params)
package_output_path = File.absolute_path(params[:package_output_path])
end

files = params[:files] || [Actions.lane_context[SharedValues::DSYM_OUTPUT_PATH]] || []
files = []
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 All @@ -32,8 +36,10 @@ def self.run_helper(temp_dir, params)

def self.process_file(file_path, temp_dir)
if File.extname(file_path) == ".zip"
Actions.sh("unzip -o #{file_path.shellescape} -d #{temp_dir.shellescape} 2>/dev/null")
return temp_dir
output_path = File.join(temp_dir, SecureRandom.uuid)
Dir.mkdir(output_path)
Actions.sh("unzip -o #{file_path.shellescape} -d #{output_path.shellescape} 2>/dev/null")
return output_path
end
return File.absolute_path(file_path)
end
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.0"
VERSION = "0.1.1"
CLI_VERSION = "~> 0.0"
end
end

0 comments on commit de993d1

Please sign in to comment.