Skip to content

Commit b0bd6a9

Browse files
- update Podfile.lock\n- Use slotView from bannerView\n- Use canImport to be failsafe in case of namespace changes from MoPub to MoPubSDK and keep working with previous moPubSDK
1 parent 83cd0ea commit b0bd6a9

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

Podfile.lock

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,10 @@ PODS:
5757
- TeadsSDK/Core (4.8.5)
5858

5959
DEPENDENCIES:
60-
- GoogleMobileAdsMediationTeads (= 4.8.5)
60+
- GoogleMobileAdsMediationTeads
6161
- mopub-ios-sdk
62-
- MoPub-Teads-Adapters (= 4.8.5)
63-
- TeadsSASAdapter (= 4.8.5)
64-
- TeadsSDK (= 4.8.5)
62+
- MoPub-Teads-Adapters
63+
- TeadsSASAdapter
6564

6665
SPEC REPOS:
6766
trunk:
@@ -94,6 +93,6 @@ SPEC CHECKSUMS:
9493
TeadsSASAdapter: 980ba558522b6d3cb15ed245db96efcc98f97400
9594
TeadsSDK: 38a7fa794ef660ef95cae5ae8cc6f5952a5be3e6
9695

97-
PODFILE CHECKSUM: 27ba3481b9d6db1b2e65bafc1b95209a73ecb9da
96+
PODFILE CHECKSUM: f82daf0191968d231a4607b348ac5accf872491d
9897

9998
COCOAPODS: 1.10.1

TeadsSampleApp/Controllers/InRead/Mopub/ScrollView/InReadMopubScrollViewController.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77

88
import TeadsSDK
99
import UIKit
10+
#if canImport(MoPubSDK)
1011
import MoPubSDK
12+
#else
13+
import MoPub
14+
#endif
1115
import TeadsMoPubAdapter
1216

1317
class InReadMopubScrollViewController: TeadsViewController {
@@ -26,7 +30,7 @@ class InReadMopubScrollViewController: TeadsViewController {
2630
let config = MPMoPubConfiguration(adUnitIdForAppInitialization: MOPUB_AD_UNIT_ID)
2731
bannerView = MPAdView(adUnitId: MOPUB_AD_UNIT_ID)
2832
bannerView.delegate = self
29-
bannerView.frame = CGRect(x: 0, y: 0, width: 350, height: 250);
33+
bannerView.frame = slotView.bounds
3034

3135
if MoPub.sharedInstance().isSdkInitialized {
3236
loadAd()

TeadsSampleApp/Controllers/InRead/Mopub/TableView/InReadMopubTableViewController.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
//
88

99
import UIKit
10+
#if canImport(MoPubSDK)
1011
import MoPubSDK
12+
#else
13+
import MoPub
14+
#endif
1115
import TeadsMoPubAdapter
1216
import TeadsSDK
1317

0 commit comments

Comments
 (0)