mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
Review on #2345: for Hex, "on this iPhone", "never leaves" and "not sent" are facts people need at that moment, not reassurance. Restored: - Microphone prompt: "...Audio never leaves it and is deleted once it's transcribed." Speech Recognition prompt keeps "Nothing you say is sent to a server." (Info.plist, project.yml, zh-Hans InfoPlist.strings) - Learn how I type and Record typing logs say "on this iPhone" again. - Clean up what I say is back to "Drops ums, repeats and corrected words". - "Allow Speech Recognition. It stays on this iPhone." and "...in Settings. It runs on this iPhone." back to the originals. - On-device put back in the shortest form: Checking on-device speech recognition; the Parakeet memory fallback names Apple's on-device speech recognition; Adaptive touch learns "on this iPhone"; the Shortcut, Control Center and Live Activity descriptions say "on device" / "on-device" (not "iPhone": KeyboardBridgeTests forbids Apple platform names in intent strings). Keyboard strip: Undo dictation, Paste, Paste dictation, Code from Messages (and its VoiceOver hint), Undoes the autocorrection, the Full Access hint (title, Settings path, spoken path, Open Hex, its hint) and the dictation bar's Full Access path were plain strings, so Chinese users saw English. They now go through String(localized:); the keyboard extension already bundles HEXMobile/Localizable.xcstrings, so no wiring was needed. 10 new catalog entries with zh-Hans, using the app's terms (粘贴听写, 完全访问). Verified: the built HEXKeyboard.appex zh-Hans Localizable.strings carries the new keys; zh screenshots show 撤销听写 in the strip and the translated path in the dictation bar; scripts/code-shape.py has no hard problems; xcodebuild test on a fresh iPhone 17 Pro sim: TEST SUCCEEDED.
161 lines
No EOL
5.7 KiB
YAML
161 lines
No EOL
5.7 KiB
YAML
name: HEXMobile
|
|
options:
|
|
minimumXcodeGenVersion: 2.46.0
|
|
bundleIdPrefix: anomaly.hex
|
|
deploymentTarget:
|
|
iOS: "18.0"
|
|
xcodeVersion: "2660"
|
|
packages:
|
|
FluidAudio:
|
|
url: https://github.com/FluidInference/FluidAudio.git
|
|
exactVersion: 0.15.5
|
|
settings:
|
|
base:
|
|
DEVELOPMENT_TEAM: 5NZ4Q7NXJ4
|
|
SWIFT_VERSION: 6.0
|
|
# The compiler finds the interface's strings for the String Catalogs (Localizable.xcstrings).
|
|
SWIFT_EMIT_LOC_STRINGS: YES
|
|
LOCALIZATION_PREFERS_STRING_CATALOGS: YES
|
|
targets:
|
|
HEXMobile:
|
|
type: application
|
|
platform: iOS
|
|
sources:
|
|
- HEXMobile
|
|
- HEXShared
|
|
- HEXActivity
|
|
- path: ../app/AppIcon.icon
|
|
buildPhase: resources
|
|
dependencies:
|
|
- package: FluidAudio
|
|
- target: HEXKeyboard
|
|
embed: true
|
|
- target: HEXWidgets
|
|
embed: true
|
|
info:
|
|
path: HEXMobile/Info.plist
|
|
properties:
|
|
CFBundleDisplayName: Hex
|
|
CFBundleShortVersionString: $(MARKETING_VERSION)
|
|
CFBundleVersion: $(CURRENT_PROJECT_VERSION)
|
|
CADisableMinimumFrameDurationOnPhone: true
|
|
CFBundleURLTypes:
|
|
- CFBundleTypeRole: Editor
|
|
CFBundleURLName: anomaly.hex.mobile.keyboard-session
|
|
CFBundleURLSchemes:
|
|
- hex-dictation
|
|
NSMicrophoneUsageDescription: Hex turns what you say into text on this iPhone. Audio never leaves it and is deleted once it's transcribed.
|
|
NSSpeechRecognitionUsageDescription: Hex uses Apple's on-device speech recognition to turn what you say into text. Nothing you say is sent to a server.
|
|
NSSupportsLiveActivities: true
|
|
ITSAppUsesNonExemptEncryption: false
|
|
UIBackgroundModes:
|
|
- audio
|
|
UILaunchScreen:
|
|
UIColorName: LaunchBackground
|
|
UISupportedInterfaceOrientations:
|
|
- UIInterfaceOrientationPortrait
|
|
- UIInterfaceOrientationLandscapeLeft
|
|
- UIInterfaceOrientationLandscapeRight
|
|
UISupportedInterfaceOrientations~ipad:
|
|
- UIInterfaceOrientationPortrait
|
|
- UIInterfaceOrientationPortraitUpsideDown
|
|
- UIInterfaceOrientationLandscapeLeft
|
|
- UIInterfaceOrientationLandscapeRight
|
|
settings:
|
|
base:
|
|
ASSETCATALOG_COMPILER_ACCENT_COLOR_NAME: AccentColor
|
|
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
|
|
CODE_SIGN_STYLE: Automatic
|
|
CODE_SIGN_ENTITLEMENTS: HEXMobile/HEXMobile.entitlements
|
|
CURRENT_PROJECT_VERSION: 1
|
|
GENERATE_INFOPLIST_FILE: NO
|
|
MARKETING_VERSION: 9.0.0
|
|
TARGETED_DEVICE_FAMILY: "1"
|
|
OTHER_LDFLAGS: $(inherited) -weak_framework FoundationModels
|
|
OTHER_SWIFT_FLAGS: $(inherited) -Xfrontend -disable-autolink-framework -Xfrontend FoundationModels
|
|
PRODUCT_BUNDLE_IDENTIFIER: anomaly.hex.mobile
|
|
PRODUCT_NAME: HEX
|
|
scheme:
|
|
gatherCoverageData: false
|
|
testTargets:
|
|
- HEXMobileTests
|
|
HEXKeyboard:
|
|
type: app-extension
|
|
platform: iOS
|
|
sources:
|
|
- HEXKeyboard
|
|
- HEXShared
|
|
# The app's String Catalog, so the keyboard's words (the Hex key menu first) follow
|
|
# the iPhone's language where Hex is translated.
|
|
- HEXMobile/Localizable.xcstrings
|
|
info:
|
|
path: HEXKeyboard/Info.plist
|
|
properties:
|
|
CFBundleDisplayName: Hex Keyboard
|
|
NSMicrophoneUsageDescription: Hex turns what you say into text on this iPhone. Audio never leaves it and is deleted once it's transcribed.
|
|
NSSpeechRecognitionUsageDescription: Hex uses Apple's on-device speech recognition to turn what you say into text. Nothing you say is sent to a server.
|
|
CFBundleShortVersionString: $(MARKETING_VERSION)
|
|
CFBundleVersion: $(CURRENT_PROJECT_VERSION)
|
|
NSExtension:
|
|
NSExtensionAttributes:
|
|
IsASCIICapable: true
|
|
PrefersRightToLeft: false
|
|
PrimaryLanguage: en-US
|
|
RequestsOpenAccess: true
|
|
NSExtensionPointIdentifier: com.apple.keyboard-service
|
|
NSExtensionPrincipalClass: $(PRODUCT_MODULE_NAME).KeyboardViewController
|
|
settings:
|
|
base:
|
|
APPLICATION_EXTENSION_API_ONLY: YES
|
|
CODE_SIGN_ENTITLEMENTS: HEXKeyboard/HEXKeyboard.entitlements
|
|
COREML_CODEGEN_LANGUAGE: None
|
|
CODE_SIGN_STYLE: Automatic
|
|
CURRENT_PROJECT_VERSION: 1
|
|
GENERATE_INFOPLIST_FILE: NO
|
|
MARKETING_VERSION: 9.0.0
|
|
TARGETED_DEVICE_FAMILY: "1"
|
|
PRODUCT_BUNDLE_IDENTIFIER: anomaly.hex.mobile.keyboard
|
|
PRODUCT_NAME: HEXKeyboard
|
|
SKIP_INSTALL: YES
|
|
HEXWidgets:
|
|
type: app-extension
|
|
platform: iOS
|
|
sources:
|
|
- HEXWidgets
|
|
- HEXActivity
|
|
- HEXShared/HexTheme.swift
|
|
info:
|
|
path: HEXWidgets/Info.plist
|
|
properties:
|
|
CFBundleDisplayName: Hex
|
|
CFBundleShortVersionString: $(MARKETING_VERSION)
|
|
CFBundleVersion: $(CURRENT_PROJECT_VERSION)
|
|
NSExtension:
|
|
NSExtensionPointIdentifier: com.apple.widgetkit-extension
|
|
settings:
|
|
base:
|
|
APPLICATION_EXTENSION_API_ONLY: YES
|
|
CODE_SIGN_STYLE: Automatic
|
|
CURRENT_PROJECT_VERSION: 1
|
|
GENERATE_INFOPLIST_FILE: NO
|
|
MARKETING_VERSION: 9.0.0
|
|
TARGETED_DEVICE_FAMILY: "1"
|
|
PRODUCT_BUNDLE_IDENTIFIER: anomaly.hex.mobile.widgets
|
|
PRODUCT_NAME: HEXWidgets
|
|
SKIP_INSTALL: YES
|
|
HEXMobileTests:
|
|
type: bundle.unit-test
|
|
platform: iOS
|
|
sources:
|
|
- HEXMobileTests
|
|
- path: ../tests/fixtures/vocabulary/audio/term-hex-1.wav
|
|
buildPhase: resources
|
|
dependencies:
|
|
- target: HEXMobile
|
|
settings:
|
|
base:
|
|
BUNDLE_LOADER: $(TEST_HOST)
|
|
CODE_SIGN_STYLE: Automatic
|
|
GENERATE_INFOPLIST_FILE: YES
|
|
PRODUCT_BUNDLE_IDENTIFIER: anomaly.hex.mobile.tests
|
|
TEST_HOST: $(BUILT_PRODUCTS_DIR)/HEX.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/HEX |