mirror of
https://github.com/hulthe/inkopslista.git
synced 2026-08-03 23:11:28 +02:00
Make it build for Android
This commit is contained in:
+28
-1
@@ -19,14 +19,41 @@ anyhow = "1.0.100"
|
||||
tokio = { version = "1.48.0", default-features = false, features = ["fs", "rt-multi-thread"] }
|
||||
xdg = "3.0.0"
|
||||
|
||||
[target.'cfg(target_os = "android")'.dependencies]
|
||||
tokio = { version = "1.48.0", default-features = false, features = ["rt-multi-thread"] }
|
||||
|
||||
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
||||
wasm-bindgen = "0.2.106"
|
||||
wasm-bindgen-futures = "0.4.56"
|
||||
web-sys = "0.3.83"
|
||||
|
||||
[dependencies.slint]
|
||||
version = "1.14.1"
|
||||
default-features = false
|
||||
features = ["live-preview", "backend-winit-wayland", "renderer-femtovg", "compat-1-2"]
|
||||
features = [
|
||||
"live-preview",
|
||||
"backend-winit-wayland",
|
||||
"renderer-femtovg",
|
||||
"compat-1-2",
|
||||
"backend-android-activity-06",
|
||||
]
|
||||
|
||||
[build-dependencies]
|
||||
slint-build = "1.14.1"
|
||||
|
||||
# See https://github.com/rust-mobile/cargo-apk?tab=readme-ov-file#manifest
|
||||
[package.metadata.android]
|
||||
package = "sh.nubo.Inkopslista"
|
||||
resources = "./android/resources"
|
||||
|
||||
[package.metadata.android.signing.dev]
|
||||
path = "android/keystore/default.keystore"
|
||||
keystore_password = "123456"
|
||||
|
||||
[package.metadata.android.signing.release]
|
||||
path = "android/keystore/default.keystore"
|
||||
keystore_password = "123456"
|
||||
|
||||
[package.metadata.android.application]
|
||||
label = "Inköpslista"
|
||||
icon = "@drawable/icon"
|
||||
|
||||
Reference in New Issue
Block a user