mirror of
https://github.com/sudosylabs/vnidrop.git
synced 2026-08-13 05:49:57 +02:00
fix(apple): realign UI layer with regenerated core bindings
- map the new VnidropError cases (DeviceUnavailable, OfferTimeout, RelayPolicyIncompatible, ProtocolIncompatible) to existing catalog keys - drop the stale .map(\.share) now that sharePickedFiles returns Share - remove the duplicate .transfersChanged pattern in the signal switch - replace the deprecated String(cString:) sysctl decode - close the CoreGateway protocol declaration
This commit is contained in:
@@ -30,6 +30,10 @@ extension Error {
|
||||
return .resource(L10n.Error.storageFull)
|
||||
case .Network:
|
||||
return .resource(L10n.Error.network)
|
||||
case .DeviceUnavailable, .RelayPolicyIncompatible:
|
||||
return .resource(L10n.Error.network)
|
||||
case .OfferTimeout, .ProtocolIncompatible:
|
||||
return .resource(L10n.Error.transfer)
|
||||
case .Transfer(let reason):
|
||||
return transferUiText(reason)
|
||||
case .Repository:
|
||||
@@ -88,6 +92,8 @@ extension Error {
|
||||
switch vni {
|
||||
case .Initialization(let r), .Ticket(let r), .Filesystem(let r), .FilesystemPermission(let r),
|
||||
.DestinationExists(let r), .StorageFull(let r), .Network(let r),
|
||||
.DeviceUnavailable(let r), .OfferTimeout(let r),
|
||||
.RelayPolicyIncompatible(let r), .ProtocolIncompatible(let r),
|
||||
.Transfer(let r), .Permission(let r), .Repository(let r), .Cancelled(let r),
|
||||
.InvalidInput(let r), .InvalidTransition(let r), .SecureStorageLocked(let r),
|
||||
.SecureStorageMissing(let r), .SecureStorageCorrupted(let r),
|
||||
|
||||
Reference in New Issue
Block a user