fastlane-plugin-unp 0.1.0 → 0.1.1
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: 0777c41d9773506cdb5a269b7433959272e2a6b7cc5396b4be88a7d11aed9d6e
|
4
|
+
data.tar.gz: d2bd16b3b24abbf7f7b914ee302b4160d5fd103d3aa61577721376f35839e6a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1bc73f3788e5905086ecf504aa52fd83effc5262874ac5e3355b60e8f2a137753ced08b0ef0a674ab08ba529925e0afef32d20308e11cdc4b91ebdd73d0343a4
|
7
|
+
data.tar.gz: 2fc2cf399c157df6e3f16ec23d818ecf595e55822b8d0863c36fcb63c222721b9e40887702c6ce69e90249c5dc7e67f15c92e93635e7e0e6b48e072dec9eb9da
|
@@ -42,7 +42,7 @@ module Fastlane
|
|
42
42
|
}
|
43
43
|
}
|
44
44
|
|
45
|
-
|
45
|
+
pager_client = Faraday.new(nil, conn_options) do |c|
|
46
46
|
c.request(:multipart)
|
47
47
|
c.request(:url_encoded)
|
48
48
|
c.response(:json, content_type: /\bjson$/)
|
@@ -57,14 +57,14 @@ module Fastlane
|
|
57
57
|
'buildUpdateDescription' => update_description
|
58
58
|
}
|
59
59
|
UI.message("开始上传#{build_file}到蒲公英")
|
60
|
-
response =
|
60
|
+
response = pager_client.post(api_host, params)
|
61
61
|
info = response.body
|
62
62
|
|
63
63
|
if info['code'] != 0
|
64
64
|
UI.user_error!("上传失败#{info['message']}")
|
65
65
|
end
|
66
|
-
UI.success("
|
67
|
-
|
66
|
+
UI.success("上传成功 https://www.pgyer.com/#{info['data']['buildShortcutUrl']}")
|
67
|
+
return "https://www.pgyer.com/#{info['data']['buildShortcutUrl']}"
|
68
68
|
end
|
69
69
|
|
70
70
|
def self.description
|
@@ -76,7 +76,7 @@ module Fastlane
|
|
76
76
|
end
|
77
77
|
|
78
78
|
def self.return_value
|
79
|
-
#
|
79
|
+
# 返回上传链接
|
80
80
|
end
|
81
81
|
|
82
82
|
def self.details
|
@@ -121,7 +121,7 @@ module Fastlane
|
|
121
121
|
# Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example)
|
122
122
|
# See: https://docs.fastlane.tools/advanced/#control-configuration-by-lane-and-by-platform
|
123
123
|
#
|
124
|
-
[:ios
|
124
|
+
[:ios].include?(platform)
|
125
125
|
true
|
126
126
|
end
|
127
127
|
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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Xu Zhen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-07-
|
11
|
+
date: 2021-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|