scheme
Set the shared build-number formula. See scheme.
The one formula that turns version into a store build number.
Both platforms use it. You write it once. Android takes the result as versionCode; Apple takes the same number, as text, for CURRENT_PROJECT_VERSION.
Default: VersionSchemes.DEFAULT, which packs the version as 1 | major(3) | minor(3) | patch(2) | rebuild(1), so 1.4.0 becomes 1001004000 and 1.4.1 becomes 1001004010. That reserves ten codes per version for re-uploads.
scheme { v -> 1_000_000 * v.major + 10_000 * v.minor + 100 * v.patch + v.rebuild }Content copied to clipboard
Google Play compares codes as plain integers and remembers every one you have ever uploaded, so a new formula must always produce a larger number than your highest shipped code. Guard that with KiteSsotAndroidExtension.publishedVersionCode.