fastlane-plugin-flutter 0.3.3 → 0.3.4

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: 6e6a88f1db8b61e5437c89b66268d9665f85b5b2
4
- data.tar.gz: ef730cd4ff058b3d6b347312f55f35926cac6bb3
3
+ metadata.gz: 8218973005eea440047e5cee9dfbeba1f6646cda
4
+ data.tar.gz: 4f97597a00ccb11a8e06cbb21cb168932984d987
5
5
  SHA512:
6
- metadata.gz: f89d1e9ef42289a526b60e198871f137a51cf549e8a811e9bc6444cf413604076a5b042719117be15eb4c3cb1c7480053cd61992921cf93544e619d467e74762
7
- data.tar.gz: 24585aeeeea8bc8db4778fad5dde4b0362915f5c6860bde8afb1c958931ce07b0a180abf0b4a20c5ec87da26fad3b2351ed7d63510a7da5a96ab1129107ee774
6
+ metadata.gz: d17d251d30d1231762cd54d3f056544939a450f028c1ca9771f4a9cef16f780b804a2bf7c24a4c452978f6625c138c3cd5f6f4186d347db27f34e81951c08c3c
7
+ data.tar.gz: 24a6445e48fe4e1b7e00ed2a2ade067ad30e6a58179b1c055bdb780a5200a1a4f67df606cb23bf2ef4154de27ed230f43943d52fd9326211028d6a0dbf3cb0cd
@@ -20,12 +20,14 @@ module Fastlane
20
20
  flutter_sdk_root = Helper::FlutterHelper.flutter_sdk_root
21
21
  flutter_channel = params[:flutter_channel]
22
22
  if File.directory?(flutter_sdk_root)
23
- UI.message("Upgrading Flutter SDK in #{flutter_sdk_root}...")
24
23
  if flutter_channel
25
24
  UI.message("Making sure Flutter is on channel #{flutter_channel}")
26
25
  Helper::FlutterHelper.flutter('channel', flutter_channel) {}
27
26
  end
28
- Helper::FlutterHelper.flutter('upgrade') {}
27
+ if params[:flutter_auto_upgrade]
28
+ UI.message("Upgrading Flutter SDK in #{flutter_sdk_root}...")
29
+ Helper::FlutterHelper.flutter('upgrade') {}
30
+ end
29
31
  else
30
32
  Helper::FlutterHelper.git(
31
33
  'clone', # no --depth to keep Flutter tag-based versioning.
@@ -63,6 +65,14 @@ module Fastlane
63
65
  optional: true,
64
66
  type: String,
65
67
  ),
68
+ FastlaneCore::ConfigItem.new(
69
+ key: :flutter_auto_upgrade,
70
+ env_name: 'FL_FLUTTER_AUTO_UPGRADE',
71
+ description: 'Automatically upgrade Flutter when already installed',
72
+ default_value: true,
73
+ optional: true,
74
+ is_string: false, # official replacement for "type: Boolean"
75
+ ),
66
76
  FastlaneCore::ConfigItem.new(
67
77
  key: :android_licenses,
68
78
  description: 'Map of file names to hash values of accepted ' \
@@ -70,6 +70,10 @@ module Fastlane
70
70
  'Run "flutter build" to build a Flutter application'
71
71
  end
72
72
 
73
+ def self.category
74
+ :building
75
+ end
76
+
73
77
  def self.return_value
74
78
  'A path to the built file, if available'
75
79
  end
@@ -33,10 +33,9 @@ module Fastlane
33
33
  end
34
34
 
35
35
  def self.description
36
- 'According to package:intl, take $strings_file and generate ' \
37
- '${strings_file.dirname}/arb/intl_messages.arb, then take all files ' \
38
- 'matching ${strings_file.dirname}/intl_*.arb, fix them and generate ' \
39
- '.dart files from them'
36
+ # Not splitting the line because of documentation generator bug:
37
+ # https://github.com/fastlane/fastlane/issues/15199
38
+ 'According to package:intl, take $strings_file and generate ${strings_file.dirname}/arb/intl_messages.arb, then take all files matching ${strings_file.dirname}/intl_*.arb, fix them and generate .dart files from them'
40
39
  end
41
40
 
42
41
  def self.available_options
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Flutter
3
- VERSION = '0.3.3'
3
+ VERSION = '0.3.4'
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.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artem Sheremet