fastlane-plugin-flutter 0.1.14 → 0.1.15
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: 97fb41cd7a4d73a263ebf3ab19a8e48ef0a28762
|
|
4
|
+
data.tar.gz: 800076077feb8059207eac654d860017e2c6ca56
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1dc49fe811a6ae6ae12d75a4bdd70bc0dc40a3fd2e86ca65540577d660632602305f82575ba16e6a653c230ac58e739fc672e5cbbe2e625bfebf76b2c9b9a724
|
|
7
|
+
data.tar.gz: 7653602739e55b97dd6af3f6eb883c52898e6571a686ab2cea7f2ad173d4b505ef00dfe985222ee53ffcf32ce74ff3d720cc4a066a4dd83e6b3c3a6a00d109d2
|
|
@@ -9,6 +9,8 @@ module Fastlane
|
|
|
9
9
|
module SharedValues
|
|
10
10
|
FLUTTER_OUTPUT_APP = :FLUTTER_OUTPUT_APP
|
|
11
11
|
FLUTTER_OUTPUT_APK = :FLUTTER_OUTPUT_APK
|
|
12
|
+
FLUTTER_OUTPUT_GIT_BUILD_NUMBER = :FLUTTER_OUTPUT_GIT_BUILD_NUMBER
|
|
13
|
+
FLUTTER_OUTPUT_GIT_BUILD_NAME = :FLUTTER_OUTPUT_GIT_BUILD_NAME
|
|
12
14
|
end
|
|
13
15
|
|
|
14
16
|
class FlutterAction < Action
|
|
@@ -36,6 +38,18 @@ module Fastlane
|
|
|
36
38
|
additional_args = []
|
|
37
39
|
additional_args.push('--debug') if params[:debug]
|
|
38
40
|
|
|
41
|
+
if params[:git_version]
|
|
42
|
+
build_number = sh(*%w(git rev-list --count HEAD)).strip.to_i
|
|
43
|
+
lane_context[SharedValues::FLUTTER_OUTPUT_GIT_BUILD_NUMBER] =
|
|
44
|
+
build_number
|
|
45
|
+
additional_args.push('--build-number', build_number.to_s)
|
|
46
|
+
|
|
47
|
+
build_name = sh(*%w(git describe --tags --dirty=*)).strip
|
|
48
|
+
lane_context[SharedValues::FLUTTER_OUTPUT_GIT_BUILD_NAME] =
|
|
49
|
+
build_name
|
|
50
|
+
additional_args.push('--build-name', build_name)
|
|
51
|
+
end
|
|
52
|
+
|
|
39
53
|
built_files = {}
|
|
40
54
|
|
|
41
55
|
flutter_platforms.each do |platform|
|
|
@@ -183,6 +197,14 @@ module Fastlane
|
|
|
183
197
|
is_string: false,
|
|
184
198
|
default_value: false,
|
|
185
199
|
),
|
|
200
|
+
FastlaneCore::ConfigItem.new(
|
|
201
|
+
key: :git_version,
|
|
202
|
+
env_name: 'FL_FLUTTER_GIT_VERSION',
|
|
203
|
+
description: 'Set build number and name based on Git',
|
|
204
|
+
optional: true,
|
|
205
|
+
is_string: false,
|
|
206
|
+
default_value: false,
|
|
207
|
+
),
|
|
186
208
|
# l10n settings
|
|
187
209
|
FastlaneCore::ConfigItem.new(
|
|
188
210
|
key: :l10n_strings_file,
|
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.1.
|
|
4
|
+
version: 0.1.15
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Artem Sheremet
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-10-
|
|
11
|
+
date: 2018-10-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: pry
|