From 4bf4c19db0c46e7cb00bb0881b5104b2ac398b60 Mon Sep 17 00:00:00 2001 From: Stefan Mitterrutzner Date: Wed, 12 May 2021 16:46:06 +0200 Subject: [PATCH] Revert "removes Xcode warnings" This reverts commit 1da5d1a48558f491c1e23370f85dbe4d7c83ce08. --- Sources/DP3TSDK/Cryptography/DiagnosisKeysProvider.swift | 2 +- Sources/DP3TSDK/LoggingDelegate.swift | 2 +- Sources/DP3TSDK/Matching/MatchingProtocols.swift | 2 +- Sources/DP3TSDK/Networking/ExposeeServiceClient.swift | 2 +- Sources/DP3TSDK/Networking/KnownCasesSynchronizer.swift | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Sources/DP3TSDK/Cryptography/DiagnosisKeysProvider.swift b/Sources/DP3TSDK/Cryptography/DiagnosisKeysProvider.swift index 0662eb30..c95c1d27 100644 --- a/Sources/DP3TSDK/Cryptography/DiagnosisKeysProvider.swift +++ b/Sources/DP3TSDK/Cryptography/DiagnosisKeysProvider.swift @@ -11,7 +11,7 @@ import ExposureNotification import Foundation -protocol DiagnosisKeysProvider: AnyObject { +protocol DiagnosisKeysProvider: class { func getFakeDiagnosisKeys(completionHandler: @escaping (Result<[CodableDiagnosisKey], DP3TTracingError>) -> Void) func getFakeKeys(count: Int, startingFrom: Date) -> [CodableDiagnosisKey] diff --git a/Sources/DP3TSDK/LoggingDelegate.swift b/Sources/DP3TSDK/LoggingDelegate.swift index 4871b8f6..87998c86 100644 --- a/Sources/DP3TSDK/LoggingDelegate.swift +++ b/Sources/DP3TSDK/LoggingDelegate.swift @@ -12,7 +12,7 @@ import Foundation import os.log /// A logging delegate -public protocol LoggingDelegate: AnyObject { +public protocol LoggingDelegate: class { /// Log a string /// - Parameter LogType: the type of log /// - Parameter string: The string to log diff --git a/Sources/DP3TSDK/Matching/MatchingProtocols.swift b/Sources/DP3TSDK/Matching/MatchingProtocols.swift index 1b2a5fab..c46ac093 100644 --- a/Sources/DP3TSDK/Matching/MatchingProtocols.swift +++ b/Sources/DP3TSDK/Matching/MatchingProtocols.swift @@ -11,7 +11,7 @@ import Foundation -protocol Matcher: AnyObject { +protocol Matcher: class { var timingManager: ExposureDetectionTimingManager? { get set } /// returns true if we found a match diff --git a/Sources/DP3TSDK/Networking/ExposeeServiceClient.swift b/Sources/DP3TSDK/Networking/ExposeeServiceClient.swift index 67673dd3..79a67519 100644 --- a/Sources/DP3TSDK/Networking/ExposeeServiceClient.swift +++ b/Sources/DP3TSDK/Networking/ExposeeServiceClient.swift @@ -17,7 +17,7 @@ struct ExposeeSuccess { let keyBundleTag: String? } -protocol ExposeeServiceClientProtocol: AnyObject { +protocol ExposeeServiceClientProtocol: class { typealias ExposeeResult = Result typealias ExposeeCompletion = Result diff --git a/Sources/DP3TSDK/Networking/KnownCasesSynchronizer.swift b/Sources/DP3TSDK/Networking/KnownCasesSynchronizer.swift index f1c6a6a2..cff459e6 100644 --- a/Sources/DP3TSDK/Networking/KnownCasesSynchronizer.swift +++ b/Sources/DP3TSDK/Networking/KnownCasesSynchronizer.swift @@ -12,7 +12,7 @@ import Foundation import UIKit.UIApplication /// A delegate used to respond on DP3T events -protocol KnownCasesSynchronizerDelegate: AnyObject { +protocol KnownCasesSynchronizerDelegate: class { /// We found a match func didFindMatch() }