Commit Graph

34 Commits

Author SHA1 Message Date
Feodor Fitsner bbfc5c0cf5
Fix iOS routing on a cold start (#62)
* Use relative socket paths instead of absolute paths

Replaced usage of absolute paths with relative socket file names for Unix domain sockets. This change simplifies socket file handling and may improve compatibility across different environments.

* Update temp directory usage for socket paths

Replaced getApplicationCacheDirectory with getTemporaryDirectory for app temp path. Updated socket file paths to use the correct temp directory, ensuring consistency and proper file placement across platforms.

* Revert "Update temp directory usage for socket paths"

This reverts commit 84c512c0c6.

* Log incoming route information from platform

Added a handler for PlatformDispatcher.onRouteInformationUpdated to log every incoming route or deeplink. This helps with debugging and tracking navigation events from the platform.

* Add RouteLogger to observe route information

Introduced a RouteLogger class implementing WidgetsBindingObserver to log incoming route information. Replaced the previous onRouteInformationUpdated handler with the observer pattern for improved route logging.

* Update flet dependency to deep-linking-fix branch

Changed the flet package override to use the 'deep-linking-fix' branch instead of 'main' for testing or applying fixes related to deep linking.

* Update deep linking bootstrap and flet dependency ref

Replaces manual route logging with FletDeepLinkingBootstrap.install() in main.dart for improved deep linking support. Updates the flet dependency git ref to 'deep-linking-fix-2' in pubspec.yaml.

* Update flet dependency to use main branch

Changed the flet dependency override from the 'deep-linking-fix-2' branch to the 'main' branch to track the latest stable updates.
2025-12-22 21:28:01 -08:00
Feodor Fitsner edaf215577
0.70.0 routing fix (#61)
* Update flet dependency to routing-fix branch

Changed the flet dependency override to use the 'routing-fix' branch instead of 'main' for testing or applying routing-related fixes.

* Add hideWindowOnStart option to app startup

Introduces a new hideWindowOnStart configuration option, allowing the app window to be hidden on startup based on project settings. Passes this option to setupDesktop for improved control over window visibility during launch.

* Remove unused setupDesktop function

Deleted the setupDesktop function from main.dart as it is no longer used. This helps clean up the codebase and removes unnecessary platform-specific initialization logic.

* Update serious_python and flet dependencies

Bump serious_python to version 0.9.7 and update flet dependency override to use the main branch. Also comment out the serious_python git override.

* Enable serious_python with updated git reference

Uncommented the serious_python dependency and updated its git reference to use the 'android-logging-fix' branch. This change ensures the project uses the latest fixes from the serious_python repository.

* Update flet dependency to video-crash-fix branch

Changed the flet dependency override to use the 'video-crash-fix' branch instead of 'main' to address video-related issues.

* Update flet dependency to use main branch

Changed the flet dependency override from the 'video-crash-fix' branch to the 'main' branch in pubspec.yaml. This ensures the project uses the latest stable code from the main branch.

* Update serious_python to version 0.9.8

Bump serious_python dependency from 0.9.7 to 0.9.8 and comment out the git override for serious_python in pubspec.yaml.
2025-12-22 09:58:10 -08:00
Feodor Fitsner 68f3727168
0.70.0 android crash fix (#60)
* Update serious_python dependency ref

Changed the git reference for serious_python from 'android-crash-fix' to 'android10-fix' in pubspec.yaml to use the latest fix.

* Update serious_python dependency ref

Changed the git reference for serious_python from 'android10-fix' to 'android-crash-fix' in pubspec.yaml to use the latest fix for Android crashes.

* Update serious_python dependency ref in pubspec.yaml

Changed the git ref for serious_python from 'android-crash-fix' to 'android10-fix' to use the updated branch.

* Add random suffix to UDS socket filename

Appends a random 8-character string to the Unix Domain Socket filename to avoid potential conflicts when multiple instances are running. Introduces a helper function for generating random strings.

* Revert "Add random suffix to UDS socket filename"

This reverts commit bcff44e8e1.

* Comment out debugPrint override in release mode

The line that disables debugPrint in release mode has been commented out, allowing debug messages to be printed even in release builds. This may be for troubleshooting or to temporarily enable logging.

* Fix UDS path for FLET_SERVER_UDS_PATH environment variable

Updated the UDS path assignment to use the full path by joining appTempPath and the socket filename. This ensures the environment variable points to the correct socket location.

* Fix UDS path assignment for non-Windows platforms

Corrects the construction of the Unix Domain Socket path by joining the temp directory and socket filename, ensuring the environment variable and pageUrl are set consistently.

* Enable debugPrint suppression in release mode

Uncommented the line that suppresses debugPrint output when not in debug mode and in release builds. Also updated socket address generation to use a temporary storage path from environment variables for non-TCP output.

* Fix null safety issue with environment variable access

Added a non-null assertion operator to ensure 'FLET_APP_STORAGE_TEMP' is not null when constructing the socket address path.
2025-12-16 15:51:19 -08:00
Feodor Fitsner 8255791c47
0.70.0 sensors (#59)
* Update flet dependency to use 'sensors' branch

Changed the flet package override to reference the 'sensors' branch instead of 'main'. This may be to incorporate new features or fixes related to sensors from the upstream repository.

* Update and clean up dependencies in pubspec.yaml

Removed 'url_strategy' dependency, updated 'package_info_plus' and 'window_manager' to newer versions, and added 'sensors_plus'. This keeps dependencies current and removes unused packages.

* Add url_strategy dependency to pubspec.yaml

Included the url_strategy package version 0.2.0 to the dependencies for improved URL handling in the project.

* Update sensors_plus to version 7.0.0

Bumped sensors_plus dependency from 6.1.1 to 7.0.0 in pubspec.yaml to use the latest features and fixes.

* Add screen_brightness dependency and update flet ref

Added the screen_brightness package to dependencies and updated the flet dependency override to use the sensors-brightness branch. This enables brightness control functionality and ensures compatibility with the latest flet features.

* Update flet dependency override to 'sensors' ref

Changed the flet package git reference from 'sensors-brightness' to 'sensors' in pubspec.yaml to use the updated branch.

* Add wakelock_plus dependency

Added wakelock_plus version 1.4.0 to pubspec.yaml to enable wakelock functionality in the project.

* Remove wakelock_plus and window_manager dependencies

The wakelock_plus and window_manager dependencies have been removed from pubspec.yaml, possibly due to no longer being required in the project.

* Remove url_strategy dependency from pubspec.yaml

The url_strategy package has been removed from the dependencies list, possibly because it is no longer needed or used in the project.

* Update url_strategy import and add flutter_web_plugins

Replaced the url_strategy import with flutter_web_plugins/url_strategy in main.dart and added flutter_web_plugins to pubspec.yaml dependencies to ensure compatibility and proper URL strategy support.

* Replace setPathUrlStrategy with usePathUrlStrategy

Updated the URL strategy function call to usePathUrlStrategy for web routing. This change ensures compatibility with the latest API and improves route handling.

* Add wakelock_plus to dependency overrides

Added wakelock_plus version 1.4.0 to the dependency_overrides section in pubspec.yaml to enable wakelock functionality in the project.

* Add file_picker dependency to pubspec.yaml

Included the file_picker package (version ^10.3.3) in dependencies to enable file selection functionality in the project.

* Add new dependencies to pubspec.yaml

Added device_info_plus, shared_preferences, and url_launcher to the dependencies. Reordered some existing dependencies for consistency.

* Add battery_plus dependency to pubspec.yaml

Included battery_plus version ^6.2.2 in dependencies to enable battery information features in the project.

* Add connectivity_plus dependency to pubspec.yaml

Added the connectivity_plus package (version ^6.1.2) to the dependencies for network connectivity features.

* Add share_plus dependency to pubspec.yaml

Included the share_plus package (version ^12.0.1) in dependencies to enable sharing functionality within the project.

* Update Flutter plugin dependencies to latest versions

Upgraded battery_plus, connectivity_plus, device_info_plus, and screen_brightness to their latest compatible versions in pubspec.yaml to ensure compatibility and access to new features and bug fixes.

* Update flet dependency to use main branch

Changed the flet dependency override from the 'sensors' branch to the 'main' branch in pubspec.yaml to ensure the latest stable code is used.
2025-12-10 09:02:43 -08:00
Feodor Fitsner 1a928b53b4 Rename isProduction to isRelease and update usage
Replaces the isProduction constant with isRelease for clarity and updates its usage in the prepareApp function to ensure debugPrint is disabled only in release mode.
2025-11-26 09:55:13 -08:00
Feodor Fitsner 9e3d215ca8 Enable debug mode if FLET_PAGE_URL provided 2025-06-10 13:11:03 -07:00
Feodor Fitsner 7174430e6f Support developer mode with custom URL 2025-06-10 11:36:42 -07:00
Feodor Fitsner 37782c5a27 Fix extensions 2025-04-04 19:59:29 -07:00
Feodor Fitsner b0d17e8776 Fix extensions 2025-04-04 19:54:13 -07:00
Feodor Fitsner 4ca251aced Switch to extensions 2025-04-04 14:31:43 -07:00
Feodor Fitsner e738dd0c87
0.27.4 Android splash and Loading screen (#43)
* Remove splash colors for Android 12

* Set icon_background_color

* Remove icon_background_color

* Splash Screen test

* Fix if

* Splash screen

* get_config_platform()

* Fix package_platform

* Platform-specific splash_screen

* Added trim

* splash_screen_text

* Fix condition

* hide_loading_animation: false

* loading_screen

* Test get_pyproject()

* Declare get_pyproject

* Test my_custom_function

* Test foobar filter

* Fix splash_screen

* Test greeter

* Test context aware function

* Fix get_pyproject

* Remove macros

* Test boot and startup screens

* Fix appBootScreenMessage

* Fix show setting

* Cleanup
2025-03-04 13:52:49 -08:00
Feodor Fitsner a80ff08a9b fix _args list 2025-01-21 13:50:29 -08:00
Feodor Fitsner a090ff82dc
Changes to 0.26.0 (#36)
* serious_python 0.8.4

* flet: 0.25.2

* file_picker: ^8.1.5

* file_picker: 8.1.4

* file_picker: 8.1.5

* file_picker: 8.1.4

* Remove file_picker override

* serious_python 0.8.4

* initialize_ctypes and serious_python 0.8.7 (#34)

* serious_python: 0.8.6

* Added initialize_ctypes override

* serious_python: 0.8.7

* Use Flet package from Git/flutter-extensions

* feodor/flutter-extensions

* Remove NDK, update minSdkVersion

* wakelock_plus: ^1.2.10

* Update gradle.properties

* Changes to 0.26.0-dev (#35)

* Added support for developer mode

* Do not run runPythonApp() in developer mode

* Import crtfifi in try..catch

* Flet ref changed to `main`
2025-01-16 10:01:13 -08:00
Feodor Fitsner 0d7f36b47c
Fix app close for macOS in 0.25.0 (#31)
* Deep linking settings

* Update web template

* Fix template

* Fix web template again

* Bump dev_dependencies

* Add flutter_bootstrap.js

* Use project_name_slug variable

* web mobile-web-app-capable

* externalNativeBuild

* Remove externalNativeBuild

* serious_python: 0.8.2

* Added sys.argv support

* Pass argv

* pwa_background_color and pwa_theme_color options

* Fix pwa_background_color in template

* Fix pwa_background_color again

* Set default pwa_background_color

* pwa white background

* Use pid for sockets

* Move setupDesktop()

* Update MainFlutterWindow.swift

* Rewrite setupDesktop

* Use windowManager.setSkipTaskbar

* Hide Linux window

* Prevent quit on close

* FLET_HIDE_APP_ON_START

* Default adaptive_icon_background, adaptive_icon_foreground

* FLET_APP_CONSOLE variable

* Add support for android meta-data

* Fix backslash in outLogFilename

* Fix rive_common build on Linux

* Enable logging

* Update AppDelegate.swift

* Enable --debug
2024-11-29 14:31:33 -08:00
Feodor Fitsner cc5df08f38 Rename FLET_APP_DATA to FLET_APP_STORAGE_DATA 2024-11-26 09:52:37 -08:00
Feodor Fitsner 222dc57a6f
Fix Windows builds for 0.25.0 (#26) 2024-11-08 17:01:10 -08:00
Feodor Fitsner fecd2df8c2
Changes to 0.25.0 (#25)
* Deep linking settings

* Update web template

* Fix template

* Fix web template again

* Bump dev_dependencies

* Add flutter_bootstrap.js

* Use project_name_slug variable

* web mobile-web-app-capable

* externalNativeBuild

* Remove externalNativeBuild

* serious_python: 0.8.2

* Added sys.argv support

* Pass argv

* pwa_background_color and pwa_theme_color options

* Fix pwa_background_color in template

* Fix pwa_background_color again

* Set default pwa_background_color

* pwa white background

* Use pid for sockets

* Move setupDesktop()

* Update MainFlutterWindow.swift

* Rewrite setupDesktop

* Use windowManager.setSkipTaskbar

* Hide Linux window

* Prevent quit on close

* FLET_HIDE_APP_ON_START

* Default adaptive_icon_background, adaptive_icon_foreground

* FLET_APP_CONSOLE variable

* Add support for android meta-data
2024-11-08 09:14:48 -08:00
Feodor Fitsner 893e7d9fd5
Desktop fixes for 0.25.0 (#24)
* Deep linking settings

* Update web template

* Fix template

* Fix web template again

* Bump dev_dependencies

* Add flutter_bootstrap.js

* Use project_name_slug variable

* web mobile-web-app-capable

* externalNativeBuild

* Remove externalNativeBuild

* serious_python: 0.8.2

* Added sys.argv support

* Pass argv

* pwa_background_color and pwa_theme_color options

* Fix pwa_background_color in template

* Fix pwa_background_color again

* Set default pwa_background_color

* pwa white background

* Use pid for sockets

* Move setupDesktop()

* Update MainFlutterWindow.swift

* Rewrite setupDesktop

* Use windowManager.setSkipTaskbar

* Hide Linux window

* Prevent quit on close

* FLET_HIDE_APP_ON_START
2024-11-05 11:29:21 -08:00
Feodor Fitsner 287ee5350f
Changes for 0.25.0 (#23)
* Deep linking settings

* Update web template

* Fix template

* Fix web template again

* Bump dev_dependencies

* Add flutter_bootstrap.js

* Use project_name_slug variable

* web mobile-web-app-capable

* externalNativeBuild

* Remove externalNativeBuild

* serious_python: 0.8.2

* Added sys.argv support

* Pass argv

* pwa_background_color and pwa_theme_color options

* Fix pwa_background_color in template

* Fix pwa_background_color again

* Set default pwa_background_color

* pwa white background
2024-11-05 09:40:08 -08:00
Feodor Fitsner 1a557571ff Set CRYPTOGRAPHY_OPENSSL_NO_LEGACY 2024-10-23 14:09:14 -07:00
Feodor Fitsner 5b00ffb439
For Flet 0.25.0 (#20)
* path to serious_python

* full path to serious_python

* doNotStrip

* change abi filters order

* change order again

* split_per_abi

* make an error in template

* Fix template

* Test info_plist

* info plist complete

* Fix elif

* Another fix

* Another try

* simplify if

* simple test

* no v

* remove everything

* remove other options

* restore infoplist

* equal not is

* one line

* add macos_entitlements

* empty list

* empty array

* macos entitlements

* No hard-coded entitlements

* Android manifest

* Fix manifest

* Fix template again

* Remove hard-coded permissions

* Fix template

* true and false

* remove hard-coded permissions

* Android deep linking

Close #4025

* Template cleanup

* Signing Android builds

* Fix signing options

* Set FLET_APP_DATA and FLET_APP_TEMP dirs for the app

* Pyodide 0.26.2

* serious_python: 0.8.0
2024-10-09 12:18:32 -07:00
Feodor Fitsner 14a925be08 Fix for apps with numpy on macOS
https://github.com/flet-dev/serious-python/issues/85#issuecomment-2065000974
2024-04-18 12:17:32 -07:00
Feodor Fitsner a233de7547 Fix type of `createControlFactories` 2024-02-15 10:59:07 -08:00
Feodor Fitsner c25fa1db79 Fix `createControlFactories` 2024-02-14 18:51:11 -08:00
Feodor Fitsner 6c78ea8471 Move ensureInitialized 2024-02-09 12:53:58 -08:00
Feodor Fitsner 2546c20766 {{ dep }}.ensureInitialized() 2024-02-09 12:47:09 -08:00
Feodor Fitsner 52ebf16507 var createControlFactories 2024-01-23 11:19:11 -08:00
Feodor Fitsner 4fa29e6f5d flutter_dependencies didn't work 2024-01-23 10:59:23 -08:00
Feodor Fitsner aadcfb3baa Back flutter_dependencies 2024-01-23 10:57:49 -08:00
Feodor Fitsner 3d3a54c486 Fix cookiecutter.flutter.dependencies 2024-01-23 10:51:54 -08:00
Feodor Fitsner 438daea208 Add flutter_dependencies 2024-01-23 10:47:34 -08:00
Feodor Fitsner 12716dec8e Fixed "SocketException: Failed to create server socket stdout.sock" 2024-01-18 15:20:40 -08:00
Feodor Fitsner c89dc8844e New main.dart from serious_python 0.7.0 2024-01-15 10:12:32 -08:00
Feodor Fitsner 42206eaa4c Initial check-in 2023-12-27 16:06:54 -08:00