-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from NiklasEi/android_support
Android support
- Loading branch information
Showing
9 changed files
with
400 additions
and
265 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,9 @@ authors = ["Niklas Eicker <[email protected]>"] # ToDo: you are the author ;) | |
edition = "2021" | ||
exclude = ["dist", "build", "assets", "credits"] | ||
|
||
[workspace] | ||
members = ["mobile"] | ||
|
||
[profile.dev.package."*"] | ||
opt-level = 3 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,16 +2,16 @@ | |
|
||
rm -rf AppIcon.iconset/* | ||
mkdir -p AppIcon.iconset | ||
sips -z 16 16 icon_1024x1024.png --out AppIcon.iconset/icon_16x16.png | ||
sips -z 32 32 icon_1024x1024.png --out AppIcon.iconset/[email protected] | ||
sips -z 32 32 icon_1024x1024.png --out AppIcon.iconset/icon_32x32.png | ||
sips -z 64 64 icon_1024x1024.png --out AppIcon.iconset/[email protected] | ||
sips -z 128 128 icon_1024x1024.png --out AppIcon.iconset/icon_128x128.png | ||
sips -z 256 256 icon_1024x1024.png --out AppIcon.iconset/[email protected] | ||
sips -z 256 256 icon_1024x1024.png --out AppIcon.iconset/icon_256x256.png | ||
sips -z 512 512 icon_1024x1024.png --out AppIcon.iconset/[email protected] | ||
sips -z 512 512 icon_1024x1024.png --out AppIcon.iconset/icon_512x512.png | ||
cp icon_1024x1024.png AppIcon.iconset/[email protected] | ||
sips -z 16 16 ../icon_1024x1024.png --out AppIcon.iconset/icon_16x16.png | ||
sips -z 32 32 ../icon_1024x1024.png --out AppIcon.iconset/[email protected] | ||
sips -z 32 32 ../icon_1024x1024.png --out AppIcon.iconset/icon_32x32.png | ||
sips -z 64 64 ../icon_1024x1024.png --out AppIcon.iconset/[email protected] | ||
sips -z 128 128 ../icon_1024x1024.png --out AppIcon.iconset/icon_128x128.png | ||
sips -z 256 256 ../icon_1024x1024.png --out AppIcon.iconset/[email protected] | ||
sips -z 256 256 ../icon_1024x1024.png --out AppIcon.iconset/icon_256x256.png | ||
sips -z 512 512 ../icon_1024x1024.png --out AppIcon.iconset/[email protected] | ||
sips -z 512 512 ../icon_1024x1024.png --out AppIcon.iconset/icon_512x512.png | ||
cp ../icon_1024x1024.png AppIcon.iconset/[email protected] | ||
iconutil -c icns AppIcon.iconset | ||
mkdir -p src/Game.app/Contents/Resources | ||
mv AppIcon.icns src/Game.app/Contents/Resources/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[package] | ||
name = "mobile" | ||
version = "0.1.0" | ||
edition = "2021" | ||
publish = false | ||
|
||
[lib] | ||
name = "mobile" | ||
crate-type = ["staticlib", "cdylib"] | ||
|
||
[dependencies] | ||
bevy_game = { path = ".." } # ToDo | ||
bevy = { version = "0.11", default-features = false } | ||
|
||
# As long as Kira doesn't expose a feature for this, we need to enable it our self | ||
# See https://github.com/tesselode/kira/pull/51 | ||
[target."cfg(target_os = \"android\")".dependencies.cpal] | ||
version = "0.15" | ||
features = ["oboe-shared-stdcxx"] | ||
|
||
[package.metadata.android] | ||
package = "me.nikl.bevygame" # ToDo | ||
apk_name = "bevygame" # ToDo | ||
assets = "../assets" | ||
strip = "strip" | ||
resources = "../assets/res" | ||
build_targets = ["aarch64-linux-android"] | ||
|
||
[package.metadata.android.sdk] | ||
target_sdk_version = 31 | ||
|
||
[package.metadata.android.application] | ||
icon = "@mipmap/icon" | ||
label = "Bevy Game" # ToDo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
use bevy::prelude::*; | ||
use bevy_game::GamePlugin; | ||
|
||
#[bevy_main] | ||
fn main() { | ||
App::new().add_plugins((DefaultPlugins, GamePlugin)).run() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters