Class: Fastlane::Actions::IosBumpVersionBetaAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::IosBumpVersionBetaAction
- Defined in:
- lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_bump_version_beta.rb
Documentation collapse
- .authors ⇒ Object
- .available_options ⇒ Object
- .create_config ⇒ Object
- .description ⇒ Object
- .details ⇒ Object
- .is_supported?(platform) ⇒ Boolean
- .output ⇒ Object
- .return_value ⇒ Object
- .show_config ⇒ Object
Class Method Summary collapse
Class Method Details
.authors ⇒ Object
43 44 45 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_bump_version_beta.rb', line 43 def self. ['Automattic'] end |
.available_options ⇒ Object
34 35 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_bump_version_beta.rb', line 34 def self. end |
.create_config ⇒ Object
51 52 53 54 55 56 57 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_bump_version_beta.rb', line 51 def self.create_config @current_version = Fastlane::Helper::Ios::VersionHelper.get_build_version @current_version_internal = Fastlane::Helper::Ios::VersionHelper.get_internal_version unless ENV['INTERNAL_CONFIG_FILE'].nil? @new_internal_version = Fastlane::Helper::Ios::VersionHelper.create_internal_version(@current_version) unless ENV['INTERNAL_CONFIG_FILE'].nil? @new_beta_version = Fastlane::Helper::Ios::VersionHelper.calc_next_build_version(@current_version) @short_version = Fastlane::Helper::Ios::VersionHelper.get_short_version_string(@new_beta_version) end |
.description ⇒ Object
26 27 28 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_bump_version_beta.rb', line 26 def self.description 'Bumps the version of the app for a new beta' end |
.details ⇒ Object
30 31 32 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_bump_version_beta.rb', line 30 def self.details 'Bumps the version of the app for a new beta' end |
.is_supported?(platform) ⇒ Boolean
47 48 49 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_bump_version_beta.rb', line 47 def self.is_supported?(platform) %i[ios mac].include?(platform) end |
.output ⇒ Object
37 38 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_bump_version_beta.rb', line 37 def self.output end |
.return_value ⇒ Object
40 41 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_bump_version_beta.rb', line 40 def self.return_value end |
.run(params) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_bump_version_beta.rb', line 4 def self.run(params) UI. 'Bumping app release version...' require_relative '../../helper/ios/ios_git_helper' require_relative '../../helper/ios/ios_version_helper' # Verify that the current branch is a release branch. Notice that `ensure_git_branch` expects a RegEx parameter ensure_git_branch(branch: '^release/') create_config show_config UI. 'Updating XcConfig...' Fastlane::Helper::Ios::VersionHelper.update_xc_configs(@new_beta_version, @short_version, @new_internal_version) UI. 'Done!' Fastlane::Helper::Ios::GitHelper.commit_version_bump end |
.show_config ⇒ Object
59 60 61 62 63 64 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_bump_version_beta.rb', line 59 def self.show_config UI.("Current build version: #{@current_version}") UI.("Current internal version: #{@current_version_internal}") unless ENV['INTERNAL_CONFIG_FILE'].nil? UI.("New beta version: #{@new_beta_version}") UI.("New internal version: #{@new_internal_version}") unless ENV['INTERNAL_CONFIG_FILE'].nil? end |