bleak icon indicating copy to clipboard operation
bleak copied to clipboard

Support Android with Flet

Open gunaNeelamegam opened this issue 1 year ago • 4 comments

Cannot able to you bleak with flet.

  • While import based platform in bleak/__init__.py condition env is not exists.

  • While build with flet the env is not exist. Need's to remove make as generic.

gunaNeelamegam avatar Sep 28 '24 06:09 gunaNeelamegam

I didn't see anything in Flet that allows calling android APIs, so this doesn't seem like it would be feasible at this point in time.

dlech avatar Oct 05 '24 19:10 dlech

But, they referred we can able to compile and include the .so file. I tried with different approach I think we need to dynamically load the custom java class right now in the blesk it's static for using the custom java classes.

https://flet.dev/docs/publish/android/

On Sat, 5 Oct, 2024, 11:50 pm David Lechner, @.***> wrote:

I didn't see anything in Flet that allows calling android APIs, so this doesn't seem like it would be feasible at this point in time.

— Reply to this email directly, view it on GitHub https://github.com/hbldh/bleak/issues/1643#issuecomment-2395171731, or unsubscribe https://github.com/notifications/unsubscribe-auth/AY5UXUGZD4NZHV74E4UDTNDZ2A7JBAVCNFSM6AAAAABPALPXZWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJVGE3TCNZTGE . You are receiving this because you authored the thread.Message ID: @.***>

gunaNeelamegam avatar Oct 06 '24 05:10 gunaNeelamegam

Ok, so Flet is using Python4Android. So it seems like it should just work then.

condition env is not exists.

Are you saying that the P4A_BOOTSTRAP environment variable is not set?

dlech avatar Oct 06 '24 14:10 dlech

Not only that we need use the java custom classes based on project package right now it's static.

On Sun, 6 Oct, 2024, 6:46 pm David Lechner, @.***> wrote:

Ok, so Flet is using Python4Android. So it seems like it should just work then.

condition env is not exists.

Are you saying that the P4A_BOOTSTRAP environment variable is not set?

— Reply to this email directly, view it on GitHub https://github.com/hbldh/bleak/issues/1643#issuecomment-2395466133, or unsubscribe https://github.com/notifications/unsubscribe-auth/AY5UXUA63AJ7YVCOLE4S2RLZ2FEMNAVCNFSM6AAAAABPALPXZWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJVGQ3DMMJTGM . You are receiving this because you authored the thread.Message ID: @.***>

gunaNeelamegam avatar Oct 06 '24 19:10 gunaNeelamegam