Skip to content

[Windows] Upgrade to ffigen: ^17.0.0 and regenerate bindings#2554

Closed
Levi-Lesches wants to merge 3 commits intoMaikuB:masterfrom
Levi-Lesches:ffigen-17
Closed

[Windows] Upgrade to ffigen: ^17.0.0 and regenerate bindings#2554
Levi-Lesches wants to merge 3 commits intoMaikuB:masterfrom
Levi-Lesches:ffigen-17

Conversation

@Levi-Lesches
Copy link
Contributor

@Levi-Lesches Levi-Lesches commented Feb 19, 2025

Closes #2553 and #2495

dependabot bot and others added 3 commits February 18, 2025 08:18
Bumps [ffigen](https://github.com/dart-lang/native/tree/main/pkgs) from 13.0.0 to 17.0.0.
- [Release notes](https://github.com/dart-lang/native/releases)
- [Commits](https://github.com/dart-lang/native/commits/ffigen-v17.0.0/pkgs)

---
updated-dependencies:
- dependency-name: ffigen
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@Levi-Lesches
Copy link
Contributor Author

Levi-Lesches commented Feb 19, 2025

From the CI logs for Flutter 3.22:

Note: meta is pinned to version 1.12.0 by flutter from the flutter SDK.
See https://dart.dev/go/sdk-version-pinning for details.
Because ffigen >=17.0.0 depends on dart_style ^3.0.0 which depends on analyzer >=6.5.0 <8.0.0, ffigen >=17.0.0 requires analyzer >=6.5.0 <8.0.0.
Because analyzer >=6.5.1 depends on meta ^1.15.0 and analyzer >=6.5.0 <6.5.1 depends on meta ^1.14.0, analyzer >=6.5.0 requires meta ^1.14.0.
Thus, ffigen >=17.0.0 requires meta ^1.14.0.
And because every version of flutter from sdk depends on meta 1.12.0, ffigen >=17.0.0 is incompatible with flutter from sdk.
So, because flutter_local_notifications_windows depends on both flutter from sdk and ffigen ^17.0.0, version solving failed.
You can try the following suggestion to make the pubspec resolve:
* Consider downgrading your constraint on ffigen: flutter pub add dev:ffigen:^15.0.0

I'd say let's close this for now and re-open #2495 as a draft for when we bump Flutter again.

@MaikuB
Copy link
Owner

MaikuB commented Feb 24, 2025

Yes this should be closed. It's the same issue as when you raised #2495 and was closed. On a related note, I believe you should have the ability to also your own PRs too? I recall seeing others accidentally raising PRs to this repo and then closed it themselves

@MaikuB MaikuB closed this Feb 24, 2025
@Levi-Lesches
Copy link
Contributor Author

I do, I was just trying to get your attention to re-open #2495 as a draft because it will, at some point, become viable again.

@MaikuB
Copy link
Owner

MaikuB commented Apr 23, 2025

It won't make sense to keep even as a draft either given it had a specific purpose around bumping to 16. It was closed due to having conflicts that would've remained even with specifying 17.0.0. Whilst I've not checked what it depends on it, in generally it's more likely the version conflict would've worsened as major version bumps may come with a bump in dependencies.

It would make more sense to have a separate PR at the time of that the minimum Flutter version for this plugin is bumped as opposed to leaving a draft PR around. I will generally check what can be reasonably bumped as part of this exercise as well

@MaikuB
Copy link
Owner

MaikuB commented Dec 7, 2025

I've bumped the minimum Flutter version now. Let me know if you have capacity to revisit soon as if you won't get to then I'll make the changes and am happy to credit you in changelog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants