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(build_gradle_path:, version_properties_path:) ⇒ Object
Commit the files that are modified when we bump version numbers on an Android project.
Class Method Details
.commit_version_bump(build_gradle_path:, version_properties_path:) ⇒ Object
Commit the files that are modified when we bump version numbers on an Android project
This typically commits the ‘version.properties` inside root folder or `build.gradle` file inside the project subfolder.
15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/helper/android/android_git_helper.rb', line 15 def self.commit_version_bump(build_gradle_path:, version_properties_path:) if File.exist?(version_properties_path) git_commit( path: version_properties_path, message: 'Bump version number' ) else git_commit( path: build_gradle_path, message: 'Bump version number' ) end end |