diff --git a/Source/BidMachineAdapter.swift b/Source/BidMachineAdapter.swift index 5877e54..ce9f90e 100644 --- a/Source/BidMachineAdapter.swift +++ b/Source/BidMachineAdapter.swift @@ -7,7 +7,6 @@ import ChartboostMediationSDK import Foundation import UIKit import BidMachine -import BidMachineApiCore // Needed for the PlacementFormat type final class BidMachineAdapter: PartnerAdapter { private let SOURCE_ID_KEY = "source_id" @@ -73,7 +72,7 @@ final class BidMachineAdapter: PartnerAdapter { /// - parameter completion: Closure to be performed with the fetched info. func fetchBidderInformation(request: PreBidRequest, completion: @escaping ([String : String]?) -> Void) { log(.fetchBidderInfoStarted(request)) - let placementFormat: BidMachineApiCore.PlacementFormat + let placementFormat: PlacementFormat switch request.format { case .banner: placementFormat = .banner diff --git a/Source/BidMachineAdapterBannerAd.swift b/Source/BidMachineAdapterBannerAd.swift index 752863a..f9a6a3d 100644 --- a/Source/BidMachineAdapterBannerAd.swift +++ b/Source/BidMachineAdapterBannerAd.swift @@ -6,7 +6,6 @@ import ChartboostMediationSDK import Foundation import BidMachine -import BidMachineApiCore // Needed for the PlacementFormat type final class BidMachineAdapterBannerAd: BidMachineAdapterAd, PartnerAd { @@ -20,7 +19,7 @@ final class BidMachineAdapterBannerAd: BidMachineAdapterAd, PartnerAd { log(.loadStarted) guard let size = request.size, - let bannerType = BidMachineApiCore.PlacementFormat.from(size: fixedBannerSize(for: size)) else { + let bannerType = PlacementFormat.from(size: fixedBannerSize(for: size)) else { let error = error(.loadFailureInvalidBannerSize) log(.loadFailed(error)) completion(.failure(error)) @@ -152,8 +151,8 @@ extension BidMachineAdapterBannerAd: BidMachineAdDelegate { } } -extension BidMachineApiCore.PlacementFormat { - static func from(size: CGSize?) -> BidMachineApiCore.PlacementFormat? { +extension PlacementFormat { + static func from(size: CGSize?) -> PlacementFormat? { // Translate IAB size to a BidMachine placement format switch size { case IABStandardAdSize: