Skip to content

Update archive dependency to fix dart breaking changes - #380

Open
Zuckjet wants to merge 1 commit into
xvrh:masterfrom
Zuckjet:fix/type-data
Open

Update archive dependency to fix dart breaking changes#380
Zuckjet wants to merge 1 commit into
xvrh:masterfrom
Zuckjet:fix/type-data

Conversation

@Zuckjet

@Zuckjet Zuckjet commented Oct 28, 2024

Copy link
Copy Markdown

In dart 3.4 or higher version, UnmodifiableUint8ListView is deprecated, that is a breaking change. If we use a newer version flutter(that use dart 3.4 or above ), use this pacakge will throw errors:

../../.pub-cache/hosted/pub.dev/archive-3.4.10/lib/src/bzip2/bzip2.dart:5:7: Error: Method not found: 'UnmodifiableUint8ListView'.
      UnmodifiableUint8ListView(Uint8List(0));
      ^^^^^^^^^^^^^^^^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/archive-3.4.10/lib/src/bzip2/bzip2.dart:7:7: Error: Method not found: 'UnmodifiableUint32ListView'.
      UnmodifiableUint32ListView(Uint32List(0));
      ^^^^^^^^^^^^^^^^^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/archive-3.4.10/lib/src/bzip2/bzip2.dart:9:7: Error: Method not found: 'UnmodifiableInt32ListView'.
      UnmodifiableInt32ListView(Int32List(0));
      ^^^^^^^^^^^^^^^^^^^^^^^^^

relevant topics:
dart-lang/sdk#53785
jonataslaw/get_cli#263 (comment)

@saropa

saropa commented Dec 12, 2024

Copy link
Copy Markdown

This change would be very helpful, but I note we are now at v4.01!

https://pub.dev/packages/archive/changelog

archive: ^4.0.1

@Shvet

Shvet commented Dec 16, 2024

Copy link
Copy Markdown

If there any possiblity of updating archive package? I just updated flutter package and now i can not work with lottie. I have used dependecy override for now.

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.

3 participants