flet-dev / flet

Flet enables developers to easily build realtime web, mobile and desktop apps in Python. No frontend experience required.
https://flet.dev
Apache License 2.0
11.5k stars 449 forks source link

Not able to use P4A jniLibs #4195

Closed gunaNeelamegam closed 1 month ago

gunaNeelamegam commented 1 month ago

Duplicate Check

Describe the bug

Im using 0.25.0.dev3526 not able to use the P4A jniLibs, before its works fine

Code sample

Code ```python [Paste your code here] ```

To reproduce

while running flet build apk

Expected behavior

No response

Screenshots / Videos

Captures [Upload media here]

Operating System

Linux

Operating system details

linux

Flet version

0.25.0.dev3526

Regression

Yes, it used to work in a previous Flet version (please specify the version in additional details)

Suggestions

No response

Logs

Logs ```console [Paste your logs here] ```

Additional details

No response

kacper-the-programmer commented 1 month ago

new flet build DOES NOT depend on Kivy's P4A anymore, so you can't use PyJNIus since new flet build is based on Beeware's toolchain you can probably call Java/Kotlin functions directly from Python, see here

FeodorFitsner commented 1 month ago

Correct, it doesn't depend on p4a anymore, but it's not exactly using Beeware's toolchain as well. Python for mobile is now a part of Python 3.13 and backported to 3.12 and below. However, as Beeware and Flet are following the same packaging "standard" their pre-built binary packages should be interchangeable, theoretically.

Is there a separate lib for calling Java/Kotlin functions from Python?