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 +4 -4
- data/LICENSE +21 -2
- data/README.md +1 -1
- data/lib/fastlane/plugin/appmetrica/actions/upload_symbols_to_appmetrica.rb +33 -36
- data/lib/fastlane/plugin/appmetrica/version.rb +2 -2
- metadata +30 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74e48d332470dcda30facfef9350908f374042ece514d3f3cf91df561eb05927
|
4
|
+
data.tar.gz: bab6920710c9a820f7a60234a1aecf27d489118890de4adf17451610bbaed6da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19742996a8f8d957e67b619e45d68ade1a77dc79bc86708cd90f185625e39a52cfb0b7e3bf8aa57927399ff7d855ffafa8a78373ccb12fa981feb605776e7834
|
7
|
+
data.tar.gz: 8e42e4ce925081146c97fdc3bde985de73cef52525475aaaffe748c97ae460e7a460a756ec44ad6e03ffcdef55294d8dc535e0a634de5c20c0aa5e74fd563714
|
data/LICENSE
CHANGED
@@ -1,2 +1,21 @@
|
|
1
|
-
|
2
|
-
|
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.
|
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
|
-
|
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
|
-
|
21
|
-
|
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
|
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 <<
|
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.
|
26
|
+
cmd += files unless files.empty?
|
32
27
|
|
33
|
-
UI.message(
|
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) ==
|
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
|
-
|
39
|
+
File.absolute_path(file_path)
|
45
40
|
end
|
46
41
|
|
47
42
|
def self.find_binary(params)
|
48
|
-
params[:binary_path] ||= Dir[
|
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
|
52
|
-
|
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
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
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
|
-
|
65
|
+
'Upload dSYM symbolication files to AppMetrica'
|
70
66
|
end
|
71
67
|
|
72
68
|
def self.authors
|
73
|
-
[
|
69
|
+
['AppMetrica']
|
74
70
|
end
|
75
71
|
|
76
72
|
def self.details
|
77
|
-
|
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:
|
88
|
-
description:
|
89
|
-
|
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:
|
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:
|
95
|
+
description: 'Verbose mode. Displays additional information',
|
99
96
|
optional: true,
|
100
|
-
type:
|
97
|
+
type: Boolean),
|
101
98
|
FastlaneCore::ConfigItem.new(key: :files,
|
102
|
-
description:
|
103
|
-
|
104
|
-
|
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
|
-
[
|
108
|
+
%i[ios mac].include?(platform)
|
112
109
|
end
|
113
110
|
end
|
114
111
|
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.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
8
|
-
autorequire:
|
7
|
+
- AppMetrica
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
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:
|
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:
|
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:
|
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:
|
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
|
-
|
126
|
-
|
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/
|
150
|
+
homepage: https://github.com/appmetrica/appmetrica-fastlane-plugin
|
151
151
|
licenses:
|
152
|
-
-
|
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.
|
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: []
|