Class: Fastlane::Wpmreleasetoolkit::Versioning::SimpleBuildCodeFormatter

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

Overview

The ‘IntegerBuildCodeFormatter` is a specialized build code formatter for apps that use simple integer build codes in the format of `build_number`.

Instance Method Summary collapse

Instance Method Details

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

to have a consistent signature with other build code formatters.

Parameters:

  • version (AppVersion) (defaults to: nil)

    An AppVersion object. This parameter is ignored but is included

  • build_code (BuildCode)

    The BuildCode object to format

Returns:

  • (String)

    The formatted build code string.



14
15
16
# File 'lib/fastlane/plugin/wpmreleasetoolkit/versioning/formatters/simple_build_code_formatter.rb', line 14

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