-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[package_info_plus] Wrong version on windows #343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@jpnurmi do you have any idea for this? |
I recall it's the version of the .exe, which should be possible to define with CMake. |
This doesn't currently do anything for Windows builds; see flutter/flutter#73652 |
same issue, any solution? |
Same here for windows |
Everyone will have this behavior on Windows because, per my comment above, that's how Flutter currently works. The version in |
Is this the same reason for the version now? 1.4.2. Instead of the value 1.0.2 i get 1 only. no decimal. (in windows) |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days |
The newest ones are already supported and can get the version number correctly |
I have a old windows project where this problem occur. Duplication the example project in package_info_plus works okay, but not my old project. This leads me to believe that I must update something in my project. |
Here is the migration guide for you.
Projects created before Flutter version 3.3 need to be migrated to support versioning. |
This is fixed now that flutter/flutter#73652 has been fixed, but you'll need to migrate your project by following the instructions here for projects created before Flutter 3.3 |
I was about to leave an issue.. but I also had the same problem. If you had started a project before Flutter 3.3, then your Windows build will be "stale" and not work with this package "as expected" Getting the version and build from the yaml. You will be saying "It works in Android, but not in Windows." To solve this problem You can see this link here After doing this, you will then be able to get the desired results. In any case.. I appreciate this package very much and we ship to 5 Os's. We have a project that was started a while back and had trouble with determining version numbers because we hardcoded it.. and we are lazy to change every time. However, the build number increments are required for app store submission, so we cannot be lazy with that. It might just be that older projects that started the flutter create with windows only one year ago will be looking for this package_info addon as a solution, yet encounter these same errors. |
@bksubhuti Thank you very much for such detailed feedback. I will update the documentation to explicitly mention requirement to migrate. |
This was a known issue with projects created up to Flutter 3.3 Fix suggested in the issue on plus_plugins repo: fluttercommunity/plus_plugins#343 (comment)
Hey,
Steps to reproduce:
I've set the version to 1.0.22+22 in pubspec yaml...
I use a function to get the version:
Result:
On Android I am getting 1.0.2
On Windows I am getting 1.0.0
Expected:
On Windows it should also be 1.0.2
The text was updated successfully, but these errors were encountered: