fastlane-plugin-flutter 0.6.1 → 0.7.0
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: 850e54c27628397e666fc6891f194099be8c0ab99ae465c58b33f2735ece8b53
|
|
4
|
+
data.tar.gz: 99e0b65d86165f064d9db289511629c5afd15854f3b12c7b7cae3992d3f51060
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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?(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
-
|
|
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
|
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.
|
|
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-
|
|
11
|
+
date: 2021-09-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: pry
|