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: 0b155ce4a861d071eccd4fd1d063c93197bf9850bdeb9031eef5ae7db12ebae7
4
- data.tar.gz: f84397a0d0912770502491d03383d9b9e064a4f5f2dd960c1249b8ed428e8713
3
+ metadata.gz: de0d02c2835d48f09780b2f6d8e8b058d06c49e5588d5db6d9c90e860fee85f0
4
+ data.tar.gz: 6957bec5dc4c5e07c519171d86522f9550421c3d08f8de341f12d67d42d41cbf
5
5
  SHA512:
6
- metadata.gz: b5e4f2fe793d05bd0ae7f09c6fbb8e0b4202f89d637feb38541cecc5063f2add7c1e3ea25950ec114d113a47ae923c73814a893f529fbb03f0d067730773c15f
7
- data.tar.gz: 54ebf213a298c73512e47a8b962addd0c481eb1118fd17de4bff4aaba94534f4edce476aa9cb014152975988b017a0251fa56cfcc16ed18a0835897499e23269
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
- pgyer_client = Faraday.new(nil, conn_options) do |c|
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 = pgyer_client.post api_host, params
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("上传成功#{info['data']['buildShortcutUrl']}")
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
- # If your method provides a return value, you can describe here what it does
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, :mac, :android].include?(platform)
125
+ [:ios].include?(platform)
125
126
  true
126
127
  end
127
128
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Unp
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.2"
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.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: 2021-07-20 00:00:00.000000000 Z
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.1.4
184
+ rubygems_version: 3.4.10
185
185
  signing_key:
186
186
  specification_version: 4
187
187
  summary: 测试