You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With a custom P4A distro, the APK does not function on target device, produces blank screen.
There is no libpythonbundle.so in APK.
With a verbose build flet build apk -v --template-dir $HOME/example_helloflet/flet-build-template i observed build.sh issues with popd and pushd. . BUT the build is successful and will install and run, just producing a blank screen.
I am using a customized App template cloned from the Cookiecutter flet-build-template and custom P4A distro.
Expected Behavior:
Normal flow - The build process completes successfully without errors.
Exception flow - If an error occurs the Build should terminate with relevant errors.
Actual Behavior:
The build.sh script errors when executing popd and pushd, resulting in a libpythonbundle.so not being copied into the APK
Generate a P4A distro and then export SERIOUS_PYTHON_P4A_DIST=$HOME/.local/share/python-for-android/dists/mydist
install the cookie cutter template git clone https://github.com/flet-dev/flet-build-template example_helloflet/flet-build-template
Initiate the APK build using the flet-build-template
Wait the Running Gradle task 'assembleRelease' and the Copying P4A libraries from /home/xxxx/.local/share/python-for-android/dists/mydist and the execution of the build.sh script. Observe the failure when popd and pushd commands are executed.
With a custom P4A distro, the APK does not function on target device, produces blank screen.
There is no
libpythonbundle.so
in APK.With a verbose build
flet build apk -v --template-dir $HOME/example_helloflet/flet-build-template
i observedbuild.sh
issues withpopd
andpushd
. . BUT the build is successful and will install and run, just producing a blank screen.I am using a customized App template cloned from the Cookiecutter flet-build-template and custom
P4A
distro.Expected Behavior:
Normal flow - The build process completes successfully without errors.
Exception flow - If an error occurs the Build should terminate with relevant errors.
Actual Behavior:
The
build.sh
script errors when executingpopd
andpushd
, resulting in alibpythonbundle.so
not being copied into the APKSuggested fix
I believe all that is needed is to
Additional consideration
Workaround
Alter the template
pubspec.yaml
to work with a local version ofserious-python
using minimum commit of f93ac86(e44dff1)https://github.com/flet-dev/serious-python
into a local folderpubspec.yaml
to use the local dependency replaceserious_python: ^0.7.0
withSteps to Reproduce:
flet create example_helloflet
export SERIOUS_PYTHON_P4A_DIST=$HOME/.local/share/python-for-android/dists/mydist
git clone https://github.com/flet-dev/flet-build-template example_helloflet/flet-build-template
flet-build-template
Running Gradle task 'assembleRelease'
and theCopying P4A libraries from /home/xxxx/.local/share/python-for-android/dists/mydist
and the execution of thebuild.sh
script. Observe the failure whenpopd
andpushd
commands are executed.** Possible related issues **
#82
Environment:
serious-python
The text was updated successfully, but these errors were encountered: