class Fastlane::Actions::PubReleaseAction
Public Class Methods
available_options()
click to toggle source
# File lib/fastlane/plugin/sunny_project/actions/pub_release_action.rb, line 40 def self.available_options opts = [ FastlaneCore::ConfigItem.new(key: :skip_dirty_check, description: "Whether to skip dirty repo check", optional: true, type: Object), ] Fastlane::Actions::FinalizeVersionAction.available_options.each do |option| opts.push(option) end Fastlane::Actions::IncreaseVersionAction.available_options.each do |option| opts.push(option) end Fastlane::Actions::ReleaseNotesAction.available_options.each do |option| opts.push(option) end opts end
description()
click to toggle source
# File lib/fastlane/plugin/sunny_project/actions/pub_release_action.rb, line 23 def self.description "Releases a dart package" end
details()
click to toggle source
# File lib/fastlane/plugin/sunny_project/actions/pub_release_action.rb, line 35 def self.details # Optional: "" end
is_supported?(platform)
click to toggle source
# File lib/fastlane/plugin/sunny_project/actions/pub_release_action.rb, line 59 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/pub_release_action.rb, line 31 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/pub_release_action.rb, line 8 def self.run(options) unless options[:skip_dirty_check] Sunny.run_action(EnsureGitStatusCleanAction) end Sunny.do_increase_version(options) # Whatever happened with the incrementing, this is the build number we're # going with changes = Sunny.release_notes(options) puts(changes) Sunny.exec_cmd("pub publish", "pub publish -f") Sunny.finalize_version(options) end