Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/serious_python/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.9.4
* Fix: Updated compileSdkVersion to pass Android builds
* Fix: The version of the dependency `archive` was increased to `4.0.7` and code changes were made for migration.

## 0.9.3

* Fix: Hidden files in site-packages are skipped when building macOS app.
Expand Down
2 changes: 1 addition & 1 deletion src/serious_python/bin/package_command.dart
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ class PackageCommand extends Command {
stdout.writeln(
"Creating app archive at ${dest.path} from a temp directory");
final encoder = ZipFileEncoder();
encoder.zipDirectory(tempDir, filename: dest.path);
await encoder.zipDirectory(tempDir, filename: dest.path);

// create hash file
stdout.writeln("Writing app archive hash to ${dest.path}.hash");
Expand Down
12 changes: 6 additions & 6 deletions src/serious_python/example/flask_example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -281,42 +281,42 @@ packages:
path: "../.."
relative: true
source: path
version: "0.9.3"
version: "0.9.4"
serious_python_android:
dependency: transitive
description:
path: "../../../serious_python_android"
relative: true
source: path
version: "0.9.3"
version: "0.9.4"
serious_python_darwin:
dependency: transitive
description:
path: "../../../serious_python_darwin"
relative: true
source: path
version: "0.9.3"
version: "0.9.4"
serious_python_linux:
dependency: transitive
description:
path: "../../../serious_python_linux"
relative: true
source: path
version: "0.9.3"
version: "0.9.4"
serious_python_platform_interface:
dependency: transitive
description:
path: "../../../serious_python_platform_interface"
relative: true
source: path
version: "0.9.3"
version: "0.9.4"
serious_python_windows:
dependency: transitive
description:
path: "../../../serious_python_windows"
relative: true
source: path
version: "0.9.3"
version: "0.9.4"
shelf:
dependency: transitive
description:
Expand Down
12 changes: 6 additions & 6 deletions src/serious_python/example/flet_example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -554,42 +554,42 @@ packages:
path: "../.."
relative: true
source: path
version: "0.9.3"
version: "0.9.4"
serious_python_android:
dependency: transitive
description:
path: "../../../serious_python_android"
relative: true
source: path
version: "0.9.3"
version: "0.9.4"
serious_python_darwin:
dependency: transitive
description:
path: "../../../serious_python_darwin"
relative: true
source: path
version: "0.9.3"
version: "0.9.4"
serious_python_linux:
dependency: transitive
description:
path: "../../../serious_python_linux"
relative: true
source: path
version: "0.9.3"
version: "0.9.4"
serious_python_platform_interface:
dependency: transitive
description:
path: "../../../serious_python_platform_interface"
relative: true
source: path
version: "0.9.3"
version: "0.9.4"
serious_python_windows:
dependency: transitive
description:
path: "../../../serious_python_windows"
relative: true
source: path
version: "0.9.3"
version: "0.9.4"
shared_preferences:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion src/serious_python/example/run_example/macos/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ PODS:
- path_provider_foundation (0.0.1):
- Flutter
- FlutterMacOS
- serious_python_darwin (0.9.2):
- serious_python_darwin (0.9.4):
- Flutter
- FlutterMacOS

Expand Down
12 changes: 6 additions & 6 deletions src/serious_python/example/run_example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -304,42 +304,42 @@ packages:
path: "../.."
relative: true
source: path
version: "0.9.3"
version: "0.9.4"
serious_python_android:
dependency: transitive
description:
path: "../../../serious_python_android"
relative: true
source: path
version: "0.9.3"
version: "0.9.4"
serious_python_darwin:
dependency: transitive
description:
path: "../../../serious_python_darwin"
relative: true
source: path
version: "0.9.3"
version: "0.9.4"
serious_python_linux:
dependency: transitive
description:
path: "../../../serious_python_linux"
relative: true
source: path
version: "0.9.3"
version: "0.9.4"
serious_python_platform_interface:
dependency: transitive
description:
path: "../../../serious_python_platform_interface"
relative: true
source: path
version: "0.9.3"
version: "0.9.4"
serious_python_windows:
dependency: transitive
description:
path: "../../../serious_python_windows"
relative: true
source: path
version: "0.9.3"
version: "0.9.4"
shelf:
dependency: transitive
description:
Expand Down
6 changes: 3 additions & 3 deletions src/serious_python/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.3
version: 0.9.4

platforms:
ios:
Expand Down Expand Up @@ -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
Expand All @@ -57,4 +57,4 @@ dev_dependencies:
flutter_test:
sdk: flutter
plugin_platform_interface: ^2.1.6
flutter_lints: ^2.0.0
flutter_lints: ^2.0.0
6 changes: 3 additions & 3 deletions src/serious_python_android/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group 'com.flet.serious_python_android'
version '0.9.3'
version '0.9.4'

def python_version = '3.12'

Expand Down Expand Up @@ -31,7 +31,7 @@ android {

// Bumping the plugin compileSdkVersion requires all clients of this plugin
// to bump the version in their app.
compileSdkVersion 31
compileSdkVersion 36

// Invoke the shared CMake build with the Android Gradle Plugin.
externalNativeBuild {
Expand Down Expand Up @@ -129,4 +129,4 @@ if (System.getenv('SERIOUS_PYTHON_BUILD_DIST')) {
task copyOrUntar(dependsOn: packageTasks)
}

preBuild.dependsOn copyOrUntar
preBuild.dependsOn copyOrUntar
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-bin.zip
2 changes: 1 addition & 1 deletion src/serious_python_android/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.3
version: 0.9.4

environment:
sdk: ">=3.0.0 <4.0.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
Pod::Spec.new do |s|
s.name = 'serious_python_darwin'
s.version = '0.9.3'
s.version = '0.9.4'
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.
Expand Down
2 changes: 1 addition & 1 deletion src/serious_python_darwin/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.3
version: 0.9.4

environment:
sdk: ">=3.0.0 <4.0.0"
Expand Down
2 changes: 1 addition & 1 deletion src/serious_python_linux/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.3
version: 0.9.4

environment:
sdk: '>=3.1.3 <4.0.0'
Expand Down
4 changes: 2 additions & 2 deletions src/serious_python_platform_interface/lib/src/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ Future<String> 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);
Expand Down
4 changes: 2 additions & 2 deletions src/serious_python_platform_interface/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: serious_python_platform_interface
description: A common platform interface for the serious_python plugin.
homepage: https://flet.dev
repository: https://github.com/flet-dev/serious-python
version: 0.9.3
version: 0.9.4

environment:
sdk: ">=3.0.0 <4.0.0"
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/serious_python_windows/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.3
version: 0.9.4

environment:
sdk: '>=3.1.3 <4.0.0'
Expand Down