From 7fb8658d73250d53e58896919e5541fde8a54ebc Mon Sep 17 00:00:00 2001 From: Ray Graham Date: Wed, 8 May 2024 11:16:40 -0700 Subject: [PATCH] Removed no longer valid imports of `BidMachineApiCore` --- Source/BidMachineAdapter.swift | 3 +-- Source/BidMachineAdapterBannerAd.swift | 7 +++---- 2 files changed, 4 insertions(+), 6 deletions(-) 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: