Class: Fastlane::Actions::FlutterBumpVersionAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::FlutterBumpVersionAction
- Defined in:
- lib/fastlane/plugin/flutter_bump_version/actions/flutter_bump_version_action.rb
Class Method Summary collapse
- .authors ⇒ Object
- .available_options ⇒ Object
- .description ⇒ Object
- .details ⇒ Object
- .is_supported?(platform) ⇒ Boolean
- .return_value ⇒ Object
- .run(params) ⇒ Object
Class Method Details
.authors ⇒ Object
147 148 149 |
# File 'lib/fastlane/plugin/flutter_bump_version/actions/flutter_bump_version_action.rb', line 147 def self. ["Mohammed chahboun"] end |
.available_options ⇒ Object
159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 |
# File 'lib/fastlane/plugin/flutter_bump_version/actions/flutter_bump_version_action.rb', line 159 def self. [ FastlaneCore::ConfigItem.new( key: :pubspec, description: "Path to pubspec.yaml", optional: false, type: String ), FastlaneCore::ConfigItem.new( key: :parts, description: "part you want upgrade (major,minor or patch)", optional: true, type: String ), FastlaneCore::ConfigItem.new( key: :bump_build, description: "handle bump build as default true", optional: true, type: Boolean ), FastlaneCore::ConfigItem.new( key: :version, description: "Provide a new version to apply and automatically update build number", optional: true, type: String ) ] end |
.description ⇒ Object
143 144 145 |
# File 'lib/fastlane/plugin/flutter_bump_version/actions/flutter_bump_version_action.rb', line 143 def self.description "Fastlane plugin for upgrade flutter projects version by any part (major,minor or patch)" end |
.details ⇒ Object
155 156 157 |
# File 'lib/fastlane/plugin/flutter_bump_version/actions/flutter_bump_version_action.rb', line 155 def self.details "App versioning tool for Flutter projects that can be integrate easily into pipeline via CI/CD" end |
.is_supported?(platform) ⇒ Boolean
188 189 190 |
# File 'lib/fastlane/plugin/flutter_bump_version/actions/flutter_bump_version_action.rb', line 188 def self.is_supported?(platform) true end |
.return_value ⇒ Object
151 152 153 |
# File 'lib/fastlane/plugin/flutter_bump_version/actions/flutter_bump_version_action.rb', line 151 def self.return_value # If your method provides a return value, you can describe here what it does end |
.run(params) ⇒ Object
129 130 131 132 133 134 135 136 137 138 139 140 141 |
# File 'lib/fastlane/plugin/flutter_bump_version/actions/flutter_bump_version_action.rb', line 129 def self.run(params) pubspec_path = params[:pubspec] || '../' parts = params[:parts] || "build" bump_build = params[:bump_build].to_s.empty? ? true : params[:bump_build] split_parts = parts.split(",") provided_version = params[:version].to_s.empty? ? false : params[:version] bump_version = FlutterBumpVersion.new(pubspec_path) if provided_version bump_version.update_provided_version(provided_version, bump_build) else bump_version.bump_version(split_parts, bump_build) end end |