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>
40 lines
1.5 KiB
Swift
40 lines
1.5 KiB
Swift
import ManaCore
|
|
import XCTest
|
|
@testable import ZitareNative
|
|
|
|
/// Basis-Tests: Konfigurations-Konstanten sind konsistent mit dem
|
|
/// mana-Plattform-Setup (Bundle-ID, Keychain-Service, Endpoint-Domains).
|
|
final class AppConfigTests: XCTestCase {
|
|
func test_authBaseURL_pointsToManaAuth() {
|
|
XCTAssertEqual(
|
|
AppConfig.manaAppConfig.authBaseURL.absoluteString,
|
|
"https://auth.mana.how"
|
|
)
|
|
}
|
|
|
|
func test_keychainService_matchesSharedGroup() {
|
|
// Zitare-native teilt die Keychain-Group mit den 11 anderen
|
|
// nativen mana-Apps (Cross-App-SSO via
|
|
// QP3GLU8PH3.ev.mana.session, siehe mana-swift-core).
|
|
XCTAssertEqual(AppConfig.manaAppConfig.keychainService, ManaSharedKeychainGroup)
|
|
}
|
|
|
|
func test_apiBaseURL_pointsToZitareApi() {
|
|
XCTAssertEqual(AppConfig.apiBaseURL.absoluteString, "https://api.zitare.com")
|
|
}
|
|
|
|
func test_webBaseURL_isPublicCom() {
|
|
// Cutover 2026-05-20: zitare.com ist live, webBaseURL zeigt
|
|
// auf das öffentliche Lese-Surface.
|
|
XCTAssertEqual(AppConfig.webBaseURL.absoluteString, "https://zitare.com")
|
|
XCTAssertEqual(AppConfig.publicWebURL.absoluteString, "https://zitare.com")
|
|
}
|
|
|
|
func test_appBaseURL_isAppZitareCom() {
|
|
XCTAssertEqual(AppConfig.appBaseURL.absoluteString, "https://app.zitare.com")
|
|
}
|
|
|
|
func test_appGroup_matchesEntitlement() {
|
|
XCTAssertEqual(AppConfig.appGroup, "group.ev.mana.zitare")
|
|
}
|
|
}
|