fastlane-plugin-upload_dsym 0.1.3 β 0.1.4
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7b2938aaaafa99a07269d0f0cb6a59b242d0fec2e4e99fffd37cc87d7c256e2
|
4
|
+
data.tar.gz: d8b0ab5b1cb141699e42e79c0460a3ec04b3a0f63dd9aba58ad6c6c8f8de58ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5128bc640aea2eb4308c26bdfb79ffa4fa4765d3ebe6657e6b4760561755492c8a4e57db32fef6c0cd4ae6ef9d818494911003ede2a3a461c8d7facc47b1329d
|
7
|
+
data.tar.gz: d2ede2ec04590eb98f3cc20c1ea91ddf7ca1bd4432cd2cad7d7960ade4c3ddfadaf9feb4e77f2ea341551692b7e9049617f7691eed42bce7fdc68274a9cf6d73
|
@@ -16,58 +16,63 @@ module Fastlane
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def self.upload_specity(params)
|
19
|
-
UI.message("[UploadDsymAction] [upload_specity] running ......
|
19
|
+
UI.message("[UploadDsymAction] [upload_specity] π΅running ...... ")
|
20
20
|
host = params[:host]
|
21
21
|
dsym_zip_file = params[:dsym_zip_file]
|
22
22
|
kvs = params[:kvs]
|
23
23
|
|
24
|
-
UI.user_error!("host not pass
|
25
|
-
UI.user_error!("dsym_zip_file not pass
|
24
|
+
UI.user_error!("βhost not pass") unless host
|
25
|
+
UI.user_error!("βdsym_zip_file not pass") unless dsym_zip_file
|
26
26
|
|
27
|
-
UI.important("[UploadDsymAction] [upload_specity] host: #{host}
|
28
|
-
UI.important("[UploadDsymAction] [upload_specity] dsym_zip_file: #{dsym_zip_file}
|
27
|
+
UI.important("[UploadDsymAction] [upload_specity] host: #{host}")
|
28
|
+
UI.important("[UploadDsymAction] [upload_specity] dsym_zip_file: #{dsym_zip_file}")
|
29
29
|
|
30
30
|
# cmd = "curl #{host} -F \"file=@#{dsym_zip_file}\""
|
31
31
|
# Actions.sh(cmd)
|
32
32
|
|
33
33
|
args = {
|
34
34
|
'multipart' => true,
|
35
|
-
'file' => File.open(dsym_zip_file, 'rb')
|
35
|
+
'file' => File.open(dsym_zip_file, 'rb')
|
36
36
|
}
|
37
37
|
kvs.each do |k, v|
|
38
38
|
args[k.to_s] = v
|
39
39
|
end if kvs
|
40
40
|
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
41
|
+
begin
|
42
|
+
RestClient.post(
|
43
|
+
host,
|
44
|
+
args
|
45
|
+
)
|
46
|
+
UI.success("[UploadDsymAction] [upload_specity] πsuccess upload #{dsym_zip_file}")
|
47
|
+
true
|
48
|
+
rescue => exception
|
49
|
+
UI.error("[UploadDsymAction] [upload_specity] βfailed upload dsym")
|
50
|
+
false
|
51
|
+
end
|
47
52
|
end
|
48
53
|
|
49
54
|
def self.upload_bugly(params)
|
50
|
-
UI.message("[UploadDsymAction] [upload_bugly] running ......
|
51
|
-
buglyid
|
52
|
-
buglykey
|
55
|
+
UI.message("[UploadDsymAction] [upload_bugly] π΅running ...... ")
|
56
|
+
buglyid = params[:buglyid]
|
57
|
+
buglykey = params[:buglykey]
|
53
58
|
buglytoolpath = params[:buglytoolpath]
|
54
|
-
dsym_files
|
55
|
-
version
|
56
|
-
package
|
57
|
-
|
58
|
-
UI.user_error!("buglyid not pass
|
59
|
-
UI.user_error!("buglykey not pass
|
60
|
-
UI.user_error!("buglytoolpath not pass
|
61
|
-
UI.user_error!("dsym_files not pass
|
62
|
-
UI.user_error!("version not pass
|
63
|
-
UI.user_error!("package not pass
|
64
|
-
|
65
|
-
UI.important("[UploadDsymAction] [upload_bugly] buglyid: #{buglyid}
|
66
|
-
UI.important("[UploadDsymAction] [upload_bugly] buglykey: #{buglykey}
|
67
|
-
UI.important("[UploadDsymAction] [upload_bugly] buglytoolpath: #{buglytoolpath}
|
68
|
-
UI.important("[UploadDsymAction] [upload_bugly] dsym_files: #{dsym_files}
|
69
|
-
UI.important("[UploadDsymAction] [upload_bugly] version: #{version}
|
70
|
-
UI.important("[UploadDsymAction] [upload_bugly] package: #{package}
|
59
|
+
dsym_files = params[:dsym_files]
|
60
|
+
version = params[:version]
|
61
|
+
package = params[:package]
|
62
|
+
|
63
|
+
UI.user_error!("βbuglyid not pass") unless buglyid
|
64
|
+
UI.user_error!("βbuglykey not pass") unless buglykey
|
65
|
+
UI.user_error!("βbuglytoolpath not pass") unless buglytoolpath
|
66
|
+
UI.user_error!("βdsym_files not pass") unless dsym_files
|
67
|
+
UI.user_error!("βversion not pass") unless version
|
68
|
+
UI.user_error!("βpackage not pass") unless package
|
69
|
+
|
70
|
+
UI.important("[UploadDsymAction] [upload_bugly] buglyid: #{buglyid}")
|
71
|
+
UI.important("[UploadDsymAction] [upload_bugly] buglykey: #{buglykey}")
|
72
|
+
UI.important("[UploadDsymAction] [upload_bugly] buglytoolpath: #{buglytoolpath}")
|
73
|
+
UI.important("[UploadDsymAction] [upload_bugly] dsym_files: #{dsym_files}")
|
74
|
+
UI.important("[UploadDsymAction] [upload_bugly] version: #{version}")
|
75
|
+
UI.important("[UploadDsymAction] [upload_bugly] package: #{package}")
|
71
76
|
|
72
77
|
dsym_files.each do |df|
|
73
78
|
cmd = "java -jar #{buglytoolpath} -i #{df} -u -id #{buglyid} -key #{buglykey} -package #{package} -version #{version}"
|
@@ -75,7 +80,7 @@ module Fastlane
|
|
75
80
|
Actions.sh(cmd)
|
76
81
|
end
|
77
82
|
|
78
|
-
UI.success("[UploadDsymAction] [upload_bugly] success upload to upload_bugly
|
83
|
+
UI.success("[UploadDsymAction] [upload_bugly] πsuccess upload to upload_bugly")
|
79
84
|
end
|
80
85
|
|
81
86
|
def self.description
|
@@ -98,7 +103,6 @@ module Fastlane
|
|
98
103
|
[
|
99
104
|
FastlaneCore::ConfigItem.new(
|
100
105
|
key: :host,
|
101
|
-
env_name: "UPLOAD_DSYM_HOST",
|
102
106
|
description: "where upload your dsym.zip",
|
103
107
|
optional: true,
|
104
108
|
type: String,
|
@@ -106,14 +110,12 @@ module Fastlane
|
|
106
110
|
),
|
107
111
|
FastlaneCore::ConfigItem.new(
|
108
112
|
key: :dsym_zip_file,
|
109
|
-
env_name: "UPLOAD_DSYM_ZIP_FILE",
|
110
113
|
description: "where upload your xx.dsym.zip like this : /path/to/xxx_com.xxx.ios-dev_1.2.3-diff_13236.dSYM.zip",
|
111
114
|
optional: true,
|
112
115
|
type: String
|
113
116
|
),
|
114
117
|
FastlaneCore::ConfigItem.new(
|
115
118
|
key: :use_bugly,
|
116
|
-
env_name: "UPLOAD_DSYM_USE_BUGLY",
|
117
119
|
description: "is upload to bugly ?",
|
118
120
|
is_string: false,
|
119
121
|
optional: true,
|
@@ -122,21 +124,18 @@ module Fastlane
|
|
122
124
|
),
|
123
125
|
FastlaneCore::ConfigItem.new(
|
124
126
|
key: :buglyid,
|
125
|
-
env_name: "UPLOAD_DSYM_BUGLY_ID",
|
126
127
|
description: "your bugly id",
|
127
128
|
optional: true,
|
128
129
|
type: String
|
129
130
|
),
|
130
131
|
FastlaneCore::ConfigItem.new(
|
131
132
|
key: :buglykey,
|
132
|
-
env_name: "UPLOAD_DSYM_BUGLY_KEY",
|
133
133
|
description: "your bugly key",
|
134
134
|
optional: true,
|
135
135
|
type: String
|
136
136
|
),
|
137
137
|
FastlaneCore::ConfigItem.new(
|
138
138
|
key: :buglytoolpath,
|
139
|
-
env_name: "UPLOAD_DSYM_BUGLY_TOOL_PATH",
|
140
139
|
description: 'where buglySymboliOS.jar ? like this : ${HOME}/tools/buglySymboliOS.jar',
|
141
140
|
optional: true,
|
142
141
|
default_value: '~/tools/buglySymboliOS.jar',
|
@@ -144,28 +143,24 @@ module Fastlane
|
|
144
143
|
),
|
145
144
|
FastlaneCore::ConfigItem.new(
|
146
145
|
key: :dsym_files,
|
147
|
-
env_name: "UPLOAD_DSYM_FILE",
|
148
146
|
description: "where upload your xx.dSYM files like this : [/path/to/aa.appex.dSYM, /path/to/bb.appex.dSYM, /path/to/cc.appex.dSYM]",
|
149
147
|
optional: true,
|
150
148
|
type: Array
|
151
149
|
),
|
152
150
|
FastlaneCore::ConfigItem.new(
|
153
151
|
key: :version,
|
154
|
-
env_name: "UPLOAD_DSYM_VERSION",
|
155
152
|
description: "buglySymboliOS.jar ........ -version <your_pass_version>",
|
156
153
|
optional: true,
|
157
154
|
type: String
|
158
155
|
),
|
159
156
|
FastlaneCore::ConfigItem.new(
|
160
157
|
key: :package,
|
161
|
-
env_name: "UPLOAD_DSYM_PACKAGE",
|
162
158
|
description: "buglySymboliOS.jar ........ -package <your_pass_package>",
|
163
159
|
optional: true,
|
164
160
|
type: String
|
165
161
|
),
|
166
162
|
FastlaneCore::ConfigItem.new(
|
167
163
|
key: :kvs,
|
168
|
-
env_name: "UPLOAD_DSYM_KVS",
|
169
164
|
description: "curl -Fkey=value",
|
170
165
|
optional: true,
|
171
166
|
type: Hash
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- xiongzenghui
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-03-
|
11
|
+
date: 2020-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|