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: d3409be0f56fe130ae78d0c695fa42e1d73ee3f665f8aa57056718c3449b4afe
4
- data.tar.gz: 2c19b25901975e7f72fd2adbf42d3cf7329fae3e562411055faaf52dfab64b3f
3
+ metadata.gz: d1064b20657a45a14d78e09e6abd1d56b4e48289460e210839cfaf8f54c8bb3e
4
+ data.tar.gz: 5b81f2e53b86780f6728c0e382cc06ba3abafbaf5ad82cfd435f41f9f73965aa
5
5
  SHA512:
6
- metadata.gz: a1ee35fd243a1bc85ea9c9ab86b4ec050d7c5867255fee26f050191593837621a703c981096c8819ed6d63a846e1797e0c5e455f41beb0a170b73562cadc5660
7
- data.tar.gz: 284fa8460ed73deaee9a9893c510c19564b2591486eb2fea031b6b3e7d43ad81f14f6259903d84d3f32ec6fd413bf13d11b02db12abbe674275b73e1be20ab4c
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
- arguments = params[:arguments]
108
- args = arguments.keys
107
+ part = params[:part] || "build"
109
108
  bump_version = FlutterBumpVersion.new(pubspec_path)
110
- # Check if the user has passed additional arguments
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: :arguments,
137
+ key: :part,
155
138
  description: "part you want upgrade (major,minor or patch)",
156
139
  optional: true,
157
- type: Hash
140
+ type: String
158
141
  )
159
142
  ]
160
143
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module FlutterBumpVersion
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-flutter_bump_version
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mohammed chahboun