Skip to content

Commit

Permalink
removes Xcode warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
stmitt committed May 11, 2021
1 parent 4bc5d96 commit 1da5d1a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Sources/DP3TSDK/Cryptography/DiagnosisKeysProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import ExposureNotification
import Foundation

protocol DiagnosisKeysProvider: class {
protocol DiagnosisKeysProvider: AnyObject {
func getFakeDiagnosisKeys(completionHandler: @escaping (Result<[CodableDiagnosisKey], DP3TTracingError>) -> Void)

func getFakeKeys(count: Int, startingFrom: Date) -> [CodableDiagnosisKey]
Expand Down
2 changes: 1 addition & 1 deletion Sources/DP3TSDK/LoggingDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import Foundation
import os.log

/// A logging delegate
public protocol LoggingDelegate: class {
public protocol LoggingDelegate: AnyObject {
/// Log a string
/// - Parameter LogType: the type of log
/// - Parameter string: The string to log
Expand Down
2 changes: 1 addition & 1 deletion Sources/DP3TSDK/Matching/MatchingProtocols.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import Foundation


protocol Matcher: class {
protocol Matcher: AnyObject {
var timingManager: ExposureDetectionTimingManager? { get set }

/// returns true if we found a match
Expand Down
2 changes: 1 addition & 1 deletion Sources/DP3TSDK/Networking/ExposeeServiceClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ struct ExposeeSuccess {
let keyBundleTag: String?
}

protocol ExposeeServiceClientProtocol: class {
protocol ExposeeServiceClientProtocol: AnyObject {
typealias ExposeeResult = Result<Data?, DP3TNetworkingError>
typealias ExposeeCompletion = Result<Void, DP3TNetworkingError>

Expand Down
2 changes: 1 addition & 1 deletion Sources/DP3TSDK/Networking/KnownCasesSynchronizer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import Foundation
import UIKit.UIApplication

/// A delegate used to respond on DP3T events
protocol KnownCasesSynchronizerDelegate: class {
protocol KnownCasesSynchronizerDelegate: AnyObject {
/// We found a match
func didFindMatch()
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/DP3TSDK/Tracing/TracerProtocols.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ protocol TracerDelegate: AnyObject {

public typealias TracingEnableResult = Result<Void, DP3TTracingError>

protocol Tracer {
protocol Tracer: AnyObject {
var delegate: TracerDelegate? { get set }

var state: TrackingState { get }
Expand Down

0 comments on commit 1da5d1a

Please sign in to comment.