Skip to content

Commit 7060029

Browse files
Fix zip directory (#186)
* Make zipDirectory call asynchronous Added 'await' to the zipDirectory method to ensure the archive creation completes before proceeding. This change improves reliability when creating app archives. * Bump to 0.9.6 and make zipDirectory asynchronous Updated all platform packages to version 0.9.6. The zipDirectory call is now asynchronous across all implementations for improved performance and consistency.
1 parent 12b520c commit 7060029

File tree

15 files changed

+39
-10
lines changed

15 files changed

+39
-10
lines changed

src/serious_python/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.9.6
2+
3+
* Make zipDirectory call asynchronous.
4+
15
## 0.9.5
26

37
* Bump `archive` to `^4.0.7`.

src/serious_python/bin/package_command.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ class PackageCommand extends Command {
433433
stdout.writeln(
434434
"Creating app archive at ${dest.path} from a temp directory");
435435
final encoder = ZipFileEncoder();
436-
encoder.zipDirectory(tempDir, filename: dest.path);
436+
await encoder.zipDirectory(tempDir, filename: dest.path);
437437

438438
// create hash file
439439
stdout.writeln("Writing app archive hash to ${dest.path}.hash");

src/serious_python/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: serious_python
22
description: A cross-platform plugin for adding embedded Python runtime to your Flutter apps.
33
homepage: https://flet.dev
44
repository: https://github.com/flet-dev/serious-python
5-
version: 0.9.5
5+
version: 0.9.6
66

77
platforms:
88
ios:

src/serious_python_android/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.9.6
2+
3+
* Make zipDirectory call asynchronous.
4+
15
## 0.9.5
26

37
* Bump `archive` to `^4.0.7`.

src/serious_python_android/android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
group 'com.flet.serious_python_android'
2-
version '0.9.5'
3-
2+
version '0.9.6'
3+
44
def python_version = '3.12'
55

66
buildscript {

src/serious_python_android/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: serious_python_android
22
description: Android implementation of the serious_python plugin
33
homepage: https://flet.dev
44
repository: https://github.com/flet-dev/serious-python
5-
version: 0.9.5
5+
version: 0.9.6
66

77
environment:
88
sdk: ">=3.0.0 <4.0.0"

src/serious_python_darwin/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## 0.9.6
2+
3+
* Make zipDirectory call asynchronous.
4+
5+
## 0.9.5
6+
7+
* Bump `archive` to `^4.0.7`.
8+
* Fixed iOS framework identifier generation.
9+
110
## 0.9.4
211

312
* 16 KB memory page support for Android 15+ (by [@ReYaNOW](https://github.com/ReYaNOW)).

src/serious_python_darwin/darwin/serious_python_darwin.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
Pod::Spec.new do |s|
66
s.name = 'serious_python_darwin'
7-
s.version = '0.9.5'
7+
s.version = '0.9.6'
88
s.summary = 'A cross-platform plugin for adding embedded Python runtime to your Flutter apps.'
99
s.description = <<-DESC
1010
A cross-platform plugin for adding embedded Python runtime to your Flutter apps.

src/serious_python_darwin/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: serious_python_darwin
22
description: iOS and macOS implementations of the serious_python plugin
33
homepage: https://flet.dev
44
repository: https://github.com/flet-dev/serious-python
5-
version: 0.9.5
5+
version: 0.9.6
66

77
environment:
88
sdk: ">=3.0.0 <4.0.0"

src/serious_python_linux/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.9.6
2+
3+
* Make zipDirectory call asynchronous.
4+
15
## 0.9.5
26

37
* Bump `archive` to `^4.0.7`.

0 commit comments

Comments
 (0)