fastlane-plugin-flutter_dart_version_manager 0.1.0 → 0.1.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 330585cde865c0ab1f86b10ea3d706824a5adf391660facf1b3c15c98023c1b0
|
4
|
+
data.tar.gz: 6ee8e1cee63c9c0380d9cb0ad0d41c4cfa77ad057c03e6651279ac4b04feaf23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50c40c21f884f3a359603b97a5b7e486720e43090c892bc292ccb63840f1aebb76037c2674807f51fe2bbb96bd942563936356762650c5e8fb57cdc9af0ba911
|
7
|
+
data.tar.gz: f02b3dde5e86344a00cc26548ad9c8a011ee67ad85e5c97c5a717d47860e3afd5c42e3e8ce3f6cb40142c9ef8d5d03501dd892e20a037f433b6dbcabb587f8ec
|
@@ -6,7 +6,7 @@ module Fastlane
|
|
6
6
|
class FlutterSetVersionAction < Action
|
7
7
|
def self.run(params)
|
8
8
|
# fastlane will take care of reading in the parameter and fetching the environment variable:
|
9
|
-
UI.message("Started
|
9
|
+
UI.message("Started FlutterDartVersionManager")
|
10
10
|
|
11
11
|
version_name = params[:version_name]
|
12
12
|
version_code = params[:version_code]
|
@@ -14,7 +14,7 @@ module Fastlane
|
|
14
14
|
|
15
15
|
# Checking values
|
16
16
|
unless File.exist?(path)
|
17
|
-
raise
|
17
|
+
raise "File not found at path: \"#{path}\" example: ../myFolder/pubspec.yaml"
|
18
18
|
end
|
19
19
|
if version_name.to_s.strip.empty?
|
20
20
|
raise "newVersion must not be null"
|
@@ -23,14 +23,18 @@ module Fastlane
|
|
23
23
|
# Processing string
|
24
24
|
version_to_set = "version: "
|
25
25
|
version_to_set.concat(version_name)
|
26
|
+
# Add version_code
|
26
27
|
unless version_code.to_s.strip.empty?
|
27
28
|
version_to_set.concat('+')
|
28
29
|
version_to_set.concat(version_code)
|
29
30
|
end
|
30
31
|
|
31
32
|
# Read data
|
33
|
+
# Additional check for compatibility with pub.dev package "version" and ignoring comments
|
34
|
+
already_set = false
|
32
35
|
lines = IO.readlines(path).map do |line|
|
33
|
-
if line.include?("version:")
|
36
|
+
if line.include?("version:") && !already_set && !line.start_with?("#")
|
37
|
+
already_set = true
|
34
38
|
version_to_set
|
35
39
|
else
|
36
40
|
line
|
@@ -57,11 +61,11 @@ module Fastlane
|
|
57
61
|
|
58
62
|
def self.details
|
59
63
|
# Optional:
|
60
|
-
"Later"
|
61
64
|
end
|
62
65
|
|
63
66
|
def self.available_options
|
64
67
|
[
|
68
|
+
# rubocop: disable Require/MissingRequireStatement
|
65
69
|
FastlaneCore::ConfigItem.new(key: :version_name,
|
66
70
|
env_name: "version_name",
|
67
71
|
description: 'The new version to be set "{major}.{minor}.{patch}"',
|
@@ -81,6 +85,7 @@ module Fastlane
|
|
81
85
|
description: "The path to the pubspec.yaml file",
|
82
86
|
is_string: true,
|
83
87
|
default_value: "../pubspec.yaml")
|
88
|
+
# rubocop:enable Require/MissingRequireStatement
|
84
89
|
]
|
85
90
|
end
|
86
91
|
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-flutter_dart_version_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marvin Moeltgen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
@@ -25,7 +25,21 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: fastlane
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 2.197.0
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 2.197.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: pry
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
30
44
|
requirements:
|
31
45
|
- - ">="
|
@@ -39,7 +53,7 @@ dependencies:
|
|
39
53
|
- !ruby/object:Gem::Version
|
40
54
|
version: '0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
56
|
+
name: rake
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
44
58
|
requirements:
|
45
59
|
- - ">="
|
@@ -53,7 +67,7 @@ dependencies:
|
|
53
67
|
- !ruby/object:Gem::Version
|
54
68
|
version: '0'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
70
|
+
name: rspec
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
58
72
|
requirements:
|
59
73
|
- - ">="
|
@@ -67,7 +81,7 @@ dependencies:
|
|
67
81
|
- !ruby/object:Gem::Version
|
68
82
|
version: '0'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
84
|
+
name: rspec_junit_formatter
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
72
86
|
requirements:
|
73
87
|
- - ">="
|
@@ -86,16 +100,16 @@ dependencies:
|
|
86
100
|
requirements:
|
87
101
|
- - '='
|
88
102
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
103
|
+
version: 1.12.1
|
90
104
|
type: :development
|
91
105
|
prerelease: false
|
92
106
|
version_requirements: !ruby/object:Gem::Requirement
|
93
107
|
requirements:
|
94
108
|
- - '='
|
95
109
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
110
|
+
version: 1.12.1
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
|
-
name: rubocop-
|
112
|
+
name: rubocop-performance
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
100
114
|
requirements:
|
101
115
|
- - ">="
|
@@ -109,7 +123,7 @@ dependencies:
|
|
109
123
|
- !ruby/object:Gem::Version
|
110
124
|
version: '0'
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
126
|
+
name: rubocop-require_tools
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|
114
128
|
requirements:
|
115
129
|
- - ">="
|
@@ -123,19 +137,19 @@ dependencies:
|
|
123
137
|
- !ruby/object:Gem::Version
|
124
138
|
version: '0'
|
125
139
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
140
|
+
name: simplecov
|
127
141
|
requirement: !ruby/object:Gem::Requirement
|
128
142
|
requirements:
|
129
143
|
- - ">="
|
130
144
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
145
|
+
version: '0'
|
132
146
|
type: :development
|
133
147
|
prerelease: false
|
134
148
|
version_requirements: !ruby/object:Gem::Requirement
|
135
149
|
requirements:
|
136
150
|
- - ">="
|
137
151
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
152
|
+
version: '0'
|
139
153
|
description:
|
140
154
|
email: marvinmoel05@gmaill.com
|
141
155
|
executables: []
|
@@ -161,14 +175,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
161
175
|
requirements:
|
162
176
|
- - ">="
|
163
177
|
- !ruby/object:Gem::Version
|
164
|
-
version: '
|
178
|
+
version: '2.5'
|
165
179
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
166
180
|
requirements:
|
167
181
|
- - ">="
|
168
182
|
- !ruby/object:Gem::Version
|
169
183
|
version: '0'
|
170
184
|
requirements: []
|
171
|
-
|
185
|
+
rubyforge_project:
|
186
|
+
rubygems_version: 2.7.3
|
172
187
|
signing_key:
|
173
188
|
specification_version: 4
|
174
189
|
summary: A version manager for flutter
|