fastlane-plugin-upload_to_oss 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: 7ec3b56ab5d8b6c5fef36cd96c918c8b3b35ee272d19d58e067136e5fa6f358c
4
- data.tar.gz: 805367567092094e2025166d5ce65036ff4fd858c6e122a23af8033a2d186c03
3
+ metadata.gz: 2ee63c3b5d77434e58efcb0df189e0789421a45fa75de7d5cb55bf336a7d9326
4
+ data.tar.gz: f14dd665d2c0a8ec04b72c1ccb0b8267b8b2ef0e79557387b54c1266a3c6d711
5
5
  SHA512:
6
- metadata.gz: beb2f02fc18226c695bee859257b11797755256521a45fb502545eff34ff90a38465608944ffd255c0ae2488c96913c3f82d35c2352799eaaebeae13aebaaf3e
7
- data.tar.gz: 0f1bd8ff75772efd32ea855eac376ed0b275c4d995e70edf215c9c8082fcfb604f39030d98672922e6d921ab49b51f3945c669efd5dc0c36724efcd4bd4cc4b6
6
+ metadata.gz: 5dbdfd7458ecc22e3ac0384fe893773b5e042150523f097627d25ebaa4cdd48012259d778e5695a7d98f37acaee5a955366184a571e6924eb057eece310e5797
7
+ data.tar.gz: a6772f083a0bbb3232e09db4c9e503b914cc64381550b2d965593cac074e7f13e9c54b9ca6cc089db9c7c628af779d4ae102e5e6395ac0f9ed1ab6cbcc4851cb
@@ -47,20 +47,21 @@ module Fastlane
47
47
  UI.message("upload ipa ...")
48
48
  result = bucket_object.put_object(object_key, :file => ipa)
49
49
 
50
- if result
50
+ if result
51
51
 
52
- endpoint_host = URI.parse(endpoint).host
53
- ipa_url = "https://#{bucket}.#{endpoint_host}/#{object_key}"
54
- UI.message("put_object over!")
52
+ endpoint_host = URI.parse(endpoint).host
53
+ ipa_url = "https://#{bucket}.#{endpoint_host}/#{object_key}"
54
+ UI.message("put_object over!")
55
55
 
56
- Actions.lane_context[SharedValues::OSS_IPA_OUTPUT_URL] = ipa_url
56
+ Actions.lane_context[SharedValues::OSS_IPA_OUTPUT_URL] = ipa_url
57
57
 
58
- UI.message("lane_context OSS_IPA_OUTPUT_URL:#{Actions.lane_context[SharedValues::OSS_IPA_OUTPUT_URL]}")
58
+ UI.message("lane_context OSS_IPA_OUTPUT_URL:#{Actions.lane_context[SharedValues::OSS_IPA_OUTPUT_URL]}")
59
59
 
60
- else
61
- UI.error("upload fail")
62
- end
60
+ else
61
+ UI.error("upload fail")
62
+ end
63
63
 
64
+ return ipa_url
64
65
  end
65
66
 
66
67
  def self.description
@@ -77,7 +78,7 @@ module Fastlane
77
78
 
78
79
  def self.output
79
80
  [
80
- ['IPA_OUTPUT_PATH', 'ipa file oss url']
81
+ ['OSS_IPA_OUTPUT_URL', 'ipa file oss url']
81
82
  ]
82
83
  end
83
84
 
@@ -89,38 +90,38 @@ module Fastlane
89
90
  def self.available_options
90
91
  [
91
92
  FastlaneCore::ConfigItem.new(key: :ipa,
92
- env_name: "HAIER_ENTERPRISE_RESIGN_IPA",
93
+ env_name: "UPLOAD_TO_OSS_IPA",
93
94
  description: ".ipa file for the build",
94
95
  optional: true,
95
96
  default_value: Actions.lane_context[SharedValues::IPA_OUTPUT_PATH]),
96
97
  FastlaneCore::ConfigItem.new(key: :dsym,
97
- env_name: "HAIER_ENTERPRISE_RESIGN_DSYM",
98
+ env_name: "UPLOAD_TO_OSS_DSYM",
98
99
  description: "zipped .dsym package for the build ",
99
100
  optional: true,
100
101
  default_value: Actions.lane_context[SharedValues::DSYM_OUTPUT_PATH]),
101
102
  FastlaneCore::ConfigItem.new(key: :endpoint,
102
- env_name: "HAIER_ENTERPRISE_RESIGN_ENDPOINT",
103
+ env_name: "UPLOAD_TO_OSS_ENDPOINT",
103
104
  description: "oss endpoint, default value http://oss-cn-qingdao.aliyuncs.com",
104
105
  optional: true,
105
106
  default_value: "http://oss-cn-qingdao.aliyuncs.com"),
106
107
 
107
108
  FastlaneCore::ConfigItem.new(key: :key,
108
- env_name: "HAIER_ENTERPRISE_RESIGN_KEY",
109
+ env_name: "UPLOAD_TO_OSS_KEY",
109
110
  description: "oss key",
110
111
  optional: true,
111
112
  default_value: ENV['OSS_ACCESS_KEY_ID']),
112
113
  FastlaneCore::ConfigItem.new(key: :secret,
113
- env_name: "HAIER_ENTERPRISE_RESIGN_SECRET",
114
+ env_name: "UPLOAD_TO_OSS_SECRET",
114
115
  description: "oss secret",
115
116
  optional: true,
116
117
  default_value: ENV['OSS_ACCESS_KEY_SECRET']),
117
118
  FastlaneCore::ConfigItem.new(key: :bucket,
118
- env_name: "HAIER_ENTERPRISE_RESIGN_BUCKET",
119
+ env_name: "UPLOAD_TO_OSS_BUCKET",
119
120
  description: "oss bucket",
120
121
  optional: false,
121
122
  type: String),
122
123
  FastlaneCore::ConfigItem.new(key: :object_path,
123
- env_name: "HAIER_ENTERPRISE_RESIGN_OBJECT_PATH",
124
+ env_name: "UPLOAD_TO_OSS_OBJECT_PATH",
124
125
  description: "oss object key 'foo/bar/file', object path 'foo/bar'",
125
126
  optional: false,
126
127
  type: String),
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module UploadToOss
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-upload_to_oss
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
  - zhaozq