From 9a488a2ae2a689627e1bb6b5da1670d740a1a91f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20B=C3=B6ttger?= Date: Wed, 1 Apr 2026 19:00:24 +0200 Subject: [PATCH] Refactoring --- NearbyShare/Connection/NearbyConnectionManager.swift | 8 ++++---- QuickDrop.xcodeproj/project.pbxproj | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/NearbyShare/Connection/NearbyConnectionManager.swift b/NearbyShare/Connection/NearbyConnectionManager.swift index 2512850..b7fa366 100644 --- a/NearbyShare/Connection/NearbyConnectionManager.swift +++ b/NearbyShare/Connection/NearbyConnectionManager.swift @@ -46,8 +46,8 @@ public class NearbyConnectionManager: NSObject, NetServiceDelegate, InboundNearb private static let customDeviceNameKey = "com.leonboettger.quickdrop.deviceName" private var defaultPort: NWEndpoint.Port = 50362 private let txtKeyEndpointInfo = "n" - private let txtKeyNotificationSyncCapabilities = "qd_caps" - private let txtKeyNotificationSyncKeyFingerprint = "qd_kid" + private let txtQuickDropCapabilities = "qd_caps" + private let txtQuickDropDeviceKeyFingerprint = "qd_kid" private let notificationSyncCapabilityToken = "nsync1" private let unnamedAndroidFallbackDeviceName = "AndroidDevice".localized() @@ -316,9 +316,9 @@ public class NearbyConnectionManager: NSObject, NetServiceDelegate, InboundNearb txtKeyEndpointInfo: deviceInfo.serialize().urlSafeBase64EncodedString().data(using: .utf8)!, ] #if os(macOS) - txtRecord[txtKeyNotificationSyncCapabilities] = Data(notificationSyncCapabilityToken.utf8) + txtRecord[txtQuickDropCapabilities] = Data(notificationSyncCapabilityToken.utf8) if let keyFingerprint = notificationSyncKeyFingerprintHex() { - txtRecord[txtKeyNotificationSyncKeyFingerprint] = Data(keyFingerprint.utf8) + txtRecord[txtQuickDropDeviceKeyFingerprint] = Data(keyFingerprint.utf8) } #endif service.setTXTRecord(NetService.data(fromTXTRecord: txtRecord)) diff --git a/QuickDrop.xcodeproj/project.pbxproj b/QuickDrop.xcodeproj/project.pbxproj index 62e445a..d1be771 100644 --- a/QuickDrop.xcodeproj/project.pbxproj +++ b/QuickDrop.xcodeproj/project.pbxproj @@ -1773,8 +1773,8 @@ MTL_FAST_MATH = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = macosx; - SHARED_BUILD = 138; - SHARED_VERSION = 3.0; + SHARED_BUILD = 139; + SHARED_VERSION = 3.0.1; STRING_CATALOG_GENERATE_SYMBOLS = YES; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_EMIT_LOC_STRINGS = YES; @@ -1836,8 +1836,8 @@ MTL_ENABLE_DEBUG_INFO = NO; MTL_FAST_MATH = YES; SDKROOT = macosx; - SHARED_BUILD = 138; - SHARED_VERSION = 3.0; + SHARED_BUILD = 139; + SHARED_VERSION = 3.0.1; STRING_CATALOG_GENERATE_SYMBOLS = YES; SWIFT_COMPILATION_MODE = wholemodule; SWIFT_EMIT_LOC_STRINGS = YES;