fastlane-plugin-flutter 0.6.1 → 0.7.0

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: 76c58f78d0fc3d1516b74c92458d603a926f2f4fd49be6db5c5806ab51cf1708
4
- data.tar.gz: 7c9ecc79c38add7135304d8dee4c4cb93fc9f98fcffe10e5aedcff310407af88
3
+ metadata.gz: 850e54c27628397e666fc6891f194099be8c0ab99ae465c58b33f2735ece8b53
4
+ data.tar.gz: 99e0b65d86165f064d9db289511629c5afd15854f3b12c7b7cae3992d3f51060
5
5
  SHA512:
6
- metadata.gz: b79fa22f5340f4721a1d0b8cd693e4c2afd9c83cf50bddbb02e54b1abf1c3bb9f385b691c226c1a4559e5aa90621a0ce1c6fda41ce955c3b0b15b5ae5ee435a7
7
- data.tar.gz: 574032770858f63773bac22faef3d53ad670af900188b43231c833a2768646ccf814d57e4bb45e5d1f8ede9fa8e90b60f5d90cd4b24e024a3dc0bc1ad9d38f98
6
+ metadata.gz: 84dd37b21ceba829ee3500fc2696e6d63da9036a23efa9bc84bc919032b05db10b64bf0f8c6caeda65ab70de2ecbc7589a7eb5014877ac78ad0914f4888525f6
7
+ data.tar.gz: ac0c75e59ca975897caee138e093a98a5ea2da7208548cc8fd957945a960a1f6b9ab86afcf8c02b1612d0a32f414f6a56ee8b39cd32a69d46d857348cda422e4
@@ -13,28 +13,36 @@ module Fastlane
13
13
  end
14
14
 
15
15
  def self.flutter_sdk_root
16
- vendor_flutter_path = File.join(Dir.pwd, 'vendor', 'flutter')
16
+ # Support flutterw and compatible projects.
17
+ # Prefixing directory name with "." has a nice effect that Flutter tools
18
+ # such as "format" and "lint" will not recurse into this subdirectory
19
+ # while analyzing the project itself. This works immensely better than
20
+ # e.g. vendor/flutter.
21
+ pinned_flutter_path = File.join(Dir.pwd, '.flutter')
22
+
17
23
  @flutter_sdk_root ||= File.expand_path(
18
- if flutter_installed?(vendor_flutter_path)
19
- vendor_flutter_path
20
- elsif flutter_installed?(File.join(Dir.pwd, '.flutter'))
21
- # Support flutterw and compatible projects.
22
- File.join(Dir.pwd, '.flutter')
23
- elsif ENV.include?('FLUTTER_SDK_ROOT')
24
- UI.deprecated(
25
- 'FLUTTER_SDK_ROOT environment variable is deprecated. ' \
26
- 'To point to a Flutter installation directory, use ' \
27
- 'FLUTTER_ROOT instead.'
28
- )
29
- ENV['FLUTTER_SDK_ROOT']
24
+ if flutter_installed?(pinned_flutter_path)
25
+ UI.message("Determined Flutter location as #{pinned_flutter_path}" \
26
+ " because 'flutter' executable exists there.")
27
+ pinned_flutter_path
30
28
  elsif ENV.include?('FLUTTER_ROOT')
31
29
  # FLUTTER_ROOT is a standard environment variable from Flutter.
30
+ UI.message("Determined Flutter location as #{ENV['FLUTTER_ROOT']}" \
31
+ " because environment variable FLUTTER_ROOT points there" \
32
+ " (current directory is #{Dir.pwd}).")
32
33
  ENV['FLUTTER_ROOT']
33
34
  elsif flutter_binary = FastlaneCore::CommandExecutor.which('flutter')
34
- File.dirname(File.dirname(flutter_binary))
35
+ location = File.dirname(File.dirname(flutter_binary))
36
+ UI.message("Determined Flutter location as #{location} because"\
37
+ " 'flutter' executable in PATH is located there" \
38
+ " (current directory is #{Dir.pwd}).")
39
+ location
35
40
  else
36
41
  # Where we'd prefer to install flutter.
37
- File.join(Dir.pwd, 'vendor', 'flutter')
42
+ UI.message("Determined desired Flutter location as" \
43
+ " #{pinned_flutter_path} because that's where this fastlane" \
44
+ " plugin would install Flutter by default.")
45
+ pinned_flutter_path
38
46
  end
39
47
  )
40
48
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Flutter
3
- VERSION = '0.6.1'
3
+ VERSION = '0.7.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-flutter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artem Sheremet
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-28 00:00:00.000000000 Z
11
+ date: 2021-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry