Skip to content

android_set_version_name does not work with Flutter #10

@dsgriffin

Description

@dsgriffin

Using android_set_version_name without options sets versionName to an empty string. If you run it twice it then completely removes the property from gradle.

If you instead try setting a specific version (e.g. android_set_version_name(version_name: '1.0.0')) it sets an invalid raw numeric instead of a string

def flutterVersionName = 1.0.0 // Error's when building - invalid format
if (flutterVersionName == null) {
    flutterVersionName = '1.0'
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions