fastlane-plugin-flutter_bump_version 0.1.2 → 0.1.3
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1064b20657a45a14d78e09e6abd1d56b4e48289460e210839cfaf8f54c8bb3e
|
4
|
+
data.tar.gz: 5b81f2e53b86780f6728c0e382cc06ba3abafbaf5ad82cfd435f41f9f73965aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c32d9fe80c2dc1307fe54679545cdb43adbf93b7b6a9c95326727b337d0806dbcb9909299bcd218561c5e7186174d7f60f53a70c7cbf7b750cfd203fbbbae10
|
7
|
+
data.tar.gz: dfa5b03b41bdceeaebd373f44b1d75ead37a81a06f84c7c9fba97b0041fd945c03d3e422eb2ebefcea0258630358202aa551deb710c38145c29832d38d0f18e9
|
data/README.md
CHANGED
@@ -20,6 +20,7 @@ Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plu
|
|
20
20
|
|
21
21
|
You can `bump` any part of version you want by use instead of `patch` (`major`,`minor` or `patch`)
|
22
22
|
build (version code) auto-increase based on current version code
|
23
|
+
if you not pass any option with command will bump build as default
|
23
24
|
And the `push` if `true` plugin will push bump version to git remote if `false` will not push it
|
24
25
|
|
25
26
|
## Issues and Feedback
|
@@ -104,26 +104,9 @@ module Fastlane
|
|
104
104
|
class FlutterBumpVersionAction < Action
|
105
105
|
def self.run(params)
|
106
106
|
pubspec_path = params[:pubspec] || '../'
|
107
|
-
|
108
|
-
args = arguments.keys
|
107
|
+
part = params[:part] || "build"
|
109
108
|
bump_version = FlutterBumpVersion.new(pubspec_path)
|
110
|
-
|
111
|
-
if args.include?(:bump)
|
112
|
-
args.each do |a|
|
113
|
-
case a
|
114
|
-
when :bump
|
115
|
-
available_version_options = ['major', 'minor', 'patch']
|
116
|
-
if available_version_options.include?(arguments[:bump])
|
117
|
-
return bump_version.bump_version(arguments[:bump])
|
118
|
-
else
|
119
|
-
UI.message("You pass with bump wrong option, Available options : #{available_version_options}")
|
120
|
-
end
|
121
|
-
end
|
122
|
-
end
|
123
|
-
else
|
124
|
-
UI.message("Something wrong, Try: bundle exec fastlane bump_version bump:major,minor or patch")
|
125
|
-
end
|
126
|
-
return "not_bump"
|
109
|
+
bump_version.bump_version(part)
|
127
110
|
end
|
128
111
|
|
129
112
|
def self.description
|
@@ -151,10 +134,10 @@ module Fastlane
|
|
151
134
|
type: String
|
152
135
|
),
|
153
136
|
FastlaneCore::ConfigItem.new(
|
154
|
-
key: :
|
137
|
+
key: :part,
|
155
138
|
description: "part you want upgrade (major,minor or patch)",
|
156
139
|
optional: true,
|
157
|
-
type:
|
140
|
+
type: String
|
158
141
|
)
|
159
142
|
]
|
160
143
|
end
|