From b35f1b432fc24fbab1fa05593c9a0bca7e4d95a6 Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Thu, 23 Apr 2026 23:12:34 -0500 Subject: feat(v3.6.0): add iCloud sharing for workflows and tracked domains - implement CloudKit sharing (CKShare) for TrackedDomain and DomainWorkflow - support read-only and editable permissions - add Share actions and shared state indicators in UI - handle shared record ownership and participant roles - implement deterministic conflict resolution to prevent duplication - ensure compatibility with existing iCloud sync layer - maintain local-first behavior with graceful offline handling - remove debug logging for domain availability/rdap messages notes: - no custom backend or accounts introduced - sharing is Apple ecosystem only (iCloud-based) - large history data remains local-only --- DomainDig/DomainAvailabilityService.swift | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'DomainDig/DomainAvailabilityService.swift') diff --git a/DomainDig/DomainAvailabilityService.swift b/DomainDig/DomainAvailabilityService.swift index 59f6afa..b671fbc 100644 --- a/DomainDig/DomainAvailabilityService.swift +++ b/DomainDig/DomainAvailabilityService.swift @@ -10,17 +10,14 @@ struct DomainAvailabilityService { } if await checkViaRDAP(domain: normalizedDomain) == .registered { - debugLog("rdap", domain: normalizedDomain, status: .registered) return DomainAvailabilityResult(domain: normalizedDomain, status: .registered) } let fallbackStatus = await checkViaDNSFallback(domain: normalizedDomain) if fallbackStatus == .registered { - debugLog("dns-evidence", domain: normalizedDomain, details: "DNS exists but RDAP did not confirm registration") return DomainAvailabilityResult(domain: normalizedDomain, status: .unknown) } - debugLog("fallback", domain: normalizedDomain, status: fallbackStatus) return DomainAvailabilityResult(domain: normalizedDomain, status: fallbackStatus) } @@ -40,9 +37,6 @@ struct DomainAvailabilityService { private static func checkViaRDAP(domain: String) async -> DomainAvailabilityStatus? { let status = await RDAPService.registrationStatus(for: domain) - if status == nil { - debugLog("rdap-not-found", domain: domain, details: "Ignoring unavailable response from rdap.org") - } return status } @@ -53,7 +47,6 @@ struct DomainAvailabilityService { return .registered } } catch { - debugLog("dns-a-error", domain: domain, details: error.localizedDescription) } do { @@ -63,7 +56,6 @@ struct DomainAvailabilityService { } return .unknown } catch { - debugLog("dns-ns-error", domain: domain, details: error.localizedDescription) return .unknown } } @@ -99,16 +91,4 @@ struct DomainAvailabilityService { .trimmingCharacters(in: .whitespacesAndNewlines) .lowercased() } - - private static func debugLog(_ method: String, domain: String, status: DomainAvailabilityStatus) { - #if DEBUG - print("[Availability] \(domain) -> \(status.rawValue) via \(method)") - #endif - } - - private static func debugLog(_ method: String, domain: String, details: String) { - #if DEBUG - print("[Availability] \(domain) -> \(method): \(details)") - #endif - } } -- cgit v1.2.3