Skip to content

"buildNumber" is incorrect #37320

@b0bh00d

Description

@b0bh00d

I have the following code in my Flutter project:

PackageInfo.fromPlatform().then((PackageInfo packageInfo) { appName = packageInfo.appName; packageName = packageInfo.packageName; version = packageInfo.version; buildNumber = packageInfo.buildNumber; });

The version and buildNumber values are being set directly in the pubspec.yaml file as:

version: 2020.0+3131

But the Flutter code is returning "4131" for the buildNumber instead of "3131". I have also tried passing these values on the command line instead of manually modifying pubspec.yaml (using "--build-name" and "--build-number") with the same result.

I'm using version 0.4.0+6 of package_info.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions