Files
schihei a3e544fbe4 feat(panel): close with Esc without a click and render Markdown
Esc: make the panel key when shown (closeWithEscape, default on) without activating the app; the source app stays frontmost and Replace still targets it. Handle Esc with SwiftUI's exit command, which also works from the popover and after clicking controls. Add TranslationPanel.canBecomeKey and amend ADR-009.\n\nMarkdown: add MarkdownPresentation in SprachmittlerText (Foundation inline parser plus a conservative block parser for headings, lists, quotes, fenced code and rules), a SwiftUI MarkdownTranslationView, and a renderMarkdown setting (default on). JSON, HTML and code sources are never rendered; only http/https links open; images become alt text; Copy and Replace keep the raw Markdown (ADR-021).\n\nVerified: make verify green; synthetic Esc closes the panel and closes an open language popover first; a live Markdown translation rendered heading, bold/italic, inline code, list, quote, code block and link; Copy returned the raw Markdown; Replace still changed the TextEdit selection with the panel key.
2026-11-26 15:26:30 +01:00

74 lines
2.3 KiB
YAML

# XcodeGen spec (ADR-006). Generate with `make generate`. Sprachmittler.xcodeproj is git-ignored — never edit it.
name: Sprachmittler
options:
bundleIdPrefix: de.schihei # placeholder — change to your own reverse-DNS prefix
deploymentTarget:
macOS: "14.0"
createIntermediateGroups: true
developmentLanguage: en
settings:
base:
SWIFT_VERSION: "6.0"
SWIFT_STRICT_CONCURRENCY: complete
ARCHS: arm64
ONLY_ACTIVE_ARCH: YES
MACOSX_DEPLOYMENT_TARGET: "14.0"
ENABLE_HARDENED_RUNTIME: YES
MARKETING_VERSION: "0.1.0"
CURRENT_PROJECT_VERSION: "1"
configs:
Release:
SWIFT_TREAT_WARNINGS_AS_ERRORS: YES
GCC_TREAT_WARNINGS_AS_ERRORS: YES
# Debug keeps Xcode's injected get-task-allow for the debugger; Release carries only the
# explicit app-sandbox=false entitlement (SECURITY_PRIVACY, T0.2).
CODE_SIGN_INJECT_BASE_ENTITLEMENTS: NO
packages:
SprachmittlerKit:
path: Packages/SprachmittlerKit
targets:
Sprachmittler:
type: application
platform: macOS
sources:
- path: App
excludes:
- "**/README.md"
- "Info.plist"
- "Sprachmittler.entitlements"
# Do NOT use XcodeGen's `info:` / `entitlements:` keys: they regenerate (overwrite) the files.
# The hand-maintained files are referenced via INFOPLIST_FILE / CODE_SIGN_ENTITLEMENTS below.
settings:
base:
PRODUCT_NAME: Sprachmittler
PRODUCT_BUNDLE_IDENTIFIER: de.schihei.sprachmittler # placeholder
GENERATE_INFOPLIST_FILE: NO
INFOPLIST_FILE: App/Info.plist
CODE_SIGN_ENTITLEMENTS: App/Sprachmittler.entitlements
CODE_SIGN_STYLE: Automatic
CODE_SIGN_IDENTITY: "-" # "Sign to Run Locally" for development
ENABLE_APP_SANDBOX: NO # ADR-003: Accessibility insertion needs it off
COMBINE_HIDPI_IMAGES: YES
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
dependencies:
- package: SprachmittlerKit
product: SprachmittlerCore
- package: SprachmittlerKit
product: SprachmittlerCapture
- package: SprachmittlerKit
product: SprachmittlerText
schemes:
Sprachmittler:
build:
targets:
Sprachmittler: all
run:
config: Debug
archive:
config: Release