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

Deprecate methods and properties for 3.0 #1109

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mdanylov-sigma
Copy link
Collaborator

@@ -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.")
Copy link
Collaborator

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.

@@ -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.")
Copy link
Collaborator

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.")
Copy link
Collaborator

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 ?

@@ -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.")
Copy link
Collaborator

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)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants