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: 3888b3147354d5cc35201a5adeeaaa8a8b290555185b2dbf718c43b6da6d3126
4
- data.tar.gz: 8bc5073eb284d943e15853792ed10f57f75b53499cb2b0d253fb62d20dee42bf
3
+ metadata.gz: f4cc3ffe0ef5721074757b2740819614f68f5fb154a51ee855ff1f1b297e9d2b
4
+ data.tar.gz: d78bbb43fe7dce6bb9e4ce3e0d329477799f4eff032200b79386a7d658483f9f
5
5
  SHA512:
6
- metadata.gz: 3e686fa324628f32ceb843689ddb6fb9c404b8df085f451f1f9ad882a088257bfe0cc665c831f399e056e1320bb28faf896342c2bdeb49e1bdd3851740c46b8d
7
- data.tar.gz: 273c11fcb73c108615c99280b8a85047ee174c1d72a3a6a3957050f3669c5e03b1127d7c45dba185bf134dd35eba880cda59a1e0931ed2f22c6bac0ff0d449d6
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
- "1. if you upload bugly, you must install bugly tool and set ENV to find bugly tool
71
- wget 'https://bugly.qq.com/v2/sdk?id=<your_bugly_id>' -O ./buglySymboliOS.zip
72
- unzip ./buglySymboliOS.zip -d ${HOME}/tools
73
-
74
- 2. specity: upload xx.dSYM.zip
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
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module UploadDsym
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  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.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-07-16 00:00:00.000000000 Z
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