android example polish (#845)

This commit is contained in:
Carter Anderson 2020-11-11 16:31:16 -08:00 committed by GitHub
parent fae628797f
commit c3a37b2d6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View file

@ -333,6 +333,10 @@ name = "android"
path = "examples/android/android.rs" path = "examples/android/android.rs"
[package.metadata.android] [package.metadata.android]
apk_label = "Bevy Example"
assets = "assets"
res = "assets/android-res"
icon = "@mipmap/ic_launcher"
build_targets = ["aarch64-linux-android", "armv7-linux-androideabi"] build_targets = ["aarch64-linux-android", "armv7-linux-androideabi"]
min_sdk_version = 16 min_sdk_version = 16
target_sdk_version = 29 target_sdk_version = 29

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View file

@ -3,7 +3,7 @@ include!("../3d/3d_scene.rs");
#[cfg_attr( #[cfg_attr(
target_os = "android", target_os = "android",
ndk_glue::main(logger(level = "trace", tag = "android"), backtrace = "full") ndk_glue::main(logger(level = "debug", tag = "android"), backtrace = "full")
)] )]
pub fn android_main() { pub fn android_main() {
main(); main();