diff --git a/src/serious_python/CHANGELOG.md b/src/serious_python/CHANGELOG.md
index 614940aa..4791e9d0 100644
--- a/src/serious_python/CHANGELOG.md
+++ b/src/serious_python/CHANGELOG.md
@@ -1,3 +1,8 @@
+## 0.9.5
+
+* Bump `archive` to `^4.0.7`.
+* Fixed iOS framework identifier generation.
+
## 0.9.4
* 16 KB memory page support for Android 15+ (by [@ReYaNOW](https://github.com/ReYaNOW)).
diff --git a/src/serious_python/pubspec.yaml b/src/serious_python/pubspec.yaml
index 732cee5f..640186fb 100644
--- a/src/serious_python/pubspec.yaml
+++ b/src/serious_python/pubspec.yaml
@@ -2,7 +2,7 @@ name: serious_python
description: A cross-platform plugin for adding embedded Python runtime to your Flutter apps.
homepage: https://flet.dev
repository: https://github.com/flet-dev/serious-python
-version: 0.9.4
+version: 0.9.5
platforms:
ios:
@@ -44,7 +44,7 @@ dependencies:
path: ../serious_python_linux
path_provider: ^2.1.3
- archive: ^3.6.1
+ archive: ^4.0.7
path: ^1.9.0
args: ^2.5.0
toml: ^0.15.0
diff --git a/src/serious_python_android/CHANGELOG.md b/src/serious_python_android/CHANGELOG.md
index 658f9f8d..89c435fa 100644
--- a/src/serious_python_android/CHANGELOG.md
+++ b/src/serious_python_android/CHANGELOG.md
@@ -1,3 +1,8 @@
+## 0.9.5
+
+* Bump `archive` to `^4.0.7`.
+* Fixed iOS framework identifier generation.
+
## 0.9.4
* 16 KB memory page support for Android 15+ (by [@ReYaNOW](https://github.com/ReYaNOW)).
diff --git a/src/serious_python_android/android/build.gradle b/src/serious_python_android/android/build.gradle
index 35d43607..39d1f4d3 100644
--- a/src/serious_python_android/android/build.gradle
+++ b/src/serious_python_android/android/build.gradle
@@ -1,5 +1,5 @@
group 'com.flet.serious_python_android'
-version '0.9.4'
+version '0.9.5'
def python_version = '3.12'
diff --git a/src/serious_python_android/pubspec.yaml b/src/serious_python_android/pubspec.yaml
index 90adfe9c..d0291a00 100644
--- a/src/serious_python_android/pubspec.yaml
+++ b/src/serious_python_android/pubspec.yaml
@@ -2,7 +2,7 @@ name: serious_python_android
description: Android implementation of the serious_python plugin
homepage: https://flet.dev
repository: https://github.com/flet-dev/serious-python
-version: 0.9.4
+version: 0.9.5
environment:
sdk: ">=3.0.0 <4.0.0"
diff --git a/src/serious_python_darwin/darwin/serious_python_darwin.podspec b/src/serious_python_darwin/darwin/serious_python_darwin.podspec
index 05f0de51..5993eac2 100644
--- a/src/serious_python_darwin/darwin/serious_python_darwin.podspec
+++ b/src/serious_python_darwin/darwin/serious_python_darwin.podspec
@@ -4,7 +4,7 @@
#
Pod::Spec.new do |s|
s.name = 'serious_python_darwin'
- s.version = '0.9.4'
+ s.version = '0.9.5'
s.summary = 'A cross-platform plugin for adding embedded Python runtime to your Flutter apps.'
s.description = <<-DESC
A cross-platform plugin for adding embedded Python runtime to your Flutter apps.
diff --git a/src/serious_python_darwin/darwin/xcframework_utils.sh b/src/serious_python_darwin/darwin/xcframework_utils.sh
index 14ab4373..87447b4a 100644
--- a/src/serious_python_darwin/darwin/xcframework_utils.sh
+++ b/src/serious_python_darwin/darwin/xcframework_utils.sh
@@ -23,7 +23,7 @@ create_plist() {
CFBundleInfoDictionaryVersion
6.0
CFBundlePackageType
- APPL
+ FMWK
CFBundleShortVersionString
1.0
CFBundleSupportedPlatforms
@@ -55,6 +55,10 @@ create_xcframework_from_dylibs() {
dylib_without_ext=$(echo $dylib_relative_path | cut -d "." -f 1)
framework=$(echo $dylib_without_ext | tr "/" ".")
framework_identifier=${framework//_/-}
+ while [[ $framework_identifier == -* ]]; do
+ framework_identifier=${framework_identifier#-}
+ done
+ framework_identifier=${framework_identifier:-framework}
# creating "iphoneos" framework
fd=iphoneos/$framework.framework
diff --git a/src/serious_python_darwin/pubspec.yaml b/src/serious_python_darwin/pubspec.yaml
index 655f04c3..284f47c1 100644
--- a/src/serious_python_darwin/pubspec.yaml
+++ b/src/serious_python_darwin/pubspec.yaml
@@ -2,7 +2,7 @@ name: serious_python_darwin
description: iOS and macOS implementations of the serious_python plugin
homepage: https://flet.dev
repository: https://github.com/flet-dev/serious-python
-version: 0.9.4
+version: 0.9.5
environment:
sdk: ">=3.0.0 <4.0.0"
diff --git a/src/serious_python_linux/CHANGELOG.md b/src/serious_python_linux/CHANGELOG.md
index 0f06bba1..269bbc1f 100644
--- a/src/serious_python_linux/CHANGELOG.md
+++ b/src/serious_python_linux/CHANGELOG.md
@@ -1,3 +1,8 @@
+## 0.9.5
+
+* Bump `archive` to `^4.0.7`.
+* Fixed iOS framework identifier generation.
+
## 0.9.4
* 16 KB memory page support for Android 15+ (by [@ReYaNOW](https://github.com/ReYaNOW)).
diff --git a/src/serious_python_linux/pubspec.yaml b/src/serious_python_linux/pubspec.yaml
index b2b22e82..47f3a8f3 100644
--- a/src/serious_python_linux/pubspec.yaml
+++ b/src/serious_python_linux/pubspec.yaml
@@ -2,7 +2,7 @@ name: serious_python_linux
description: Linux implementations of the serious_python plugin
homepage: https://flet.dev
repository: https://github.com/flet-dev/serious-python
-version: 0.9.4
+version: 0.9.5
environment:
sdk: '>=3.1.3 <4.0.0'
diff --git a/src/serious_python_platform_interface/CHANGELOG.md b/src/serious_python_platform_interface/CHANGELOG.md
index bb1ffc8f..54670e7d 100644
--- a/src/serious_python_platform_interface/CHANGELOG.md
+++ b/src/serious_python_platform_interface/CHANGELOG.md
@@ -1,3 +1,8 @@
+## 0.9.5
+
+* Bump `archive` to `^4.0.7`.
+* Fixed iOS framework identifier generation.
+
## 0.9.4
* 16 KB memory page support for Android 15+ (by [@ReYaNOW](https://github.com/ReYaNOW)).
diff --git a/src/serious_python_platform_interface/lib/src/utils.dart b/src/serious_python_platform_interface/lib/src/utils.dart
index e364c4e3..a45e7f34 100644
--- a/src/serious_python_platform_interface/lib/src/utils.dart
+++ b/src/serious_python_platform_interface/lib/src/utils.dart
@@ -60,9 +60,9 @@ Future extractAssetOrFile(String path,
archive = ZipDecoder().decodeBytes(data);
} else {
final inputStream = InputFileStream(path);
- archive = ZipDecoder().decodeBuffer(inputStream);
+ archive = ZipDecoder().decodeStream(inputStream);
}
- await extractArchiveToDiskAsync(archive, destDir.path, asyncWrite: true);
+ await extractArchiveToDisk(archive, destDir.path);
} catch (e) {
debugPrint("Error unpacking archive: $e");
await destDir.delete(recursive: true);
diff --git a/src/serious_python_platform_interface/pubspec.yaml b/src/serious_python_platform_interface/pubspec.yaml
index a5428de2..d75fe903 100644
--- a/src/serious_python_platform_interface/pubspec.yaml
+++ b/src/serious_python_platform_interface/pubspec.yaml
@@ -13,7 +13,7 @@ dependencies:
sdk: flutter
plugin_platform_interface: ^2.1.8
path_provider: ^2.1.3
- archive: ^3.6.1
+ archive: ^4.0.7
path: ^1.9.0
dev_dependencies:
diff --git a/src/serious_python_windows/CHANGELOG.md b/src/serious_python_windows/CHANGELOG.md
index a29364f5..09e5bf91 100644
--- a/src/serious_python_windows/CHANGELOG.md
+++ b/src/serious_python_windows/CHANGELOG.md
@@ -1,3 +1,8 @@
+## 0.9.5
+
+* Bump `archive` to `^4.0.7`.
+* Fixed iOS framework identifier generation.
+
## 0.9.4
* 16 KB memory page support for Android 15+ (by [@ReYaNOW](https://github.com/ReYaNOW)).
diff --git a/src/serious_python_windows/pubspec.yaml b/src/serious_python_windows/pubspec.yaml
index 823f9799..138323dc 100644
--- a/src/serious_python_windows/pubspec.yaml
+++ b/src/serious_python_windows/pubspec.yaml
@@ -2,7 +2,7 @@ name: serious_python_windows
description: Windows implementations of the serious_python plugin
homepage: https://flet.dev
repository: https://github.com/flet-dev/serious-python
-version: 0.9.4
+version: 0.9.5
environment:
sdk: '>=3.1.3 <4.0.0'