fastlane-plugin-flutter 0.3.12 → 0.3.13
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72ed84ff3d487c4869f9915d9c5533d1cff3924b
|
4
|
+
data.tar.gz: 7c7a6cb09651a345d5208bb71717ca753a25018b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc7e292a8503523c5a19f23fb9928142af60fd404426c8a1219c1de3bf4986248a0c9c178c4323fba4e8727c18c028abe141287c9a6926d83b875aa57b204202
|
7
|
+
data.tar.gz: fffafd0cf899acdc236949ce92f033930f171696fe08420d4d01f8dfc78441b1f4c9f5b39b6452fcec22321fdb19a21b0d28d77a682988ecd96b88b4df319592
|
@@ -58,6 +58,10 @@ module Fastlane
|
|
58
58
|
else
|
59
59
|
UI.important('Cannot parse built file path from "flutter build"')
|
60
60
|
end
|
61
|
+
# gym (aka build_ios_app) action call may follow build; let's help
|
62
|
+
# it identify the project, since Flutter project structure is
|
63
|
+
# usually standard.
|
64
|
+
publish_gym_defaults(build_args)
|
61
65
|
else
|
62
66
|
# Print stdout from "flutter build" because it may contain useful
|
63
67
|
# details about failures, and it's normally not very verbose.
|
@@ -70,6 +74,23 @@ module Fastlane
|
|
70
74
|
lane_context[SharedValues::FLUTTER_OUTPUT]
|
71
75
|
end
|
72
76
|
|
77
|
+
def self.publish_gym_defaults(build_args)
|
78
|
+
ENV['GYM_WORKSPACE'] ||= 'ios/Runner.xcworkspace'
|
79
|
+
ENV['GYM_BUILD_PATH'] ||= 'build/ios'
|
80
|
+
unless ENV.include?('GYM_SCHEME')
|
81
|
+
# Do some parsing on args. Is there a less ugly way?
|
82
|
+
build_args.each.with_index do |arg, index|
|
83
|
+
if arg.start_with?('--flavor', '-flavor')
|
84
|
+
if arg.include?('=')
|
85
|
+
ENV['GYM_SCHEME'] = arg.split('=', 2).last
|
86
|
+
else
|
87
|
+
ENV['GYM_SCHEME'] = build_args[index + 1]
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
73
94
|
def self.process_deprecated_params(params, build_args)
|
74
95
|
unless params[:codesign].nil?
|
75
96
|
UI.deprecated(<<-"MESSAGE")
|