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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38433eace9000141ec38668c034888ee57c812fc
|
4
|
+
data.tar.gz: c337e663d2da2a86ccc2f5d44195646a90d365f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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:
|
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:
|
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(
|
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
|