fastlane-plugin-unp 0.1.0 → 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: de0d02c2835d48f09780b2f6d8e8b058d06c49e5588d5db6d9c90e860fee85f0
|
4
|
+
data.tar.gz: 6957bec5dc4c5e07c519171d86522f9550421c3d08f8de341f12d67d42d41cbf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 066d61b6e175ace92b7a132d9a6f9f139ee02e0bd6f5f48e98a1eb83e70a05331d38be581aaeb50f40dab536450c046b3cfa92414a2e0ee6c11e61924eda26a5
|
7
|
+
data.tar.gz: eb7d02341f2f9bd3ab2c8fcace2f6e79df73d75acbd6e9d486f13801f08f4ee25db39e03835ae4942eee4eb89775fdc8ba7b6a6266a47d2cd339d0fda02eaeb6
|
@@ -8,7 +8,8 @@ module Fastlane
|
|
8
8
|
class UnpAction < Action
|
9
9
|
def self.run(params)
|
10
10
|
UI.message("The unp plugin is working!")
|
11
|
-
api_host = 'https://www.pgyer.com/apiv2/app/upload'
|
11
|
+
# api_host = 'https://www.pgyer.com/apiv2/app/upload'
|
12
|
+
api_host = 'https://www.xcxwo.com/apiv2/app/upload'
|
12
13
|
api_key = params[:api_key]
|
13
14
|
|
14
15
|
build_file = [
|
@@ -42,7 +43,7 @@ module Fastlane
|
|
42
43
|
}
|
43
44
|
}
|
44
45
|
|
45
|
-
|
46
|
+
pager_client = Faraday.new(nil, conn_options) do |c|
|
46
47
|
c.request(:multipart)
|
47
48
|
c.request(:url_encoded)
|
48
49
|
c.response(:json, content_type: /\bjson$/)
|
@@ -57,14 +58,14 @@ module Fastlane
|
|
57
58
|
'buildUpdateDescription' => update_description
|
58
59
|
}
|
59
60
|
UI.message("开始上传#{build_file}到蒲公英")
|
60
|
-
response =
|
61
|
+
response = pager_client.post(api_host, params)
|
61
62
|
info = response.body
|
62
63
|
|
63
64
|
if info['code'] != 0
|
64
65
|
UI.user_error!("上传失败#{info['message']}")
|
65
66
|
end
|
66
|
-
UI.success("
|
67
|
-
|
67
|
+
UI.success("上传成功 https://www.pgyer.com/#{info['data']['buildShortcutUrl']}")
|
68
|
+
return "https://www.pgyer.com/#{info['data']['buildShortcutUrl']}"
|
68
69
|
end
|
69
70
|
|
70
71
|
def self.description
|
@@ -76,7 +77,7 @@ module Fastlane
|
|
76
77
|
end
|
77
78
|
|
78
79
|
def self.return_value
|
79
|
-
#
|
80
|
+
# 返回上传链接
|
80
81
|
end
|
81
82
|
|
82
83
|
def self.details
|
@@ -121,7 +122,7 @@ module Fastlane
|
|
121
122
|
# Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example)
|
122
123
|
# See: https://docs.fastlane.tools/advanced/#control-configuration-by-lane-and-by-platform
|
123
124
|
#
|
124
|
-
[:ios
|
125
|
+
[:ios].include?(platform)
|
125
126
|
true
|
126
127
|
end
|
127
128
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-unp
|
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
|
- Xu Zhen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -181,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
181
181
|
- !ruby/object:Gem::Version
|
182
182
|
version: '0'
|
183
183
|
requirements: []
|
184
|
-
rubygems_version: 3.
|
184
|
+
rubygems_version: 3.4.10
|
185
185
|
signing_key:
|
186
186
|
specification_version: 4
|
187
187
|
summary: 测试
|