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.
This commit is contained in:
parent
ba9e4ac3dc
commit
68f3727168
|
|
@ -193,7 +193,7 @@ Future prepareApp() async {
|
||||||
environmentVariables["FLET_SERVER_PORT"] = tcpPort.toString();
|
environmentVariables["FLET_SERVER_PORT"] = tcpPort.toString();
|
||||||
} else {
|
} else {
|
||||||
// use UDS on other platforms
|
// use UDS on other platforms
|
||||||
pageUrl = "flet_$pid.sock";
|
pageUrl = path.join(appTempPath, "flet_$pid.sock");
|
||||||
environmentVariables["FLET_SERVER_UDS_PATH"] = pageUrl;
|
environmentVariables["FLET_SERVER_UDS_PATH"] = pageUrl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -222,7 +222,7 @@ Future<String?> runPythonApp(List<String> args) async {
|
||||||
'Python output TCP Server is listening on port ${outSocketServer.port}');
|
'Python output TCP Server is listening on port ${outSocketServer.port}');
|
||||||
socketAddr = "$tcpAddr:${outSocketServer.port}";
|
socketAddr = "$tcpAddr:${outSocketServer.port}";
|
||||||
} else {
|
} else {
|
||||||
socketAddr = "stdout_$pid.sock";
|
socketAddr = path.join(environmentVariables["FLET_APP_STORAGE_TEMP"]!, "stdout_$pid.sock");
|
||||||
if (await File(socketAddr).exists()) {
|
if (await File(socketAddr).exists()) {
|
||||||
await File(socketAddr).delete();
|
await File(socketAddr).delete();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ dependency_overrides:
|
||||||
serious_python:
|
serious_python:
|
||||||
git:
|
git:
|
||||||
url: https://github.com/flet-dev/serious-python.git
|
url: https://github.com/flet-dev/serious-python.git
|
||||||
ref: android-crash-fix
|
ref: android10-fix
|
||||||
path: src/serious_python
|
path: src/serious_python
|
||||||
|
|
||||||
package_info_plus: ^9.0.0
|
package_info_plus: ^9.0.0
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue