fastlane-plugin-appmetrica 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE +21 -2
- data/README.md +1 -1
- data/lib/fastlane/plugin/appmetrica/actions/upload_symbols_to_appmetrica.rb +28 -28
- data/lib/fastlane/plugin/appmetrica/version.rb +2 -2
- metadata +26 -26
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,55 +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
17
|
files = Array(params[:files]) +
|
20
18
|
Array(Actions.lane_context[SharedValues::DSYM_OUTPUT_PATH]) +
|
21
19
|
Array(Actions.lane_context[SharedValues::DSYM_PATHS])
|
22
20
|
|
23
|
-
files = files.compact.map { |file|
|
21
|
+
files = files.compact.map { |file| process_file(file, temp_dir) }
|
24
22
|
|
25
23
|
cmd = [params[:binary_path], "--post-api-key=#{params[:post_api_key]}"]
|
26
|
-
cmd <<
|
24
|
+
cmd << '--verbose' if params[:verbose]
|
27
25
|
cmd << "--package-output-path=#{package_output_path.shellescape}" unless package_output_path.nil?
|
28
26
|
cmd += files unless files.empty?
|
29
27
|
|
30
|
-
UI.message(
|
28
|
+
UI.message('Starting helper')
|
31
29
|
Actions.sh(cmd)
|
32
30
|
end
|
33
31
|
|
34
32
|
def self.process_file(file_path, temp_dir)
|
35
|
-
if File.extname(file_path) ==
|
33
|
+
if File.extname(file_path) == '.zip'
|
36
34
|
output_path = File.join(temp_dir, SecureRandom.uuid)
|
37
35
|
Dir.mkdir(output_path)
|
38
36
|
Actions.sh("unzip -o #{file_path.shellescape} -d #{output_path.shellescape} 2>/dev/null")
|
39
37
|
return output_path
|
40
38
|
end
|
41
|
-
|
39
|
+
File.absolute_path(file_path)
|
42
40
|
end
|
43
41
|
|
44
42
|
def self.find_binary(params)
|
45
|
-
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
|
46
45
|
|
47
46
|
unless params[:binary_path]
|
48
|
-
UI.user_error!("Failed to find 'helper' binary. Install
|
49
|
-
|
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')
|
50
49
|
end
|
51
50
|
|
52
51
|
params[:binary_path] = File.expand_path(params[:binary_path]).shellescape
|
53
52
|
|
54
53
|
cli_version = Gem::Version.new(`#{params[:binary_path]} --version`.strip)
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
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!")
|
59
58
|
end
|
60
59
|
|
61
60
|
#####################################################
|
@@ -63,49 +62,50 @@ module Fastlane
|
|
63
62
|
#####################################################
|
64
63
|
|
65
64
|
def self.description
|
66
|
-
|
65
|
+
'Upload dSYM symbolication files to AppMetrica'
|
67
66
|
end
|
68
67
|
|
69
68
|
def self.authors
|
70
|
-
[
|
69
|
+
['AppMetrica']
|
71
70
|
end
|
72
71
|
|
73
72
|
def self.details
|
74
|
-
|
73
|
+
'This plugin allows uploading dSYM symbolication files to AppMetrica. It should be applied if you use Bitcode'
|
75
74
|
end
|
76
75
|
|
77
76
|
def self.available_options
|
78
77
|
[
|
79
78
|
FastlaneCore::ConfigItem.new(key: :binary_path,
|
79
|
+
env_name: 'APPMETRICA_HELPER_PATH',
|
80
80
|
description: "The path to 'helper' binary in AppMetrica framework",
|
81
81
|
optional: true,
|
82
82
|
type: String),
|
83
83
|
FastlaneCore::ConfigItem.new(key: :post_api_key,
|
84
|
-
env_name:
|
85
|
-
description:
|
86
|
-
|
84
|
+
env_name: 'APPMETRICA_POST_API_KEY',
|
85
|
+
description: 'Post API key. This mandatory parameter is '\
|
86
|
+
'used to upload dSYMs to AppMetrica',
|
87
87
|
optional: false,
|
88
88
|
type: String),
|
89
89
|
FastlaneCore::ConfigItem.new(key: :package_output_path,
|
90
|
-
description:
|
90
|
+
description: 'The path where temporary archives are stored. '\
|
91
91
|
"If not specified, default system's temporary directory used instead",
|
92
92
|
optional: true,
|
93
93
|
type: String),
|
94
94
|
FastlaneCore::ConfigItem.new(key: :verbose,
|
95
|
-
description:
|
95
|
+
description: 'Verbose mode. Displays additional information',
|
96
96
|
optional: true,
|
97
97
|
type: Boolean),
|
98
98
|
FastlaneCore::ConfigItem.new(key: :files,
|
99
|
-
description:
|
100
|
-
|
101
|
-
|
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',
|
102
102
|
optional: true,
|
103
103
|
type: Array)
|
104
104
|
]
|
105
105
|
end
|
106
106
|
|
107
107
|
def self.is_supported?(platform)
|
108
|
-
[
|
108
|
+
%i[ios mac].include?(platform)
|
109
109
|
end
|
110
110
|
end
|
111
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
|
-
-
|
7
|
+
- AppMetrica
|
8
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
|
-
- !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
139
|
description:
|
140
|
-
email: appmetrica
|
140
|
+
email: admin@appmetrica.io
|
141
141
|
executables: []
|
142
142
|
extensions: []
|
143
143
|
extra_rdoc_files: []
|
@@ -147,9 +147,9 @@ 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
154
|
post_install_message:
|
155
155
|
rdoc_options: []
|
@@ -166,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
166
166
|
- !ruby/object:Gem::Version
|
167
167
|
version: '0'
|
168
168
|
requirements: []
|
169
|
-
rubygems_version: 3.
|
169
|
+
rubygems_version: 3.5.3
|
170
170
|
signing_key:
|
171
171
|
specification_version: 4
|
172
172
|
summary: Upload dSYM symbolication files to AppMetrica
|