η-0: De-Hybrid — WKWebView raus, native Tabs mit Platzhaltern
Lift von Hybrid (WKWebView für Lesen/Erkunden) auf fully-native ist beschlossen. Diese Phase entfernt die WebShell-Infrastruktur; das volle native Read-Surface folgt in η-2..η-5 nach docs/NATIVE_LIFT_PLAN.md. - ManaWebShell-Dep raus aus project.yml - Sources/Core/WebShell/CookieBridge.swift gelöscht - RootView auf vier native Tabs (Lesen + Erkunden = Platzhalter, Submit + Konto unverändert nativ) - DocComments in DeepLinkRouter / AppConfig / Account / Settings von WebView-Verweisen befreit - CLAUDE.md Invarianten von Hybrid auf η umgestellt (13 Invarianten, pure SwiftUI + Offline-first + SafariView-Ausnahme für Legal) - PLAN.md auf η-0 + Phasenübersicht η-0..η-10 - AppConfigTests.test_keychainService_matchesSharedGroup auf ManaSharedKeychainGroup aktualisiert (war drift seit Cross-App-SSO) Verifikation: - xcodebuild iOS-Simulator iPhone 16e: BUILD SUCCEEDED - nm ZitareNative | grep WKWebView: 0 Referenzen - otool -L: kein WebKit-Framework-Link - 20/20 Tests grün Cross-Repo-Follow-up (η-1 Blocker): - zitare/apps/zitare/ muss index-full.json + 7 Stammdaten-JSONs liefern - zitare/apps/api/ Volltext-Search-Endpoint bestätigen/ergänzen Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
58eb2807c7
commit
1d770123f5
11 changed files with 619 additions and 365 deletions
|
|
@ -1,11 +1,16 @@
|
|||
import Foundation
|
||||
|
||||
/// Routet sowohl Custom-Scheme- (`zitare://`) als auch Universal-Link-URLs
|
||||
/// (`zitare.com/...`) auf eine konkrete `WebTarget` + Ziel-Tab.
|
||||
/// (`zitare.com/...`) auf eine normalisierte URL + Ziel-Tab.
|
||||
///
|
||||
/// **η-0 (de-Hybrid):** Die URL ist nicht mehr WebView-Target, sondern
|
||||
/// Eingabe für das native `NavigationPath`-Routing in η-2. Path-Struktur
|
||||
/// (`/q/<slug>`, `/a/<slug>`, `/c/<slug>`, `/thema/<slug>` etc.) bleibt
|
||||
/// 1:1 wie im Web-Repo — die Native-Views matchen die gleichen Slugs.
|
||||
///
|
||||
/// Pure-Logic, kein State — easy testbar.
|
||||
enum DeepLinkRouter {
|
||||
/// Mapt eine externe URL auf eine WebShell-URL.
|
||||
/// Normalisiert eine externe URL auf den kanonischen `https://`-Pfad.
|
||||
/// `zitare://quote/x` → `https://zitare.com/q/x`,
|
||||
/// `zitare://author/x` → `https://zitare.com/a/x`,
|
||||
/// `zitare://collection/x` → `https://zitare.com/c/x`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue