bf844caa7f
Mirror the personal dictionary through iCloud Key-Value Store with deterministic merge rules, main-app-only sync UI, and App Group as the keyboard runtime cache. Add cloud-engine ASR with dictionary bias and expand the bundled custom language model lexicon.
16 lines
405 B
Swift
16 lines
405 B
Swift
// UbiquitousKeyValueStoreing.swift
|
|
// OSGKeyboard · Shared
|
|
//
|
|
// Test seam around `NSUbiquitousKeyValueStore`.
|
|
|
|
import Foundation
|
|
|
|
public protocol UbiquitousKeyValueStoreing: AnyObject {
|
|
func data(forKey key: String) -> Data?
|
|
func set(_ value: Data?, forKey key: String)
|
|
@discardableResult
|
|
func synchronize() -> Bool
|
|
}
|
|
|
|
extension NSUbiquitousKeyValueStore: UbiquitousKeyValueStoreing {}
|