versioning_android plugin
Getting Started
This project is a fastlane plugin. To get started with fastlane-plugin-versioning_android
, add it to your project by running:
fastlane add_plugin versioning_android
About versioning_android
Android Versioning Plugin for Fastlane - easily Get / Set versionCode
and versionName
on your Android project.
Note: If you need to work with Build Number
and Version
on iOS, see versioning_ios
Available actions
-
android_get_version_code
to get the Version Code -
android_get_version_name
to get the Version Name -
android_set_version_code
to set the new Version Code -
android_set_version_name
to set the new Version Name
Example
Check out the example Fastfile
to see how to use this plugin. Try it by cloning the repo, running fastlane install_plugins
and bundle exec fastlane test
.
Example project
@todo You can find a fully functional setup of this plugin in the UdemyFastlane repo, where you can also find more info about versioning of Android apps.
Run tests for this plugin
To run both the tests, and code style validation, run
rake
To automatically fix many of the styling issues, use
rubocop -a
Issues and Feedback
Flutter
The android_set_version_name
action on Flutter requires a different usage when setting a specific version.
To avoid setting a numeral instead of a string in the build.gradle file, the version_name
argument (string) needs to be wrapped in quotes:
android_set_version_name(version_name: '"1.23.4"')
Troubleshooting
If you have trouble using plugins, check out the Plugins Troubleshooting guide.
Using fastlane Plugins
For more information about how the fastlane
plugin system works, check out the Plugins documentation.
About fastlane
fastlane is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out fastlane.tools.