fastlane-plugin-appmetrica 0.1.3 → 0.3.0

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: 01084b91e602d14633b065586e2d8e9b71a7c2bbd3781a7e7006ca38ddc1e67a
4
- data.tar.gz: 3337eb2b9c298e5fb008a0e6c31b1d913bf07dcc55838ae75298fcac82eda868
3
+ metadata.gz: 74e48d332470dcda30facfef9350908f374042ece514d3f3cf91df561eb05927
4
+ data.tar.gz: bab6920710c9a820f7a60234a1aecf27d489118890de4adf17451610bbaed6da
5
5
  SHA512:
6
- metadata.gz: fce2842b604c6859b5b041ecbd30076a7ba69aca0e18293776001ee0c43c64d858bf3745a7ef28461be45293dd1968e3d44765a3dc2fe4e882900e09ed6fb5c2
7
- data.tar.gz: 02214c3a0d121db03170db5a1e2b1eddfb797032a4362408ef30afcf90d314b68d563d7f1dbb349c0046376edeafa8a6b6b66544e054457e90430e049db1e6d9
6
+ metadata.gz: 19742996a8f8d957e67b619e45d68ade1a77dc79bc86708cd90f185625e39a52cfb0b7e3bf8aa57927399ff7d855ffafa8a78373ccb12fa981feb605776e7834
7
+ data.tar.gz: 8e42e4ce925081146c97fdc3bde985de73cef52525475aaaffe748c97ae460e7a460a756ec44ad6e03ffcdef55294d8dc535e0a634de5c20c0aa5e74fd563714
data/LICENSE CHANGED
@@ -1,2 +1,21 @@
1
- EULA could be found at:
2
- https://yandex.com/legal/appmetrica_sdk_agreement/
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2023 YANDEX LLC
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
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/crashes/upload-dsym.html)
16
+ Documentation could be found at [AppMetrica official site](https://appmetrica.io/docs/en/data-collection/upload-dsym)
17
17
 
18
18
  ## Example
19
19
 
@@ -7,58 +7,54 @@ module Fastlane
7
7
  find_binary(params)
8
8
 
9
9
  Dir.mktmpdir do |temp_dir|
10
- self.run_helper(temp_dir, params)
10
+ run_helper(temp_dir, params)
11
11
  end
12
12
  end
13
13
 
14
14
  def self.run_helper(temp_dir, params)
15
- unless params[:package_output_path].nil?
16
- package_output_path = File.absolute_path(params[:package_output_path])
17
- end
15
+ package_output_path = File.absolute_path(params[:package_output_path]) unless params[:package_output_path].nil?
18
16
 
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]
17
+ files = Array(params[:files]) +
18
+ Array(Actions.lane_context[SharedValues::DSYM_OUTPUT_PATH]) +
19
+ Array(Actions.lane_context[SharedValues::DSYM_PATHS])
23
20
 
24
- files = files.map do |file|
25
- self.process_file(file, temp_dir) unless file.nil?
26
- end
21
+ files = files.compact.map { |file| process_file(file, temp_dir) }
27
22
 
28
23
  cmd = [params[:binary_path], "--post-api-key=#{params[:post_api_key]}"]
29
- cmd << "--verbose" if params[:verbose]
24
+ cmd << '--verbose' if params[:verbose]
30
25
  cmd << "--package-output-path=#{package_output_path.shellescape}" unless package_output_path.nil?
31
- cmd += files unless files.nil?
26
+ cmd += files unless files.empty?
32
27
 
33
- UI.message("Starting helper")
28
+ UI.message('Starting helper')
34
29
  Actions.sh(cmd)
35
30
  end
36
31
 
37
32
  def self.process_file(file_path, temp_dir)
38
- if File.extname(file_path) == ".zip"
33
+ if File.extname(file_path) == '.zip'
39
34
  output_path = File.join(temp_dir, SecureRandom.uuid)
40
35
  Dir.mkdir(output_path)
41
36
  Actions.sh("unzip -o #{file_path.shellescape} -d #{output_path.shellescape} 2>/dev/null")
42
37
  return output_path
43
38
  end
44
- return File.absolute_path(file_path)
39
+ File.absolute_path(file_path)
45
40
  end
46
41
 
47
42
  def self.find_binary(params)
48
- params[:binary_path] ||= Dir["./Pods/**/helper"].last
43
+ params[:binary_path] ||= Dir['./Pods/**/AppMetricaCrashes/helper'].last
44
+ params[:binary_path] ||= Dir['./Pods/**/*MobileMetrica/helper'].last # backward compatibility with YandexMobileMetrica
49
45
 
50
46
  unless params[:binary_path]
51
- UI.user_error!("Failed to find 'helper' binary. Install YandexMobileMetrica 3.8.0 pod or higher. "\
52
- "You may specify the location of the binary by using the binary_path option")
47
+ UI.user_error!("Failed to find 'helper' binary. Install AppMetricaCrashes 5.5.0 pod or higher. "\
48
+ 'You may specify the location of the binary by using the binary_path option')
53
49
  end
54
50
 
55
51
  params[:binary_path] = File.expand_path(params[:binary_path]).shellescape
56
52
 
57
53
  cli_version = Gem::Version.new(`#{params[:binary_path]} --version`.strip)
58
- unless Gem::Requirement.new(Fastlane::Appmetrica::CLI_VERSION) =~ cli_version
59
- UI.user_error!("Your 'helper' is outdatedcd, please upgrade to at least version "\
60
- "#{Fastlane::Appmetrica::CLI_VERSION} and start again!")
61
- end
54
+ return if Gem::Requirement.new(Fastlane::Appmetrica::CLI_VERSION) =~ cli_version
55
+
56
+ UI.user_error!("Your 'helper' is outdated, please upgrade to at least version "\
57
+ "#{Fastlane::Appmetrica::CLI_VERSION} and start again!")
62
58
  end
63
59
 
64
60
  #####################################################
@@ -66,49 +62,50 @@ module Fastlane
66
62
  #####################################################
67
63
 
68
64
  def self.description
69
- "Upload dSYM symbolication files to AppMetrica"
65
+ 'Upload dSYM symbolication files to AppMetrica'
70
66
  end
71
67
 
72
68
  def self.authors
73
- ["Yandex, LLC"]
69
+ ['AppMetrica']
74
70
  end
75
71
 
76
72
  def self.details
77
- "This plugin allows uploading dSYM symbolication files to AppMetrica. It should be applied if you use Bitcode"
73
+ 'This plugin allows uploading dSYM symbolication files to AppMetrica. It should be applied if you use Bitcode'
78
74
  end
79
75
 
80
76
  def self.available_options
81
77
  [
82
78
  FastlaneCore::ConfigItem.new(key: :binary_path,
79
+ env_name: 'APPMETRICA_HELPER_PATH',
83
80
  description: "The path to 'helper' binary in AppMetrica framework",
84
81
  optional: true,
85
82
  type: String),
86
83
  FastlaneCore::ConfigItem.new(key: :post_api_key,
87
- env_name: "APPMETRICA_POST_API_KEY",
88
- description: "Post API key. This mandatory parameter is "\
89
- "used to upload dSYMs to AppMetrica",
84
+ env_name: 'APPMETRICA_POST_API_KEY',
85
+ description: 'Post API key. This mandatory parameter is '\
86
+ 'used to upload dSYMs to AppMetrica',
90
87
  optional: false,
91
88
  type: String),
92
89
  FastlaneCore::ConfigItem.new(key: :package_output_path,
93
- description: "The path where temporary archives are stored. "\
90
+ description: 'The path where temporary archives are stored. '\
94
91
  "If not specified, default system's temporary directory used instead",
95
92
  optional: true,
96
93
  type: String),
97
94
  FastlaneCore::ConfigItem.new(key: :verbose,
98
- description: "Verbose mode. Displays additional information",
95
+ description: 'Verbose mode. Displays additional information',
99
96
  optional: true,
100
- type: String),
97
+ type: Boolean),
101
98
  FastlaneCore::ConfigItem.new(key: :files,
102
- description: "An optional list of dSYM files or directories that "\
103
- "contain these files to upload. If not specified, "\
104
- "the local working directory used by default",
99
+ description: 'An optional list of dSYM files or directories that '\
100
+ 'contain these files to upload. If not specified, '\
101
+ 'the local working directory used by default',
105
102
  optional: true,
106
103
  type: Array)
107
104
  ]
108
105
  end
109
106
 
110
107
  def self.is_supported?(platform)
111
- [:ios, :mac].include?(platform)
108
+ %i[ios mac].include?(platform)
112
109
  end
113
110
  end
114
111
  end
@@ -1,6 +1,6 @@
1
1
  module Fastlane
2
2
  module Appmetrica
3
- VERSION = "0.1.3"
4
- CLI_VERSION = "~> 0.0"
3
+ VERSION = '0.3.0'
4
+ CLI_VERSION = '~> 1.0'
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-appmetrica
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
- - Yandex, LLC
8
- autorequire:
7
+ - AppMetrica
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-25 00:00:00.000000000 Z
11
+ date: 2024-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: pry
14
+ name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
@@ -25,7 +25,21 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: bundler
28
+ name: fastlane
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 2.131.0
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 2.131.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: pry
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
45
  - - ">="
@@ -39,7 +53,7 @@ dependencies:
39
53
  - !ruby/object:Gem::Version
40
54
  version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
- name: rspec
56
+ name: rake
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
59
  - - ">="
@@ -53,7 +67,7 @@ dependencies:
53
67
  - !ruby/object:Gem::Version
54
68
  version: '0'
55
69
  - !ruby/object:Gem::Dependency
56
- name: rspec_junit_formatter
70
+ name: rspec
57
71
  requirement: !ruby/object:Gem::Requirement
58
72
  requirements:
59
73
  - - ">="
@@ -67,7 +81,7 @@ dependencies:
67
81
  - !ruby/object:Gem::Version
68
82
  version: '0'
69
83
  - !ruby/object:Gem::Dependency
70
- name: rake
84
+ name: rspec_junit_formatter
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
87
  - - ">="
@@ -122,22 +136,8 @@ dependencies:
122
136
  - - ">="
123
137
  - !ruby/object:Gem::Version
124
138
  version: '0'
125
- - !ruby/object:Gem::Dependency
126
- name: fastlane
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- version: 2.131.0
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - ">="
137
- - !ruby/object:Gem::Version
138
- version: 2.131.0
139
- description:
140
- email: appmetrica@yandex-team.ru
139
+ description:
140
+ email: admin@appmetrica.io
141
141
  executables: []
142
142
  extensions: []
143
143
  extra_rdoc_files: []
@@ -147,11 +147,11 @@ files:
147
147
  - lib/fastlane/plugin/appmetrica.rb
148
148
  - lib/fastlane/plugin/appmetrica/actions/upload_symbols_to_appmetrica.rb
149
149
  - lib/fastlane/plugin/appmetrica/version.rb
150
- homepage: https://github.com/yandexmobile/metrica-plugin-fastlane
150
+ homepage: https://github.com/appmetrica/appmetrica-fastlane-plugin
151
151
  licenses:
152
- - Nonstandard
152
+ - MIT
153
153
  metadata: {}
154
- post_install_message:
154
+ post_install_message:
155
155
  rdoc_options: []
156
156
  require_paths:
157
157
  - lib
@@ -166,8 +166,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
166
166
  - !ruby/object:Gem::Version
167
167
  version: '0'
168
168
  requirements: []
169
- rubygems_version: 3.0.6
170
- signing_key:
169
+ rubygems_version: 3.5.3
170
+ signing_key:
171
171
  specification_version: 4
172
172
  summary: Upload dSYM symbolication files to AppMetrica
173
173
  test_files: []