Skip to content

Commit

Permalink
use simplified way to access a third party renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
standa-dev committed Nov 15, 2024
1 parent 642fb2d commit 4dda9b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ extension UIApplicationDelegate {
func setupMintegralDemand() {
/// It's important to call initialize as soon as the app launches
MTGSDK.sharedInstance().setAppID(mintegralAppId, apiKey: mintegralAppKey)
Nimbus.shared.renderers[.forNetwork(.mintegral)] = NimbusMintegralAdRenderer()
Nimbus.shared.renderers[.mintegral] = NimbusMintegralAdRenderer()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class MintegralNativeViewController: MintegralViewController {
override func viewDidLoad() {
super.viewDidLoad()

if let renderer = Nimbus.shared.renderers[.forNetwork(ThirdPartyDemandNetwork.mintegral)] as? NimbusMintegralAdRenderer {
if let renderer = Nimbus.shared.renderers[.mintegral] as? NimbusMintegralAdRenderer {
renderer.adRendererDelegate = self
}

Expand Down

0 comments on commit 4dda9b2

Please sign in to comment.