Skip to content

Commit

Permalink
android example polish (bevyengine#845)
Browse files Browse the repository at this point in the history
  • Loading branch information
cart authored Nov 12, 2020
1 parent fae6287 commit c3a37b2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,10 @@ name = "android"
path = "examples/android/android.rs"

[package.metadata.android]
build_targets = ["aarch64-linux-android", "armv7-linux-androideabi"]
apk_label = "Bevy Example"
assets = "assets"
res = "assets/android-res"
icon = "@mipmap/ic_launcher"
build_targets = ["aarch64-linux-android", "armv7-linux-androideabi"]
min_sdk_version = 16
target_sdk_version = 29
Binary file added assets/android-res/mipmap-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion examples/android/android.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ include!("../3d/3d_scene.rs");

#[cfg_attr(
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() {
main();
Expand Down

0 comments on commit c3a37b2

Please sign in to comment.