Skip to content

Commit

Permalink
move android related code to separate folder
Browse files Browse the repository at this point in the history
  • Loading branch information
snail-with-tea committed Jan 15, 2025
1 parent 636f915 commit 4d53d69
Show file tree
Hide file tree
Showing 8 changed files with 3,940 additions and 71 deletions.
59 changes: 24 additions & 35 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 1 addition & 12 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,9 @@ env_logger = "0.11"
wasm-bindgen-futures = "0.4"
web-sys = "0.3.70" # to access the DOM (to hide the loading text)

[target.'cfg(target_os = "android")'.lib]
crate-type=["lib", "cdylib"]

# android:
[target.'cfg(target_os = "android")'.dependencies]
android_logger = { version = "0.14", default-features = false}
egui-winit = { version = "0.30", default-features = false, features = ["clipboard","links"]}
eframe = { version = "0.30", default-features = false, features = [
"accesskit", # Make egui compatible with screen readers. NOTE: adds a lot of dependencies.
"default_fonts", # Embed the default egui fonts.
"glow", # Use the glow rendering backend. Alternative: "wgpu".
"persistence", # Enable restoring app state when restarting the app.
"android-native-activity",
] }


[profile.release]
opt-level = 2 # fast and small wasm
Expand Down
Loading

0 comments on commit 4d53d69

Please sign in to comment.