Class: Fastlane::Wpmreleasetoolkit::Versioning::SimpleBuildCodeCalculator

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

Overview

The ‘SimpleBuildCodeCalculator` class is a build code calculator for apps that use simple integer build codes.

Instance Method Summary collapse

Instance Method Details

#next_build_code(build_code:) ⇒ BuildCode

Calculate the next build code.

This method increments the build code value by 1.

Parameters:

  • version (BuildCode)

    The build code to increment.

Returns:

  • (BuildCode)

    The next build code.



15
16
17
18
# File 'lib/fastlane/plugin/wpmreleasetoolkit/versioning/calculators/simple_build_code_calculator.rb', line 15

def next_build_code(build_code:)
  new_build_code = build_code.dup
  new_build_code.build_code += 1
end