From c81a793fc36c36b4a831b144b950eb00255afde1 Mon Sep 17 00:00:00 2001 From: Feodor Fitsner Date: Mon, 20 Oct 2025 10:12:51 -0700 Subject: [PATCH] Support 16KB pages for apps targeting Android 15+ (#53) * Update serious_python dependency ref in pubspec.yaml Changed the git ref for the serious_python dependency from 'main' to 'android-16k' to use a different branch or commit. * Update webview_flutter_android to version 4.10.1 Bumped the webview_flutter_android dependency from ^4.0.0 to 4.10.1 in pubspec.yaml to ensure compatibility with the latest features and bug fixes. * Add conditional override for webview_flutter_android Introduced a conditional block in pubspec.yaml to override the webview_flutter_android dependency only if 'flet_webview' is present in the dependencies. This improves template flexibility for different dependency configurations. * Update webview_flutter_android dependency handling Moved webview_flutter_android to be conditionally included based on the presence of 'flet_webview' in dependencies. Cleaned up commented-out geolocator dependencies. --- {{cookiecutter.out_dir}}/pubspec.yaml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/{{cookiecutter.out_dir}}/pubspec.yaml b/{{cookiecutter.out_dir}}/pubspec.yaml index a4d187b..6cef3e3 100644 --- a/{{cookiecutter.out_dir}}/pubspec.yaml +++ b/{{cookiecutter.out_dir}}/pubspec.yaml @@ -32,23 +32,21 @@ dependency_overrides: serious_python: git: url: https://github.com/flet-dev/serious-python.git - ref: main + ref: android-16k path: src/serious_python wakelock_plus: ^1.2.10 web: ^1.0.0 window_manager: ^0.4.3 - webview_flutter_android: ^4.0.0 + +# {% if 'flet_webview' in cookiecutter.flutter.dependencies %} + webview_flutter_android: 4.10.1 +# {% endif %} # {% if 'flet_audio_recorder' in cookiecutter.flutter.dependencies %} record: ^5.1.1 # {% endif %} -# {% if 'flet_geolocator' in cookiecutter.flutter.dependencies %} -# geolocator: ^12.0.0 -# geolocator_android: ^4.6.0 -# {% endif %} - dev_dependencies: flutter_launcher_icons: ^0.14.1 flutter_native_splash: ^2.4.1