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_androidAndroid 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
android_get_version_codeto get the Version Codeandroid_get_version_nameto get the Version Nameandroid_set_version_codeto set the new Version Codeandroid_set_version_nameto set the new Version Name
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.
@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.
To run both the tests, and code style validation, run
rake
To automatically fix many of the styling issues, use
rubocop -a
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"')If you have trouble using plugins, check out the Plugins Troubleshooting guide.
For more information about how the fastlane plugin system works, check out the Plugins documentation.
fastlane is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out fastlane.tools.