fastlane-plugin-flutter 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76c58f78d0fc3d1516b74c92458d603a926f2f4fd49be6db5c5806ab51cf1708
|
4
|
+
data.tar.gz: 7c9ecc79c38add7135304d8dee4c4cb93fc9f98fcffe10e5aedcff310407af88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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)
|