class Fastlane::Actions::IncreaseVersionAction
Public Class Methods
available_options()
click to toggle source
# File lib/fastlane/plugin/sunny_project/actions/increase_version_action.rb, line 29 def self.available_options verify_type = lambda do |value| UI.error "Invalid option: #{value} Must be 'build' or 'patch'" unless value == "build" or value == "patch" end [ FastlaneCore::ConfigItem.new(key: :type, env_name: "SUNNY_PROJECT_TYPE", description: "Whether to make a patch or build version change", optional: true, verify_block: verify_type, default_value: 'build', type: String) ] end
description()
click to toggle source
# File lib/fastlane/plugin/sunny_project/actions/increase_version_action.rb, line 12 def self.description "Increment version number in pubspec.yaml file" end
details()
click to toggle source
# File lib/fastlane/plugin/sunny_project/actions/increase_version_action.rb, line 24 def self.details # Optional: "" end
is_supported?(platform)
click to toggle source
# File lib/fastlane/plugin/sunny_project/actions/increase_version_action.rb, line 44 def self.is_supported?(platform) # Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example) # See: https://docs.fastlane.tools/advanced/#control-configuration-by-lane-and-by-platform # # [:ios, :mac, :android].include?(platform) true end
return_value()
click to toggle source
# File lib/fastlane/plugin/sunny_project/actions/increase_version_action.rb, line 20 def self.return_value # If your method provides a return value, you can describe here what it does end
run(options)
click to toggle source
# File lib/fastlane/plugin/sunny_project/actions/increase_version_action.rb, line 8 def self.run(options) Sunny.do_increase_version options end