Skip to content

Commit

Permalink
feat: add log message in case default renderer wasn't found in registry
Browse files Browse the repository at this point in the history
  • Loading branch information
OlenaPostindustria committed Dec 18, 2024
1 parent e9c5658 commit 4b4e8d4
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ public class PrebidMobilePluginRegister: NSObject {

/// Default PrebidMobile SDK renderer
public var sdkRenderer: PrebidMobilePluginRenderer {
getPluginRenderer(for: PREBID_MOBILE_RENDERER_NAME) ?? PrebidRenderer()
if let renderer = getPluginRenderer(for: PREBID_MOBILE_RENDERER_NAME) {
return renderer
}

Log.error("SDK couldn't find \(PREBID_MOBILE_RENDERER_NAME) in plugin register. The new instance of \(PREBID_MOBILE_RENDERER_NAME) will be created.")
return PrebidRenderer()
}

private let queue = DispatchQueue(
Expand Down

0 comments on commit 4b4e8d4

Please sign in to comment.