From f1858cf4fc82bfd124a817a10fbaca4bf852a23b Mon Sep 17 00:00:00 2001 From: Subeom Choi Date: Thu, 2 Nov 2023 02:50:22 +0900 Subject: [PATCH] fix: solve issue of type error --- .../Implement/IdentifierForAdvertiserFetcher.swift | 6 +++--- .../Implement/TrackingAuthorizationFetcher.swift | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Source/AppleTracker/Implement/IdentifierForAdvertiserFetcher.swift b/Source/AppleTracker/Implement/IdentifierForAdvertiserFetcher.swift index 0118190..2d9d72e 100644 --- a/Source/AppleTracker/Implement/IdentifierForAdvertiserFetcher.swift +++ b/Source/AppleTracker/Implement/IdentifierForAdvertiserFetcher.swift @@ -1,6 +1,6 @@ // // IdentifierForAdvertiserTracker.swift -// SabyAppleFetcher +// SabyAppleTracker // // Created by WOF on 2022/08/23. // @@ -81,7 +81,7 @@ private final class TrackerReflection { instanceTracker.call(methodTrackLimitAdTracking) as? Bool ) else { - throw IdentifierForAdvertiserFetcherError.unmatchedType + throw IdentifierForAdvertiserTrackerError.unmatchedType } return IdentifierForAdvertiser( @@ -91,7 +91,7 @@ private final class TrackerReflection { } } -public enum IdentifierForAdvertiserFetcherError: Error { +public enum IdentifierForAdvertiserTrackerError: Error { case unmatchedType } diff --git a/Source/AppleTracker/Implement/TrackingAuthorizationFetcher.swift b/Source/AppleTracker/Implement/TrackingAuthorizationFetcher.swift index d914b45..017b928 100644 --- a/Source/AppleTracker/Implement/TrackingAuthorizationFetcher.swift +++ b/Source/AppleTracker/Implement/TrackingAuthorizationFetcher.swift @@ -1,6 +1,6 @@ // -// TrackingAuthorizationFetcher.swift -// SabyAppleFetcher +// TrackingAuthorizationTracker.swift +// SabyAppleTracker // // Created by WOF on 2022/08/23. // @@ -12,7 +12,7 @@ import Foundation import SabyAppleObjectiveCReflection import SabyConcurrency -public final class TrackingAuthorizationFetcher: Tracker { +public final class TrackingAuthorizationTracker: Tracker { public typealias Value = Promise private let tracker: TrackerReflection @@ -64,14 +64,14 @@ private final class TrackerReflection { let code = classTracker.call(methodTrackCode) as? UInt, let trackingAuthorization = TrackingAuthorization(rawValue: code) else { - throw TrackingAuthorizationFetcherError.unmatchedType + throw TrackingAuthorizationTrackerError.unmatchedType } return trackingAuthorization } } -public enum TrackingAuthorizationFetcherError: Error { +public enum TrackingAuthorizationTrackerError: Error { case unmatchedType }