This project is a fastlane plugin. To get started with fastlane-plugin-revenuecat_internal
, add it to your project by running:
fastlane add_plugin revenuecat_internal
A plugin including commonly used automation logic for RevenueCat SDKs.
bump_version_update_changelog_create_pr
: This action asks for a new version number and updates all occurences of the old version number (passed as a parameter) in the list of files to update (also passed as a parameter). It also fetches the list of commits since the last tag in the given repo and generates a changelog using those, allowing the user to edit the result. Finally, it creates a release branch in the form ofrelease/NEW_VERSION_NUMBER
, commits and pushes all changes toorigin
and creates a release PR.replace_version_number
: This action asks for a new version number and updates all occurences of the old version number (passed as a parameter) in the list of files to update (also passed as a parameter).create_next_snapshot_version
: This action bumps the version to the next minor with a-SNAPSHOT
suffix and creates a PR with the changes. This action will be a no-op if the current version already is a-SNAPSHOT
.create_github_release
: This action will create a github release with the given version number as name and tag and the contents of the CHANGELOG.latest.md file as description. It can also upload files to the release if needed.replace_text_in_files
: This action will replace all the occurences of the old text with new text in the list of given paths to files.commit_current_changes
: This action will commit all currently modified files into the current branch in the local repository. (This will not include untracked files)get_latest_github_release_within_same_major
: This action will return the latest release found in github for the same major version as the one given as parameter.update_hybrids_versions_file
: This action is meant for hybrid sdks only. It will update theVERSIONS.md
file given with a new entry including the new version if the SDK and the iOS, Android and hybrid common sdk versions.
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
.
To run both the tests, and code style validation, run
bundle exec rake
To automatically fix many of the styling issues, use
rubocop -a
For any other issues and feedback about this plugin, please submit it to this repository.
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.