fastlane-plugin-upload_dsym 0.1.1 → 0.1.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4cc3ffe0ef5721074757b2740819614f68f5fb154a51ee855ff1f1b297e9d2b
|
4
|
+
data.tar.gz: d78bbb43fe7dce6bb9e4ce3e0d329477799f4eff032200b79386a7d658483f9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bdb2ddf59e3c7a8582c61cef31de442f8f32d64b258bc7114abeeeb3b9581b8abcb4e91d21579beaa9358e9a918a2d045ff657035aed7c06b5918467db2588bc
|
7
|
+
data.tar.gz: e48c771695c58477c41ee9ea202aa09cf6e0286b39d058ff3356a29ae96e47ed6684e6dc2fbc8dded88f393387c25761aef32001347efcf54dfabf7f66e3790d
|
@@ -5,7 +5,9 @@ module Fastlane
|
|
5
5
|
module Actions
|
6
6
|
class UploadDsymAction < Action
|
7
7
|
def self.run(params)
|
8
|
+
require 'rest-client'
|
8
9
|
use_bugly = params[:use_bugly]
|
10
|
+
|
9
11
|
if use_bugly
|
10
12
|
upload_bugly(params)
|
11
13
|
else
|
@@ -17,6 +19,7 @@ module Fastlane
|
|
17
19
|
UI.message("[UploadDsymAction] [upload_specity] running ...... 🔵")
|
18
20
|
host = params[:host]
|
19
21
|
dsym_zip_file = params[:dsym_zip_file]
|
22
|
+
kvs = params[:kvs]
|
20
23
|
|
21
24
|
UI.user_error!("host not pass ❌") unless host
|
22
25
|
UI.user_error!("dsym_zip_file not pass ❌") unless dsym_zip_file
|
@@ -24,8 +27,21 @@ module Fastlane
|
|
24
27
|
UI.important("[UploadDsymAction] [upload_specity] host: #{host} ⚠️")
|
25
28
|
UI.important("[UploadDsymAction] [upload_specity] dsym_zip_file: #{dsym_zip_file} ⚠️")
|
26
29
|
|
27
|
-
cmd = "curl #{host} -F \"file=@#{dsym_zip_file}\""
|
28
|
-
Actions.sh(cmd)
|
30
|
+
# cmd = "curl #{host} -F \"file=@#{dsym_zip_file}\""
|
31
|
+
# Actions.sh(cmd)
|
32
|
+
|
33
|
+
args = {
|
34
|
+
'multipart' => true,
|
35
|
+
'file' => File.open(dsym_zip_file, 'rb'),
|
36
|
+
}
|
37
|
+
kvs.each do |k, v|
|
38
|
+
args[k.to_s] = v
|
39
|
+
end if kvs
|
40
|
+
|
41
|
+
RestClient.post(
|
42
|
+
host,
|
43
|
+
args
|
44
|
+
)
|
29
45
|
|
30
46
|
UI.success("[UploadDsymAction] [upload_specity] success upload #{dsym_zip_file} 🎉")
|
31
47
|
end
|
@@ -67,13 +83,11 @@ module Fastlane
|
|
67
83
|
end
|
68
84
|
|
69
85
|
def self.details
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
3. bugly: upload xx.dSYM/xx.Symbol.zip , like this: java -jar buglySymboliOS.jar -i Share.appex.dSYM -u -id <bugly_id> -key <bugly_key> -package <your_ios_appid> -version <your_app_version> => buglySymbol_Share_arm64-xxxx.zip"
|
86
|
+
'1. if you upload bugly, you must install bugly tool and set ENV to find bugly tool
|
87
|
+
wget https://bugly.qq.com/v2/sdk?id=<your_bugly_id> -O ./buglySymboliOS.zip
|
88
|
+
unzip ./buglySymboliOS.zip -d ${HOME}/tools
|
89
|
+
2. specity: upload xx.dSYM.zip
|
90
|
+
3. bugly: upload xx.dSYM/xx.Symbol.zip , like this: java -jar buglySymboliOS.jar -i Share.appex.dSYM -u -id <bugly_id> -key <bugly_key> -package <your_ios_appid> -version <your_app_version> => buglySymbol_Share_arm64-xxxx.zip'
|
77
91
|
end
|
78
92
|
|
79
93
|
def self.authors
|
@@ -148,6 +162,13 @@ module Fastlane
|
|
148
162
|
description: "buglySymboliOS.jar ........ -package <your_pass_package>",
|
149
163
|
optional: true,
|
150
164
|
type: String
|
165
|
+
),
|
166
|
+
FastlaneCore::ConfigItem.new(
|
167
|
+
key: :kvs,
|
168
|
+
env_name: "UPLOAD_DSYM_KVS",
|
169
|
+
description: "curl -Fkey=value",
|
170
|
+
optional: true,
|
171
|
+
type: Hash
|
151
172
|
)
|
152
173
|
]
|
153
174
|
end
|
metadata
CHANGED
@@ -1,15 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-upload_dsym
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- xiongzenghui
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rest-client
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 2.1.0
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '3.0'
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 2.1.0
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '3.0'
|
13
33
|
- !ruby/object:Gem::Dependency
|
14
34
|
name: pry
|
15
35
|
requirement: !ruby/object:Gem::Requirement
|