fastlane-plugin-android_versioning icon indicating copy to clipboard operation
fastlane-plugin-android_versioning copied to clipboard

Does not respect the format A.B.C

Open IWIZ071 opened this issue 3 years ago • 5 comments

Hi, Getting below exception

E: [!] Your current version () does not respect the format A.B.C

versionCode 1 versionName 0.1.0

IWIZ071 avatar Jun 02 '21 14:06 IWIZ071

Did you migrate to build.gradle.kts? I have same problem after that, but it might be kind of expected - though I need a fix for that. Edit: Supported build.gradle.kts here: https://github.com/mortenholmgaard/fastlane-plugin-android-versioning-kts

mortenholmgaard avatar Jun 17 '21 06:06 mortenholmgaard

No. I didn't migrate.

IWIZ071 avatar Jun 17 '21 06:06 IWIZ071

In the args for increment_version_name, don't pass in the flavor.

Instead do this:

bump_type = (options[:flavor] == "prod" ? "minor": "patch")
increment_version_name(app_project_dir: './android/app', bump_type: bump_type)

amaankulshreshtha avatar Nov 02 '21 00:11 amaankulshreshtha