Skip to content

fix: widen archive and intl constraints for Flutter 3.27+#886

Open
abonur wants to merge 1 commit intoopenwebf:mainfrom
abonur:fix/widen-archive-intl-constraints
Open

fix: widen archive and intl constraints for Flutter 3.27+#886
abonur wants to merge 1 commit intoopenwebf:mainfrom
abonur:fix/widen-archive-intl-constraints

Conversation

@abonur
Copy link

@abonur abonur commented Mar 17, 2026

Summary

  • archive: ^3.3.7>=3.3.7 <5.0.0
  • intl: ^0.19.0>=0.19.0 <0.21.0

Problem

Flutter 3.27+ ships flutter_localizations which pins intl: 0.20.2. This conflicts with WebF's intl: ^0.19.0 constraint (caps at <0.20.0), making it impossible to use WebF without dependency_overrides.

Similarly, archive 4.x is now common in the ecosystem. WebF only uses GZipDecoder which is stable across 3.x → 4.x, but ^3.3.7 blocks resolution when another dependency requires archive: ^4.0.0.

Changes

Widened both constraints to allow the newer major versions while keeping backward compatibility with the minimum versions WebF already supports.

Testing

  • Built and tested with Flutter 3.27 on macOS — compiles and runs without issues.
  • No API changes needed — GZipDecoder().decodeBytes() and all intl usage work identically with the newer versions.

…patibility

- archive: ^3.3.7 → >=3.3.7 <5.0.0
  archive 4.x is backward-compatible; WebF only uses GZipDecoder which is stable.

- intl: ^0.19.0 → >=0.19.0 <0.21.0
  Flutter SDK 3.27+ pins intl 0.20.2 via flutter_localizations,
  causing resolution failures with ^0.19.0 (which caps at <0.20.0).

Both changes allow WebF to be used in projects targeting Flutter 3.27+
without requiring dependency_overrides.
@vercel
Copy link

vercel bot commented Mar 17, 2026

@abonur is attempting to deploy a commit to the OpenWebF Team on Vercel.

A member of the Team first needs to authorize it.

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.

1 participant