fastlane-plugin-flutter 0.5.0 → 0.7.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: 9c7e965f5f507ca0c826e6bcaeaad6ce8aa2530285029560b602012e9620e62f
|
4
|
+
data.tar.gz: 1ea5223f9669e03d80947d92fe4fde83e347c78f82949a096faf4128c7a443a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9be42ec972dca0347f3c2d9b7fccd645ca0a505a86ab254d2f78be1a3262bb95660f61e789bf3d6cce8f50e706101564607d8a8d58236920e7be55f8dd50c732
|
7
|
+
data.tar.gz: 42d2827dc366ff98ed910b3e6421e8cf7c40c156a36826e583c616bc0d453c1370343308ce039fffc5c5063d8bba7e7dfa4d30bac184d9bcc464ddee4472e6c2
|
@@ -19,6 +19,11 @@ module Fastlane
|
|
19
19
|
def self.run(params)
|
20
20
|
Helper::FlutterHelper.flutter(*%w(packages get)) {}
|
21
21
|
|
22
|
+
if params[:coverage_all_imports] && File.exist?(ALL_IMPORTS_TEST_FILE)
|
23
|
+
# This file may somehow confuse codegeneration (e.g. built_value).
|
24
|
+
File.delete(ALL_IMPORTS_TEST_FILE)
|
25
|
+
end
|
26
|
+
|
22
27
|
# In an ideal world, this should be a part of build_runner:
|
23
28
|
# https://github.com/dart-lang/intl_translation/issues/32
|
24
29
|
# Generate Intl messages before others, since these are static and
|
@@ -13,32 +13,47 @@ module Fastlane
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def self.flutter_sdk_root
|
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
|
+
|
16
23
|
@flutter_sdk_root ||= File.expand_path(
|
17
|
-
if
|
18
|
-
UI.
|
19
|
-
'
|
20
|
-
|
21
|
-
'FLUTTER_ROOT instead.'
|
22
|
-
)
|
23
|
-
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
|
24
28
|
elsif ENV.include?('FLUTTER_ROOT')
|
25
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}).")
|
26
33
|
ENV['FLUTTER_ROOT']
|
27
34
|
elsif flutter_binary = FastlaneCore::CommandExecutor.which('flutter')
|
28
|
-
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
|
29
40
|
else
|
30
|
-
|
41
|
+
# Where we'd prefer to install 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
|
31
46
|
end
|
32
47
|
)
|
33
48
|
end
|
34
49
|
|
35
|
-
def self.flutter_installed?
|
50
|
+
def self.flutter_installed?(custom_flutter_root = nil)
|
36
51
|
# Can't use File.executable? because on Windows it has to be .exe.
|
37
|
-
File.exist?(flutter_binary)
|
52
|
+
File.exist?(flutter_binary(custom_flutter_root))
|
38
53
|
end
|
39
54
|
|
40
|
-
def self.flutter_binary
|
41
|
-
File.join(flutter_sdk_root, 'bin', 'flutter')
|
55
|
+
def self.flutter_binary(custom_flutter_root = nil)
|
56
|
+
File.join(custom_flutter_root || flutter_sdk_root, 'bin', 'flutter')
|
42
57
|
end
|
43
58
|
|
44
59
|
def self.dev_dependency?(package)
|
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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Artem Sheremet
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
@@ -188,7 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
188
188
|
- !ruby/object:Gem::Version
|
189
189
|
version: '0'
|
190
190
|
requirements: []
|
191
|
-
rubygems_version: 3.
|
191
|
+
rubygems_version: 3.1.6
|
192
192
|
signing_key:
|
193
193
|
specification_version: 4
|
194
194
|
summary: Flutter actions plugin for Fastlane
|