Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash fix on bid.ext.prebid.meta getter in Bid.swift #1108

Merged
merged 3 commits into from
Mar 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions PrebidMobile/PrebidMobileRendering/Prebid/PBMCore/Bid.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ public class Bid: NSObject {
bid.ext.prebid?.targeting
}

/// Targeting information that needs to be passed to the ad server SDK.
public var meta: [String : String]? {
/// Targeting information that needs to be passed to the ad server SDK.
public var meta: [String : Any]? {
bid.ext.prebid?.meta
}

Expand All @@ -86,14 +86,14 @@ public class Bid: NSObject {
bid.ext.prebid?.passthrough?.filter { $0.type == "prebidmobilesdk" }.first?.adConfiguration
}

/// Preffered plugin renderer name
/// Preffered plugin renderer name
public var pluginRendererName: String? {
meta?[Bid.KEY_RENDERER_NAME]
meta?[Bid.KEY_RENDERER_NAME] as? String
}

/// Preffered plugin renderer version
public var pluginRendererVersion: String? {
meta?[Bid.KEY_RENDERER_VERSION]
meta?[Bid.KEY_RENDERER_VERSION] as? String
}

// This part is dedicating to test server-side ad configurations.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ NS_ASSUME_NONNULL_BEGIN

@property (nonatomic, strong, nullable) PBMORTBBidExtPrebidCache *cache;
@property (nonatomic, copy, nullable) NSDictionary<NSString *, NSString *> *targeting;
@property (nonatomic, copy, nullable) NSDictionary<NSString *, NSString *> *meta;
@property (nonatomic, copy, nullable) NSDictionary<NSString *, id> *meta;
@property (nonatomic, copy, nullable) NSString *type;
@property (nonatomic, copy, nullable) NSArray<PBMORTBExtPrebidPassthrough *> *passthrough;
@property (nonatomic, strong, nullable) PBMORTBExtPrebidEvents *events;
Expand Down