diff --git a/fastlane/Fastfile b/fastlane/Fastfile index b9a445b..8068d53 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -28,6 +28,10 @@ desc "Build the apk" lane :build do gradle(task: "clean assemble") + end + + desc "Tag as a new version" + lane :tag do increment_version_code( #code_num: 9, var_name: "versionCode|versionBuild", @@ -35,6 +39,9 @@ #file: "app/version.properties", verbose: true, ) + commit_android_version_bump( + message: "Increment version for new tag" + ) end desc "Build and deploy the apk for Alpha testing in Google Play store" diff --git a/fastlane/README.md b/fastlane/README.md index 4384f70..3e2e3cb 100644 --- a/fastlane/README.md +++ b/fastlane/README.md @@ -1,9 +1,32 @@ fastlane documentation ================ # Installation + +Make sure you have the latest version of the Xcode command line tools installed: + ``` -sudo gem install fastlane +xcode-select --install ``` + +## Choose your installation method: + + + + + + + + + + + + + + +
Homebrew +Installer Script +Rubygems +
macOSmacOSmacOS or Linux with Ruby 2.0.0 or above
brew cask install fastlaneDownload the zip file. Then double click on the install script (or run it in a terminal window).sudo gem install fastlane -NV
# Available Actions ## Android ### android test @@ -16,6 +39,11 @@ fastlane android build ``` Build the apk +### android tag +``` +fastlane android tag +``` +Tag as a new version ### android deploy_alpha ``` fastlane android deploy_alpha @@ -35,5 +63,5 @@ ---- This README.md is auto-generated and will be re-generated every time [fastlane](https://fastlane.tools) is run. -More information about fastlane can be found on [https://fastlane.tools](https://fastlane.tools). -The documentation of fastlane can be found on [GitHub](https://github.com/fastlane/fastlane/tree/master/fastlane). \ No newline at end of file +More information about fastlane can be found on [fastlane.tools](https://fastlane.tools). +The documentation of fastlane can be found on [docs.fastlane.tools](https://docs.fastlane.tools).