Class: Fastlane::Actions::FlutterVersionToolkitAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::FlutterVersionToolkitAction
- Defined in:
- lib/fastlane/plugin/flutter_version_toolkit/actions/flutter_version_toolkit_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
23 24 25 |
# File 'lib/fastlane/plugin/flutter_version_toolkit/actions/flutter_version_toolkit_action.rb', line 23 def self. ["Sanni Prasad"] end |
.available_options ⇒ Object
37 38 39 40 41 42 43 44 45 |
# File 'lib/fastlane/plugin/flutter_version_toolkit/actions/flutter_version_toolkit_action.rb', line 37 def self. [ # FastlaneCore::ConfigItem.new(key: :your_option, # env_name: "FLUTTER_VERSION_TOOLKIT_YOUR_OPTION", # description: "A description of your option", # optional: false, # type: String) ] end |
.description ⇒ Object
19 20 21 |
# File 'lib/fastlane/plugin/flutter_version_toolkit/actions/flutter_version_toolkit_action.rb', line 19 def self.description "A tool that help get version name and number from pubspec.yaml file in a flutter project" end |
.details ⇒ Object
32 33 34 35 |
# File 'lib/fastlane/plugin/flutter_version_toolkit/actions/flutter_version_toolkit_action.rb', line 32 def self.details # Optional: ".." end |
.is_supported?(platform) ⇒ Boolean
47 48 49 50 51 52 53 |
# File 'lib/fastlane/plugin/flutter_version_toolkit/actions/flutter_version_toolkit_action.rb', line 47 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 ⇒ Object
27 28 29 30 |
# File 'lib/fastlane/plugin/flutter_version_toolkit/actions/flutter_version_toolkit_action.rb', line 27 def self.return_value "Hello return value" # If your method provides a return value, you can describe here what it does end |
.run(params) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/fastlane/plugin/flutter_version_toolkit/actions/flutter_version_toolkit_action.rb', line 7 def self.run(params) UI.("The flutter_version_toolkit plugin is working!") version_info = Helper::FlutterVersionHelper.read_version_from_pubspec if version_info.nil? UI.user_error!("Failed to fetch version information from pubspec.yaml") else UI.("Version Name: #{version_info.version_name}") UI.("Build Number: #{version_info.build_number}") end end |