Skip to content

Commit

Permalink
Removed no longer valid imports of BidMachineApiCore
Browse files Browse the repository at this point in the history
  • Loading branch information
bwised committed May 8, 2024
1 parent b616fc2 commit 7fb8658
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions Source/BidMachineAdapter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down
7 changes: 3 additions & 4 deletions Source/BidMachineAdapterBannerAd.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import ChartboostMediationSDK
import Foundation
import BidMachine
import BidMachineApiCore // Needed for the PlacementFormat type

final class BidMachineAdapterBannerAd: BidMachineAdapterAd, PartnerAd {

Expand All @@ -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))
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 7fb8658

Please sign in to comment.