fastlane-plugin-polidea 0.2.2 → 0.2.3

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
  SHA1:
3
- metadata.gz: df273bd2009b658356ce8c168af3878aa2b8c3eb
4
- data.tar.gz: e376f516c6cf5024956475318aec84a33bbc89af
3
+ metadata.gz: 8a3706fea486fadab41eb80201a9acba5b0dcd47
4
+ data.tar.gz: d391b3a2d6eca7ce6bd7e0338c1332b3ccb58a61
5
5
  SHA512:
6
- metadata.gz: e03c849c68e5f0334dc19766d1dd53d3da65878c693bba87714aa5de504303769107274e8c90e7d73b52eb8cec4641df134c0e2c4a0c881aaceb8882a43f2fe8
7
- data.tar.gz: 9c9779c71ab126f7b6f9cbedcb7a6e0251183248dd5cc400cc8e552eb2806106e8f66a0c22e4cef08a28c792af0be820ce90a82be56f60e69165cbd4259135d0
6
+ metadata.gz: b25a716c8badb0492b7b4cc701e119e3ede5bc5ce591999bcd14ddacb282ea1fd7bb216be360094b3303f726e42162b2a62e2f72e94a1b3d4493abc7979b81da
7
+ data.tar.gz: 6aae6cdf90b2e894a5eb0a4aa66c135315dbdd8b859a3ca96a1adc08e06ba4b575931a51b6678974c61b33ce1950159744cf2c7ab70a0f434a50774a79ea101f
@@ -72,9 +72,7 @@ module Fastlane
72
72
  env_name: "POLIDEA_STORE_ICON_URL",
73
73
  description: "Url to uploaded app icon",
74
74
  default_value: Actions.lane_context[SharedValues::S3_ICON_OUTPUT_PATH],
75
- verify_block: proc do |value|
76
- UI.user_error!("No icon url given, pass using `icon_url: 'url'` or make sure s3 action succeded and exposed S3_ICON_OUTPUT_PATH shared value") unless value and !value.empty?
77
- end),
75
+ optional: true),
78
76
  FastlaneCore::ConfigItem.new(key: :release_notes,
79
77
  env_name: "",
80
78
  description: "Release notes to be attached to uploaded version",
@@ -207,14 +207,16 @@ module Fastlane
207
207
  Actions.lane_context[SharedValues::S3_VERSION_OUTPUT_PATH] = version_url
208
208
  ENV[SharedValues::S3_VERSION_OUTPUT_PATH.to_s] = version_url
209
209
 
210
- Actions.lane_context[SharedValues::S3_ICON_OUTPUT_PATH] = icon_url
211
- ENV[SharedValues::S3_ICON_OUTPUT_PATH.to_s] = icon_url
212
-
213
210
  UI.success("Successfully uploaded ipa file to '#{Actions.lane_context[SharedValues::S3_IPA_OUTPUT_PATH]}'")
214
211
  UI.success("Successfully uploaded plist file to '#{Actions.lane_context[SharedValues::S3_PLIST_OUTPUT_PATH]}'")
215
212
  UI.success("Successfully uploaded html file to '#{Actions.lane_context[SharedValues::S3_HTML_OUTPUT_PATH]}'")
216
213
  UI.success("Successfully uploaded version file to '#{Actions.lane_context[SharedValues::S3_VERSION_OUTPUT_PATH]}'")
217
- UI.success("Successfully uploaded icon file to '#{Actions.lane_context[SharedValues::S3_ICON_OUTPUT_PATH]}'")
214
+
215
+ if icon_url
216
+ Actions.lane_context[SharedValues::S3_ICON_OUTPUT_PATH] = icon_url
217
+ ENV[SharedValues::S3_ICON_OUTPUT_PATH.to_s] = icon_url
218
+ UI.success("Successfully uploaded icon file to '#{Actions.lane_context[SharedValues::S3_ICON_OUTPUT_PATH]}'")
219
+ end
218
220
  end
219
221
 
220
222
  def self.upload_android(params)
@@ -291,12 +293,14 @@ module Fastlane
291
293
  Actions.lane_context[SharedValues::S3_HTML_OUTPUT_PATH] = html_url
292
294
  ENV[SharedValues::S3_HTML_OUTPUT_PATH.to_s] = html_url
293
295
 
294
- Actions.lane_context[SharedValues::S3_ICON_OUTPUT_PATH] = icon_url
295
- ENV[SharedValues::S3_ICON_OUTPUT_PATH.to_s] = icon_url
296
-
297
296
  UI.success("Successfully uploaded apk file to '#{Actions.lane_context[SharedValues::S3_APK_OUTPUT_PATH]}'")
298
297
  UI.success("Successfully uploaded html file to '#{Actions.lane_context[SharedValues::S3_HTML_OUTPUT_PATH]}'")
299
- UI.success("Successfully uploaded icon file to '#{Actions.lane_context[SharedValues::S3_ICON_OUTPUT_PATH]}'")
298
+
299
+ if icon_url
300
+ Actions.lane_context[SharedValues::S3_ICON_OUTPUT_PATH] = icon_url
301
+ ENV[SharedValues::S3_ICON_OUTPUT_PATH.to_s] = icon_url
302
+ UI.success("Successfully uploaded icon file to '#{Actions.lane_context[SharedValues::S3_ICON_OUTPUT_PATH]}'")
303
+ end
300
304
  end
301
305
 
302
306
  def self.validate(params)
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Polidea
3
- VERSION = "0.2.2"
3
+ VERSION = "0.2.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-polidea
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotrek Dubiel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-22 00:00:00.000000000 Z
11
+ date: 2016-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: plist