diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5b7e336..f3847d7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,6 +16,9 @@ jobs: run: swift build - name: Test run: swift test + - name: Build HushtypeCore for iOS + # The iPhone and iPad keyboard depends on HushtypeCore; keep it building there. + run: xcodebuild build -scheme HushtypeCore -destination 'generic/platform=iOS' -skipPackagePluginValidation CODE_SIGNING_ALLOWED=NO - name: Package app bundle run: scripts/build-app.sh release - name: Zip app diff --git a/Package.swift b/Package.swift index ee41b14..6aa2787 100644 --- a/Package.swift +++ b/Package.swift @@ -3,8 +3,9 @@ import PackageDescription let package = Package( name: "Hushtype", - // SpeechAnalyzer, the on-device transcriber, ships with macOS 26. - platforms: [.macOS(.v26)], + // SpeechAnalyzer, the on-device transcriber, ships with macOS 26 and iOS 26. HushtypeCore is + // shared with the iPhone and iPad keyboard (chiranjeebhub/hushtype-keyboard). + platforms: [.macOS(.v26), .iOS(.v26)], products: [ .executable(name: "Hushtype", targets: ["Hushtype"]), .library(name: "HushtypeCore", targets: ["HushtypeCore"]), diff --git a/Sources/HushtypeCore/AppleSpeechModel.swift b/Sources/HushtypeCore/AppleSpeechModel.swift index 2dfa83f..665c7cc 100644 --- a/Sources/HushtypeCore/AppleSpeechModel.swift +++ b/Sources/HushtypeCore/AppleSpeechModel.swift @@ -13,7 +13,7 @@ public struct TranscriptionOptions: Equatable, Sendable { } } -/// The on-device speech model macOS downloads once per language. +/// The on-device speech model the system downloads once per language. public enum AppleSpeechModel { public enum Status: Equatable, Sendable { case unsupported