feat(ios): add native settings and storage controls

This commit is contained in:
chick
2026-09-09 02:06:34 +08:00
parent 9c3186252b
commit c568e496b2
8 changed files with 423 additions and 1 deletions
@@ -62,6 +62,14 @@ public struct FileLogStore: LogStore {
}
}
public func clearRuntimeLogs() async throws -> Int {
try await run { store in
let removed = store.runtime.count
store.runtime = []
return removed
}
}
private func run<T: Sendable>(
_ transform: @escaping @Sendable (inout Store) throws -> T
) async throws -> T {