Class: Fastlane::Wpmreleasetoolkit::Versioning::FourPartBuildCodeFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/fastlane/plugin/wpmreleasetoolkit/versioning/formatters/four_part_build_code_formatter.rb

Overview

The ‘FourPartBuildCodeFormatter` is a specialized build code formatter for apps that use build codes in the format of `major.minor.patch.build_number`.

Instance Method Summary collapse

Instance Method Details

#build_code(build_code = nil, version:) ⇒ String

to have a consistent signature with other build code formatters.

Parameters:

  • version (AppVersion)

    The AppVersion object to format

  • build_code (BuildCode) (defaults to: nil)

    A BuildCode object. This parameter is ignored but is included

Returns:

  • (String)

    The formatted build code string.



16
17
18
# File 'lib/fastlane/plugin/wpmreleasetoolkit/versioning/formatters/four_part_build_code_formatter.rb', line 16

def build_code(build_code = nil, version:)
  FourPartVersionFormatter.new.to_s(version)
end