fastlane-plugin-appmetrica 0.1.0 → 0.1.1

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
  SHA256:
3
- metadata.gz: 676f79de4bdb5715a4f2fe676494ef43373a62be1d4abc2c0be9957a27be8206
4
- data.tar.gz: dc6b099d21cc3f74723a6a8701a3edbb93feb75a2a550bc2758d594910351000
3
+ metadata.gz: 9674ae538cf32deea5c0925d03448e0a4ee4528d79a05baa7c4b19256255a8b4
4
+ data.tar.gz: 5c92a6a6a6e99d4a0f8aa3609c9af20932c33ca9a38afae82aba73126539caa6
5
5
  SHA512:
6
- metadata.gz: d8fc88e6f3b8baf70153b5cb80454ae56992efe43ad3f98df4e50d8b6f1011331df2c20387aba5e3685056fec06dfcf939fc02fc364f772c8e3a3b4365857f9e
7
- data.tar.gz: 779e6dc9d7425594e93c2f90bc135d125e7f57142ae7be08629f4456b172075c0591d6f5ca6b5a6a6226a7e8dfd9c171b03bbac19e560fe758f1cadbec94fee9
6
+ metadata.gz: 0d6f30dc84543fa645c9ccb5aa0f365f70f5fd7fcd7d6089e3b9c97434188d988e5747c6620da608ebec58ac1cb32c7439b1017d1badb20fe8c81063be95b562
7
+ data.tar.gz: e668b995bd367435b27955691da9f3fba4a2a36a1d41c3faa01155c0ca3d55fd114c071a9cba80dcd083ed29db6c245f5df86709cc55114b9f525e3e3eebfd71
data/README.md CHANGED
@@ -13,7 +13,7 @@ fastlane add_plugin appmetrica
13
13
  ## About AppMetrica Plugin
14
14
 
15
15
  Upload dSYM symbolication files to AppMetrica.
16
- Documentation could be found at [AppMetrica official site](https://appmetrica.yandex.ru/docs/crash/upload-dsym.html)
16
+ Documentation could be found at [AppMetrica official site](https://appmetrica.yandex.ru/docs/crashes/upload-dsym.html)
17
17
 
18
18
  ## Example
19
19
 
@@ -16,7 +16,11 @@ module Fastlane
16
16
  package_output_path = File.absolute_path(params[:package_output_path])
17
17
  end
18
18
 
19
- files = params[:files] || [Actions.lane_context[SharedValues::DSYM_OUTPUT_PATH]] || []
19
+ files = []
20
+ files += params[:files] if params[:files]
21
+ files << Actions.lane_context[SharedValues::DSYM_OUTPUT_PATH] if Actions.lane_context[SharedValues::DSYM_OUTPUT_PATH]
22
+ files += Actions.lane_context[SharedValues::DSYM_PATHS] if Actions.lane_context[SharedValues::DSYM_PATHS]
23
+
20
24
  files = files.map do |file|
21
25
  self.process_file(file, temp_dir) unless file.nil?
22
26
  end
@@ -32,8 +36,10 @@ module Fastlane
32
36
 
33
37
  def self.process_file(file_path, temp_dir)
34
38
  if File.extname(file_path) == ".zip"
35
- Actions.sh("unzip -o #{file_path.shellescape} -d #{temp_dir.shellescape} 2>/dev/null")
36
- return temp_dir
39
+ output_path = File.join(temp_dir, SecureRandom.uuid)
40
+ Dir.mkdir(output_path)
41
+ Actions.sh("unzip -o #{file_path.shellescape} -d #{output_path.shellescape} 2>/dev/null")
42
+ return output_path
37
43
  end
38
44
  return File.absolute_path(file_path)
39
45
  end
@@ -1,6 +1,6 @@
1
1
  module Fastlane
2
2
  module Appmetrica
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  CLI_VERSION = "~> 0.0"
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-appmetrica
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yandex, LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-25 00:00:00.000000000 Z
11
+ date: 2019-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry