From b5db1c4ceddb6839ca3db3e5eb362f730aad5a9f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 15 Dec 2024 04:20:13 +0000 Subject: [PATCH 1/3] upgrade: update dependency archive to v4 --- packages/core/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/pubspec.yaml b/packages/core/pubspec.yaml index 81af5bb6d..e41ce9f07 100644 --- a/packages/core/pubspec.yaml +++ b/packages/core/pubspec.yaml @@ -25,7 +25,7 @@ dependencies: glob: ^2.0.0 dart_style: '>=2.2.4 <4.0.0' - archive: ^3.4.0 + archive: ^4.0.0 args: ^2.0.0 pub_semver: ^2.0.0 vector_graphics_compiler: ^1.1.9 From 800658604d85ef1b6788fc3ec979e156ea783d09 Mon Sep 17 00:00:00 2001 From: Alex Li Date: Sun, 15 Dec 2024 12:28:53 +0800 Subject: [PATCH 2/3] Fix `decodeStream` --- .../core/lib/generators/integrations/lottie_integration.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/lib/generators/integrations/lottie_integration.dart b/packages/core/lib/generators/integrations/lottie_integration.dart index f7ae4cd74..0cbd90c38 100644 --- a/packages/core/lib/generators/integrations/lottie_integration.dart +++ b/packages/core/lib/generators/integrations/lottie_integration.dart @@ -122,7 +122,7 @@ ${isPackage ? "\n static const String package = '$packageName';" : ''} } if (type.mime == 'application/zip') { final inputStream = InputFileStream(type.fullPath); - final archive = ZipDecoder().decodeBuffer(inputStream); + final archive = ZipDecoder().decodeStream(inputStream); final jsonFile = archive.files.firstWhereOrNull( (e) => e.name.endsWith('.json'), ); From 381ec1bf57cfb64eb3d7238deb220a17f720b612 Mon Sep 17 00:00:00 2001 From: Alex Li Date: Sun, 15 Dec 2024 12:31:55 +0800 Subject: [PATCH 3/3] Fix constraint --- packages/core/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/pubspec.yaml b/packages/core/pubspec.yaml index e41ce9f07..42e338964 100644 --- a/packages/core/pubspec.yaml +++ b/packages/core/pubspec.yaml @@ -25,7 +25,7 @@ dependencies: glob: ^2.0.0 dart_style: '>=2.2.4 <4.0.0' - archive: ^4.0.0 + archive: '>=3.4.0 <5.0.0' args: ^2.0.0 pub_semver: ^2.0.0 vector_graphics_compiler: ^1.1.9