mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
| Filename | Latest commit message | Latest commit date |
|---|---|---|
* iOS keyboard: report Full Access, on or off, on every load and appearance
A tester on build 56 (iPhone 13 Pro, iOS 27.2.1) gave the Hex keyboard Full
Access "multiple times" and setup still said Not confirmed yet. Only a keyboard
can read Full Access, and the app learned it from keyboard.fullAccessSeenAt,
which the keyboard wrote from syncFromBridge after updating its traits,
settings and typing log, and only with Full Access (or, in the simulator, a
live Hex session). Nothing was ever written without it, so an "on" never went
away after Full Access was turned off, and the app could not tell off from
not checked.
What changed
- KeyboardFullAccessReport (on or off, when, and when the keyboard process
started) in the App Group: keyboard.fullAccessOn and keyboard.fullAccessOff.
An on also sets keyboard.fullAccessSeenAt, which earlier builds and
Adaptive touch read; a seenAt from an earlier keyboard reads as an on from
the oldest process.
- The keyboard reports first thing in viewDidLoad and viewWillAppear, before
any view work or field read (no documentIdentifier), then every 5 s while
shown from the poll. It uses hasFullAccess itself: the simulator's live
session stand-in no longer marks Full Access on.
- Each report posts the Darwin notification
anomaly.hex.mobile.keyboard.fullAccess; the app can forward it to
NotificationCenter (KeyboardBridge.forwardFullAccessReports).
- KeyboardFullAccess.resolve: an off counts over an on only when newer and
from the same or a later keyboard process (a process started before a
grant can still say off), and is shown as off only if written since Hex
last came to the foreground (Full Access changes only in Settings, so an
older off may predate a grant). Otherwise on, else unconfirmed.
Verified: KeyboardBridgeTests cover the reports' storage, the legacy key and
the resolution cases; on anomastudio (iPhone 13 Pro simulator, iOS 27.2,
Release, ad-hoc signed with the App Group) the keyboard wrote an off from
Hex's own field and from Contacts without Full Access and an on with it.
* iOS setup: read the keyboard's Full Access reports and say what to do
The tester's sheet said Full Access "Not confirmed yet" with nothing tying it
to the field below, so the fix looked like Settings again. In the simulator
the grant kills Hex and its keyboard: back in Hex the sheet stays unconfirmed
until the Hex keyboard runs once, and the only hint was a faint placeholder in
an unfocused field. After Full Access was turned off the sheet kept saying On.
What changed
- KeyboardSetupMonitor.fullAccess (on, off, unconfirmed) from the keyboard's
reports (KeyboardFullAccess.resolve), with when Hex last came to the
foreground (willEnterForeground, or launch). fullAccessOn stays for
onboarding and the step count. It refreshes on the keyboard's Darwin
notification as well as the 1 s poll, so the row flips while the sheet is
open.
- Full Access row: "Not confirmed yet" with "Switch to Hex below to confirm."
under it; "Off" with "Turn on Allow Full Access in Settings." once a keyboard
said so since Hex came back.
- While unconfirmed the field takes focus as the sheet opens or Hex comes
back, so the keyboard comes up: Hex, if it was last, confirms at once;
another keyboard shows "Switch to Hex with (globe)" (was "Tap here, then...",
kept while unfocused), in the muted ink instead of the faint one, with a
border while focused.
- zh-Hans strings for the three new lines; README's Setup paragraph.
Verified on anomastudio (iPhone 13 Pro simulator, iOS 27.2, Release, ad-hoc
signed with the App Group), before (
|
||
| .. | ||
| Assets.xcassets | ||
| zh-Hans.lproj | ||
| AcknowledgementsView.swift | ||
| AppleSpeechTranscriber.swift | ||
| AppShortcuts.xcstrings | ||
| AudioBackend.swift | ||
| ContentView.swift | ||
| CustomVocabularyEditor.swift | ||
| DictationController+LaunchFixtures.swift | ||
| DictationController.swift | ||
| EmojiSemanticIndex.swift | ||
| FullKeyboardSnapshotStage.swift | ||
| HexIntents.swift | ||
| HexLinks.swift | ||
| HEXMobile.entitlements | ||
| HEXMobileApp.swift | ||
| Info.plist | ||
| KeyboardPreviewHost.swift | ||
| KeyboardSetup.swift | ||
| KeyboardSpeechPreparation.swift | ||
| LanguageSettingsRows.swift | ||
| LiveActivityCoordinator.swift | ||
| Localizable.xcstrings | ||
| Onboarding.swift | ||
| OnboardingPieces.swift | ||
| OnboardingProgress.swift | ||
| ParakeetTranscriber.swift | ||
| PrivacyInfo.xcprivacy | ||
| SettingsComponents.swift | ||
| SettingsPages.swift | ||
| TranscriptCleanup.swift | ||
| TranslateDictationRow.swift | ||
| TypingInsightsView.swift | ||
| TypingLogsView.swift | ||