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: 47a17cc8886681f85dddfec037710ae43e421274cfdad3eecda51d8cbffb841f
4
- data.tar.gz: ef338c5fb05354b9727fa1740312c16bcfd65afb1070077283241cda65fb59bc
3
+ metadata.gz: d7b2938aaaafa99a07269d0f0cb6a59b242d0fec2e4e99fffd37cc87d7c256e2
4
+ data.tar.gz: d8b0ab5b1cb141699e42e79c0460a3ec04b3a0f63dd9aba58ad6c6c8f8de58ba
5
5
  SHA512:
6
- metadata.gz: a85166ab0d80bfa3a26a498807337db518721a5b5c3349f049eb4426c6c95e7eb21d30c28d832ecd95abe552bc157d1339d48fc22655329926c34f555946317f
7
- data.tar.gz: 7e945ae0b58efe875cc9e4d453d72316e641686bde72f8b7ea6e87c260fe687912e66f350af2a1b0818dcd3b2a0281fddd3333d869fcd9d79e07648851ab3114
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 ❌") unless host
25
- UI.user_error!("dsym_zip_file not pass ❌") unless dsym_zip_file
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
- RestClient.post(
42
- host,
43
- args
44
- )
45
-
46
- UI.success("[UploadDsymAction] [upload_specity] success upload #{dsym_zip_file} πŸŽ‰")
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 = params[:buglyid]
52
- buglykey = params[:buglykey]
55
+ UI.message("[UploadDsymAction] [upload_bugly] πŸ”΅running ...... ")
56
+ buglyid = params[:buglyid]
57
+ buglykey = params[:buglykey]
53
58
  buglytoolpath = params[:buglytoolpath]
54
- dsym_files = params[:dsym_files]
55
- version = params[:version]
56
- package = params[:package]
57
-
58
- UI.user_error!("buglyid not pass ❌") unless buglyid
59
- UI.user_error!("buglykey not pass ❌") unless buglykey
60
- UI.user_error!("buglytoolpath not pass ❌") unless buglytoolpath
61
- UI.user_error!("dsym_files not pass ❌") unless dsym_files
62
- UI.user_error!("version not pass ❌") unless version
63
- UI.user_error!("package not pass ❌") unless package
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
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module UploadDsym
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
4
4
  end
5
5
  end
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.3
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-01 00:00:00.000000000 Z
11
+ date: 2020-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client