The plugin writes the generated version information to text files in the build output directory. You can read these files in a CI pipeline to use the values in subsequent steps (like uploading to the Play Store).
File Paths:
app/build/outputs/app_versioning/<buildVariant>/version_code.txtapp/build/outputs/app_versioning/<buildVariant>/version_name.txt
Usage Example (Shell):
VERSION_CODE=$(cat app/build/outputs/app_versioning/<buildVariant>/version_code.txt)
VERSION_NAME=$(cat app/build/outputs/app_versioning/<buildVariant>/version_name.txt)
Note: If you need these values in a different VM than the one that performed the build, you must archive and carry over these .txt files. Re-running the generation task in a different VM might result in different values (e.g., if using Epoch timestamps).