buildozer mobile application size and compilation

50 views
Skip to first unread message

Tomek CEDRO

unread,
Aug 1, 2022, 1:50:27 PM8/1/22
to kivy-...@googlegroups.com
Hello world :-)

I am running away from unmaintainable ReactNative/JS (yuck) into Kivy.
Thank you for working cross platform Python framework (also) for
mobiles!!! :-)

I did the simple Hello World application and made it run on Android and iOS.

However the exported application weights 25MB in size!

Is there any way to squash the released application size? If so where
can I read more than in the docs?

Buildozer does lots of compiling. Is my application Python code
cythoned into a binary too? That would reduce size and prevent
decompiling :-)

What is the possible minimal size of a mobile binary generated by Kivy?

Any hints welcome :-)
Tomek

--
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info

Robert

unread,
Aug 1, 2022, 4:20:30 PM8/1/22
to Kivy users support
The default build contains two architectures, the app install will only use one.
Release builds are smaller than debug builds.

But builds are always going to be large because of the overhead of including Python.

Tomek CEDRO

unread,
Aug 1, 2022, 5:17:08 PM8/1/22
to kivy-...@googlegroups.com
On Mon, Aug 1, 2022 at 10:20 PM Robert wrote:
> The default build contains two architectures, the app install will only use one.
> Release builds are smaller than debug builds.
>
> But builds are always going to be large because of the overhead of including Python.

Thanks Robert :-)

I was wondering if there are any feature-size benchmarks available? :-)

Also if the release build could be compiled into a binary :-)

Do you know if release application contains python application code
plus python interpreter (tar bundle) or it is all compiled into a
binary (library) to speed things up and make them smaller?

Robert

unread,
Aug 1, 2022, 7:49:11 PM8/1/22
to Kivy users support
Size is the sum of whatever is added . 😉

Some of it is binary, some text.

A release application contains python application code plus python interpreter AND some of it is all compiled into a
binary (library)

Easiest answer to your queries is unpack an apk:
https://github.com/kivy/python-for-android/blob/develop/doc/source/troubleshooting.rst#unpacking-an-apk

Tomek CEDRO

unread,
Aug 1, 2022, 10:58:01 PM8/1/22
to kivy-...@googlegroups.com
On Tue, Aug 2, 2022 at 1:49 AM Robert wrote:
>
> Size is the sum of whatever is added . 😉
>
> Some of it is binary, some text.
>
> A release application contains python application code plus python interpreter AND some of it is all compiled into a
> binary (library)
>
> Easiest answer to your queries is unpack an apk:
> https://github.com/kivy/python-for-android/blob/develop/doc/source/troubleshooting.rst#unpacking-an-apk

TANK U SIR =)
Reply all
Reply to author
Forward
0 new messages