mirror of
https://github.com/MarkusZoppelt/stahl.git
synced 2026-11-27 06:43:49 +01:00
The shell answers the app's questions with UIKit's document picker, keeps security-scoped access to what was picked, and bookmarks it, so the portfolio last opened reopens on the next launch. Before Stahl reads a pick, it asks iCloud Drive to download everything under it and waits a little. Stahl's own folder shows in Files and in Finder's iPhone pane. The app now opens your portfolio with live prices; STAHL_IOS_DEMO=1 opens the demo. Config and a single file's history go to the app's Library rather than ~/.config and ~/.local/share, while a workspace keeps its own history, as on the Mac. When iOS moves the app's container, a portfolio kept inside it follows. The input script can answer the picker with `pick <path>`.
22 lines
571 B
TOML
22 lines
571 B
TOML
[package]
|
|
name = "stahl-ios"
|
|
version = "0.0.0"
|
|
description = "Stahl Capital on iOS: the app's runtime on a CAMetalLayer, for the Swift shell"
|
|
edition = "2024"
|
|
publish = false
|
|
|
|
[lib]
|
|
crate-type = ["staticlib"]
|
|
|
|
[dependencies]
|
|
portfolio_rs = "0.10.1"
|
|
rune = { git = "https://github.com/anomalyco/rune", rev = "bca47138e9c31a7870a79272ee2523b592b1248d" }
|
|
stahl = { path = "../.." }
|
|
tokio = { version = "1", features = ["rt-multi-thread"] }
|
|
|
|
# Its own workspace, so the desktop build and its lockfile don't see it.
|
|
[workspace]
|
|
|
|
[profile.release]
|
|
lto = true
|
|
codegen-units = 1
|