fastlane-plugin-flutter 0.2.0 → 0.2.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
  SHA1:
3
- metadata.gz: f0cb39c89f3fbcde4fcf59cfc54c1db29e892422
4
- data.tar.gz: 52b6ca96f4a4d9ce291456fd657a8a93864fc16d
3
+ metadata.gz: 38433eace9000141ec38668c034888ee57c812fc
4
+ data.tar.gz: c337e663d2da2a86ccc2f5d44195646a90d365f8
5
5
  SHA512:
6
- metadata.gz: 402189c1cad467be3634c24bcf08773364a448da9f8c3be6481d9392a00be8b2cdd25a0831182f707801716ff86d35632662a3dda8407ea1dba9d9ddeb2ec01d
7
- data.tar.gz: d6dbd28f31bb8e3f730c63727734ab23a412c97383d603155436b8912abe9cf47e907aa551de066eded33c5b0696ad26f928920dfbdb280c294ff3236c513247
6
+ metadata.gz: 2a247f503bf828d0cfa611d3f9244feb4ac2f70883c812f7ed265484fdf54c91c12eafbee2afacad62e35df5856813d89953cd4e4f2cbca4defa43f8d1887913
7
+ data.tar.gz: 98e524265230f19cfeaeec96baf5db5f3c01e856afdcb13d87d980acf61e464b1c042d82f8bb26152269a014f4d56cbabafcdfdcb5f79efe764b1b6e53360266
@@ -71,7 +71,7 @@ module Fastlane
71
71
  end
72
72
  else
73
73
  # fastlane does not fail automatically if we provide a block.
74
- UI.user_error!("flutter build #{platform} has failed.")
74
+ UI.build_error!("flutter build #{platform} has failed.")
75
75
  end
76
76
  end
77
77
  end
@@ -212,13 +212,7 @@ module Fastlane
212
212
  https://github.com/flutter/flutter/issues/22788.
213
213
  DESCRIPTION
214
214
  optional: true,
215
- verify_block: proc do |value|
216
- begin
217
- Helper::FlutterHelper.build_number(value)
218
- rescue ArgumentError => e
219
- UI.user_error!(e.message)
220
- end
221
- end,
215
+ verify_block: Helper::FlutterHelper.method(:build_number),
222
216
  ),
223
217
  FastlaneCore::ConfigItem.new(
224
218
  key: :build_name_override,
@@ -234,13 +228,7 @@ module Fastlane
234
228
  https://github.com/flutter/flutter/issues/22788.
235
229
  DESCRIPTION
236
230
  optional: true,
237
- verify_block: proc do |value|
238
- begin
239
- Helper::FlutterHelper.build_name(value)
240
- rescue ArgumentError => e
241
- UI.user_error!(e.message)
242
- end
243
- end,
231
+ verify_block: Helper::FlutterHelper.method(:build_name),
244
232
  ),
245
233
  # l10n settings
246
234
  FastlaneCore::ConfigItem.new(
@@ -65,12 +65,14 @@ module Fastlane
65
65
 
66
66
  case build_number_source
67
67
  when 'vcs'
68
- build_number = Integer(sh(*%w(git rev-list --count HEAD)).strip)
68
+ build_number = Integer(
69
+ Actions.sh(*%w(git rev-list --count HEAD)).strip
70
+ )
69
71
  when 'ci'
70
72
  begin
71
73
  build_number = Integer(ENV['TRAVIS_BUILD_NUMBER'] ||
72
74
  ENV['CIRCLE_BUILD_NUM'])
73
- rescue ArgumentError
75
+ rescue ArgumentError, TypeError
74
76
  raise if ENV.key?('CI')
75
77
  raise ArgumentError, 'CI version requested, but not running on a CI'
76
78
  end
@@ -86,7 +88,7 @@ module Fastlane
86
88
  def self.build_name(schema)
87
89
  if schema && schema.start_with?('vcs')
88
90
  dirty_mark = schema['vcs'.size..-1]
89
- sh(*%W(git describe --tags --dirty=#{dirty_mark})).strip
91
+ Actions.sh(*%W(git describe --tags --dirty=#{dirty_mark})).strip
90
92
  else
91
93
  schema
92
94
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Flutter
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-flutter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artem Sheremet