fastlane-plugin-flutter 0.3.12 → 0.3.13

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
  SHA1:
3
- metadata.gz: b37b84a4b30354db42f955f7e60f90e8422828b6
4
- data.tar.gz: 03caefa054bd0575391f10f4c423e60a585cd2d2
3
+ metadata.gz: 72ed84ff3d487c4869f9915d9c5533d1cff3924b
4
+ data.tar.gz: 7c7a6cb09651a345d5208bb71717ca753a25018b
5
5
  SHA512:
6
- metadata.gz: ca8701c62a29b3c86c45dab541082bbf672b42758cee5c1002f37a3237b2911081cfc6ed8a54a3a2036cf2afb4394f148d02f33257a538c532da7b7dcc555351
7
- data.tar.gz: 8d658c541d6cb5d89074ad8eb245ba44ce27166c97e4929126f107f86efd93924c2893e7911bca6ab9c19bd6924db57745025b8776fa615d72272e9ca4a86be9
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")
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Flutter
3
- VERSION = '0.3.12'
3
+ VERSION = '0.3.13'
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.3.12
4
+ version: 0.3.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artem Sheremet