Module: Fastlane::Helper::Android::GitHelper
- Defined in:
- lib/fastlane/plugin/wpmreleasetoolkit/helper/android/android_git_helper.rb
Overview
Helper methods to execute git-related operations that are specific to Android projects
Class Method Summary collapse
-
.commit_version_bump ⇒ Object
Commit and push the files that are modified when we bump version numbers on an iOS project.
Class Method Details
.commit_version_bump ⇒ Object
Commit and push the files that are modified when we bump version numbers on an iOS project
This typically commits and pushes the ‘build.gradle` file inside the project subfolder.
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/helper/android/android_git_helper.rb', line 14 def self.commit_version_bump require_relative './android_version_helper' if File.exist?(Fastlane::Helper::Android::VersionHelper.version_properties_file) Fastlane::Helper::GitHelper.commit( message: 'Bump version number', files: File.join(ENV['PROJECT_ROOT_FOLDER'], 'version.properties'), push: true ) else Fastlane::Helper::GitHelper.commit( message: 'Bump version number', files: File.join(ENV['PROJECT_ROOT_FOLDER'], ENV['PROJECT_NAME'], 'build.gradle'), push: true ) end end |