fastlane-plugin-unp 0.1.0 → 0.1.1

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: 0b155ce4a861d071eccd4fd1d063c93197bf9850bdeb9031eef5ae7db12ebae7
4
- data.tar.gz: f84397a0d0912770502491d03383d9b9e064a4f5f2dd960c1249b8ed428e8713
3
+ metadata.gz: 0777c41d9773506cdb5a269b7433959272e2a6b7cc5396b4be88a7d11aed9d6e
4
+ data.tar.gz: d2bd16b3b24abbf7f7b914ee302b4160d5fd103d3aa61577721376f35839e6a3
5
5
  SHA512:
6
- metadata.gz: b5e4f2fe793d05bd0ae7f09c6fbb8e0b4202f89d637feb38541cecc5063f2add7c1e3ea25950ec114d113a47ae923c73814a893f529fbb03f0d067730773c15f
7
- data.tar.gz: 54ebf213a298c73512e47a8b962addd0c481eb1118fd17de4bff4aaba94534f4edce476aa9cb014152975988b017a0251fa56cfcc16ed18a0835897499e23269
6
+ metadata.gz: 1bc73f3788e5905086ecf504aa52fd83effc5262874ac5e3355b60e8f2a137753ced08b0ef0a674ab08ba529925e0afef32d20308e11cdc4b91ebdd73d0343a4
7
+ data.tar.gz: 2fc2cf399c157df6e3f16ec23d818ecf595e55822b8d0863c36fcb63c222721b9e40887702c6ce69e90249c5dc7e67f15c92e93635e7e0e6b48e072dec9eb9da
@@ -42,7 +42,7 @@ module Fastlane
42
42
  }
43
43
  }
44
44
 
45
- pgyer_client = Faraday.new(nil, conn_options) do |c|
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 = pgyer_client.post api_host, params
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("上传成功#{info['data']['buildShortcutUrl']}")
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
- # If your method provides a return value, you can describe here what it does
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, :mac, :android].include?(platform)
124
+ [:ios].include?(platform)
125
125
  true
126
126
  end
127
127
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Unp
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  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.0
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-20 00:00:00.000000000 Z
11
+ date: 2021-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler