-
Notifications
You must be signed in to change notification settings - Fork 103
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
Deprecate methods and properties for 3.0 #1109
base: master
Are you sure you want to change the base?
Conversation
PrebidMobile/AdUnits/AdUnit.swift
Outdated
@@ -305,22 +305,26 @@ public class AdUnit: NSObject, DispatcherDelegate { | |||
|
|||
/// This method obtains the ext data keyword & value for adunit targeting. | |||
/// If the key already exists the value will be appended to the list. No duplicates will be added | |||
@available(*, deprecated, message: "This method is deprecated. In the upcoming major release, the method will be removed.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to clearly indicate in the message which alternative method should be used in place of the deprecated one. This could be achieved either through a global-level method from the Targeting
class or by using the setImpORTBConfig
/setGlobalORTBConfig
methods.
PrebidMobile/Host.swift
Outdated
@@ -19,9 +19,11 @@ import UIKit | |||
@objc public enum PrebidHost: Int { | |||
|
|||
/// URL [https://ib.adnxs.com/openrtb2/prebid](URL) | |||
@available(*, deprecated, message: "This property is deprecated. In the upcoming major release, the property will be removed.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should also deprecate Prebid.prebidServerHost ? I don't think we'll need it anymore.
@@ -355,17 +364,20 @@ public class InterstitialRenderingAdUnit: NSObject, BaseInterstitialAdUnitProtoc | |||
|
|||
/// Adds user data objects. | |||
/// - Parameter userDataObjects: The user data objects to be added. | |||
@available(*, deprecated, message: "This method is deprecated. In the upcoming major release, the method will be removed.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What should be used instead of addUserData
?
PrebidMobile/AdUnits/AdUnit.swift
Outdated
@@ -305,22 +305,26 @@ public class AdUnit: NSObject, DispatcherDelegate { | |||
|
|||
/// This method obtains the ext data keyword & value for adunit targeting. | |||
/// If the key already exists the value will be appended to the list. No duplicates will be added | |||
@available(*, deprecated, message: "This method is deprecated. In the upcoming major release, the method will be removed. Please, use Targeting.addAppExtData method instead.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we replacing what goes into imp[].ext.data
(addExtData
) with what goes into app.ext.data
(Targeting.addAppExtData
)?
#1009
#1007
#1006