summaryrefslogtreecommitdiff
path: root/DomainDig/DomainAvailabilityService.swift
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-04-23 23:12:34 -0500
committerChristian Cleberg <[email protected]>2026-04-23 23:12:34 -0500
commitb35f1b432fc24fbab1fa05593c9a0bca7e4d95a6 (patch)
tree099cea2cc4324331a719ed2cad8c0815033b5471 /DomainDig/DomainAvailabilityService.swift
parentf045a5d339a796f40a9e958436ebc6f5314bdab8 (diff)
downloaddomain-dig-b35f1b432fc24fbab1fa05593c9a0bca7e4d95a6.tar.gz
domain-dig-b35f1b432fc24fbab1fa05593c9a0bca7e4d95a6.tar.bz2
domain-dig-b35f1b432fc24fbab1fa05593c9a0bca7e4d95a6.zip
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
Diffstat (limited to 'DomainDig/DomainAvailabilityService.swift')
-rw-r--r--DomainDig/DomainAvailabilityService.swift20
1 files changed, 0 insertions, 20 deletions
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
- }
}