fastlane-plugin-flutter 0.6.0 → 0.6.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
  SHA256:
3
- metadata.gz: c0484e466e397f4bacea7891de3becea2e85c5b4bf04684f06a167788d57735b
4
- data.tar.gz: f9996d24c9a41cc4aec9ce774c41ce8a01e8e1055c3e6a153bd23c08dc701d98
3
+ metadata.gz: 76c58f78d0fc3d1516b74c92458d603a926f2f4fd49be6db5c5806ab51cf1708
4
+ data.tar.gz: 7c9ecc79c38add7135304d8dee4c4cb93fc9f98fcffe10e5aedcff310407af88
5
5
  SHA512:
6
- metadata.gz: 7d580e8ed5bb91a9ad0d3ae87657757ce74b88adfb3eea8dff96bd361c48d69b326913c233339274a7869141d839fe3690f42c24bf74bfa408afdcb2f4feb08a
7
- data.tar.gz: 731f76c07eb9715b79f6705826204fe580446069b46d85da17c9b8ff14ed5ba80ea76e4cb9622bced34a6d5090db69e0f5bd55a6cd2f0164cb9e8221c1dca29c
6
+ metadata.gz: b79fa22f5340f4721a1d0b8cd693e4c2afd9c83cf50bddbb02e54b1abf1c3bb9f385b691c226c1a4559e5aa90621a0ce1c6fda41ce955c3b0b15b5ae5ee435a7
7
+ data.tar.gz: 574032770858f63773bac22faef3d53ad670af900188b43231c833a2768646ccf814d57e4bb45e5d1f8ede9fa8e90b60f5d90cd4b24e024a3dc0bc1ad9d38f98
@@ -13,8 +13,11 @@ 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
17
  @flutter_sdk_root ||= File.expand_path(
17
- if File.executable?(File.join(Dir.pwd, '.flutter', 'bin', 'flutter'))
18
+ if flutter_installed?(vendor_flutter_path)
19
+ vendor_flutter_path
20
+ elsif flutter_installed?(File.join(Dir.pwd, '.flutter'))
18
21
  # Support flutterw and compatible projects.
19
22
  File.join(Dir.pwd, '.flutter')
20
23
  elsif ENV.include?('FLUTTER_SDK_ROOT')
@@ -36,13 +39,13 @@ module Fastlane
36
39
  )
37
40
  end
38
41
 
39
- def self.flutter_installed?
42
+ def self.flutter_installed?(custom_flutter_root = nil)
40
43
  # Can't use File.executable? because on Windows it has to be .exe.
41
- File.exist?(flutter_binary)
44
+ File.exist?(flutter_binary(custom_flutter_root))
42
45
  end
43
46
 
44
- def self.flutter_binary
45
- File.join(flutter_sdk_root, 'bin', 'flutter')
47
+ def self.flutter_binary(custom_flutter_root = nil)
48
+ File.join(custom_flutter_root || flutter_sdk_root, 'bin', 'flutter')
46
49
  end
47
50
 
48
51
  def self.dev_dependency?(package)
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Flutter
3
- VERSION = '0.6.0'
3
+ VERSION = '0.6.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.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artem Sheremet