- Replace ServerConnectivity with CheckServerReachabilityUseCase - Add InfoApiClient for /api/info endpoint - Implement ServerInfoRepository with 30s cache TTL and 5s rate limiting - Update ShareBookmarkViewModel to use ShareExtensionServerCheck manager - Add server reachability check in AppViewModel on app start - Update OfflineSyncManager to use new UseCase - Extend SimpleAPI with checkServerReachability for Share Extension
11 lines
214 B
Swift
11 lines
214 B
Swift
//
|
|
// PServerInfoRepository.swift
|
|
// readeck
|
|
//
|
|
// Created by Claude Code
|
|
|
|
protocol PServerInfoRepository {
|
|
func checkServerReachability() async -> Bool
|
|
func getServerInfo() async throws -> ServerInfo
|
|
}
|