feat(ios): add native settings and storage controls
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user