fastlane-plugin-flutter 0.4.2 → 0.5.0

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
  SHA256:
3
- metadata.gz: 1103e664db0814cd15485b5749b0e8a99acfd3bad2ca56d5657b4faac8ed167b
4
- data.tar.gz: 3f0c48ae721b5a8224a23cedfd89f2c604d16de58c0400d30b18a89751828944
3
+ metadata.gz: e08545073c4e4d3d8f8b4abbf1c8dc35a6aeae562e5fea8f888a5ef562990390
4
+ data.tar.gz: 55e6d48ffd6a7f5d0189f111c31f95c0ff70941078ef7c72dc090d1eeec096c5
5
5
  SHA512:
6
- metadata.gz: 206bcbb624408a2cc7dc21a940e3374caaa8f74d1e20dff50773a8b4dcc200431829a6ec408f56b611fecc70ad293b7546cde4a6456ca0f07301c002d2ed440f
7
- data.tar.gz: 100a47609d3a003219771d792576787e1707d6894fc96685ad6a39ad5afbcd2f61e2e6bad7b246cf8bd548f27d0176bb6c6f40a5866b4f3d750e412dcc98b07a
6
+ metadata.gz: 57e28fc3cdf69975601f68d55a35baf2d5346896209e8b64db482f1138ce0f613e4a980512a61280be13c58332f84dd7b9053867ab369415cbe73d2a65ecf93b
7
+ data.tar.gz: b2fa06f9134c563edc33bcb89d2e4d460313977f1212dc7ce2396ee1f9031f8257652e001d896fb053a0b084bd91334a428d94aa2650cc336955ffbeaff1b5a9
@@ -34,7 +34,7 @@ module Fastlane
34
34
  else
35
35
  Helper::FlutterHelper.git(
36
36
  'clone', # no --depth limit to keep Flutter tag-based versioning.
37
- "--branch=#{flutter_channel || 'beta'}",
37
+ "--branch=#{flutter_channel || 'stable'}",
38
38
  '--quiet',
39
39
  '--',
40
40
  FLUTTER_REMOTE_REPOSITORY,
@@ -52,16 +52,7 @@ module Fastlane
52
52
 
53
53
  Helper::FlutterHelper.flutter('build', *build_args) do |status, res|
54
54
  if status.success?
55
- artifacts = res.scan(/Built (.*?)(:? \([^)]*\))?\.$/).
56
- map { |path| File.absolute_path(path[0]) }
57
- if artifacts.size == 1
58
- lane_context[SharedValues::FLUTTER_OUTPUT] = artifacts.first
59
- elsif artifacts.size > 1
60
- # Could be the result of "flutter build apk --split-per-abi".
61
- lane_context[SharedValues::FLUTTER_OUTPUT] = artifacts
62
- else
63
- UI.important('Cannot parse built file path from "flutter build"')
64
- end
55
+ process_build_output(res, build_args)
65
56
  # gym (aka build_ios_app) action call may follow build; let's help
66
57
  # it identify the project, since Flutter project structure is
67
58
  # usually standard.
@@ -125,6 +116,21 @@ form instead.
125
116
  end
126
117
  end
127
118
 
119
+ def self.process_build_output(output, build_args)
120
+ artifacts = output.scan(/Built (.*?)(:? \([^)]*\))?\.$/).
121
+ map { |path| File.absolute_path(path[0]) }
122
+ if artifacts.size == 1
123
+ lane_context[SharedValues::FLUTTER_OUTPUT] = artifacts.first
124
+ elsif artifacts.size > 1
125
+ # Could be the result of "flutter build apk --split-per-abi".
126
+ lane_context[SharedValues::FLUTTER_OUTPUT] = artifacts
127
+ elsif build_args.include?('--config-only')
128
+ UI.message('Config-only "build" detected, no output file name')
129
+ else
130
+ UI.important('Cannot parse built file path from "flutter build"')
131
+ end
132
+ end
133
+
128
134
  def self.description
129
135
  'Run "flutter build" to build a Flutter application'
130
136
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Flutter
3
- VERSION = '0.4.2'
3
+ VERSION = '0.5.0'
4
4
  end
5
5
  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.2
4
+ version: 0.5.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: 2020-05-15 00:00:00.000000000 Z
11
+ date: 2021-01-09 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.0.6
191
+ rubygems_version: 3.0.3
192
192
  signing_key:
193
193
  specification_version: 4
194
194
  summary: Flutter actions plugin for Fastlane