bevy/examples/mobile
Niklas Eicker b61397e32b
Reduce android example APK size (#8932)
# Objective

The current mobile example produces an APK of 1.5 Gb.
- Running the example on a real device takes significant time (around
one minute just to copy the file over USB to my phone).
- Default virtual devices in Android studio run out of space after the
first install. This can of course be solved/configured, but it causes
unnecessary friction.
- One impression could be, that Bevy produces bloated APKs. 1.5Gb is
even double the size of debug builds for desktop examples.

## Solution

- Strip the debug symbols of the shared libraries before they are copied
to the APK

APK size after this change: 200Mb
Copy time on my machine: ~8s

## Considered alternative

APKs built in release mode are only 50Mb in size, but require setting up
signing for the profile and compile longer.
2023-07-05 23:21:33 +00:00
..
bevy_mobile_example.xcodeproj daily job running mobile example on real devices (#8216) 2023-03-28 23:16:07 +00:00
ios-src IOS, Android... same thing (#7493) 2023-02-06 18:08:49 +00:00
src Rename Interaction::Clicked -> Interaction::Pressed (#8989) (#9027) 2023-07-05 09:25:31 +00:00
.gitignore IOS, Android... same thing (#7493) 2023-02-06 18:08:49 +00:00
build_rust_deps.sh IOS, Android... same thing (#7493) 2023-02-06 18:08:49 +00:00
Cargo.toml Reduce android example APK size (#8932) 2023-07-05 23:21:33 +00:00
Makefile daily job running mobile example on real devices (#8216) 2023-03-28 23:16:07 +00:00