dioxus/examples/mobile_demo/Cargo.toml

55 lines
1.5 KiB
TOML
Raw Normal View History

2023-07-05 18:31:09 +00:00
[package]
2023-07-05 21:35:08 +00:00
name = "mobile-demo"
2023-07-05 18:31:09 +00:00
version = "0.1.0"
authors = ["Jonathan Kelley <jkelleyrtp@gmail.com>"]
edition = "2018"
[lib]
crate-type = ["staticlib", "cdylib", "rlib"]
[[bin]]
2023-07-05 21:35:08 +00:00
name = "mobile-demo-desktop"
2023-07-05 18:31:09 +00:00
path = "gen/bin/desktop.rs"
[package.metadata.cargo-android]
2023-07-05 21:35:08 +00:00
app-activity-name = "com.example.mobile_demo.MainActivity"
2023-07-05 18:31:09 +00:00
app-dependencies = [
"androidx.webkit:webkit:1.6.1",
"androidx.appcompat:appcompat:1.6.1",
"com.google.android.material:material:1.8.0",
]
project-dependencies = ["org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.21"]
app-plugins = ["org.jetbrains.kotlin.android"]
app-permissions = ["android.permission.INTERNET"]
app-theme-parent = "Theme.MaterialComponents.DayNight.DarkActionBar"
vulkan-validation = false
[package.metadata.cargo-android.env-vars]
2023-07-05 21:35:08 +00:00
WRY_ANDROID_PACKAGE = "com.example.mobile_demo"
WRY_ANDROID_LIBRARY = "mobile_demo"
WRY_ANDROID_KOTLIN_FILES_OUT_DIR = "<android-project-dir>/app/src/main/kotlin/com/example/mobile_demo"
2023-07-05 18:31:09 +00:00
[package.metadata.cargo-apple.ios]
frameworks = ["WebKit"]
[dependencies]
anyhow = "1.0.56"
log = "0.4.11"
2024-01-04 23:21:30 +00:00
wry = "0.35.0"
2023-07-05 18:31:09 +00:00
dioxus = { path = "../../packages/dioxus" }
2023-07-05 21:35:08 +00:00
dioxus-desktop = { path = "../../packages/desktop", features = [
2023-07-05 20:44:24 +00:00
"tokio_runtime",
2023-07-05 21:35:08 +00:00
], default-features = false }
2023-07-05 18:31:09 +00:00
[target.'cfg(target_os = "android")'.dependencies]
android_logger = "0.9.0"
jni = "0.19.0"
paste = "1.0"
[target.'cfg(not(target_os = "android"))'.dependencies]
env_logger = "0.9.0"
[target.'cfg(target_os = "ios")'.dependencies]
core-foundation = "0.9.3"