-
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
Open
mdanylov-sigma
wants to merge
3
commits into
master
Choose a base branch
from
feature/deprecate-methods
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+66
−0
Open
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 commentThe 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. |
||
case Appnexus | ||
|
||
/// URL [https://prebid-server.rubiconproject.com/openrtb2/auction](URL) | ||
@available(*, deprecated, message: "This property is deprecated. In the upcoming major release, the property will be removed.") | ||
case Rubicon | ||
|
||
/// Custom Prebid server URL. The URL for this case should be set separately. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -245,6 +245,7 @@ public class InterstitialRenderingAdUnit: NSObject, BaseInterstitialAdUnitProtoc | |
/// - Parameters: | ||
/// - key: The key for the data. | ||
/// - value: The value for the data. | ||
@available(*, deprecated, message: "This method is deprecated. In the upcoming major release, the method will be removed. Please, use Targeting.addAppExtData method instead.") | ||
public func addExtData(key: String, value: String) { | ||
adUnitConfig.addExtData(key: key, value: value) | ||
} | ||
|
@@ -253,18 +254,21 @@ public class InterstitialRenderingAdUnit: NSObject, BaseInterstitialAdUnitProtoc | |
/// - Parameters: | ||
/// - key: The key for the data. | ||
/// - value: The value for the data. | ||
@available(*, deprecated, message: "This method is deprecated. In the upcoming major release, the method will be removed. Please, use Targeting.updateAppExtData method instead.") | ||
public func updateExtData(key: String, value: Set<String>) { | ||
adUnitConfig.updateExtData(key: key, value: value) | ||
} | ||
|
||
/// Removes ext data. | ||
/// - Parameters: | ||
/// - key: The key for the data. | ||
@available(*, deprecated, message: "This method is deprecated. In the upcoming major release, the method will be removed. Please, use Targeting.removeAppExtData method instead.") | ||
public func removeExtData(forKey: String) { | ||
adUnitConfig.removeExtData(for: forKey) | ||
} | ||
|
||
/// Clears ext data. | ||
@available(*, deprecated, message: "This method is deprecated. In the upcoming major release, the method will be removed. Please, use Targeting.clearAppExtData method instead.") | ||
public func clearExtData() { | ||
adUnitConfig.clearExtData() | ||
} | ||
|
@@ -325,28 +329,33 @@ public class InterstitialRenderingAdUnit: NSObject, BaseInterstitialAdUnitProtoc | |
|
||
/// Sets the app content data. | ||
/// - Parameter appContent: The app content data. | ||
@available(*, deprecated, message: "This method is deprecated. In the upcoming major release, the method will be removed. Please, use Targeting.setGlobalORTBConfig method instead.") | ||
public func setAppContent(_ appContent: PBMORTBAppContent) { | ||
adUnitConfig.setAppContent(appContent) | ||
} | ||
|
||
/// Clears the app content data. | ||
@available(*, deprecated, message: "This method is deprecated. In the upcoming major release, the method will be removed. Please, use Targeting.setGlobalORTBConfig method instead.") | ||
public func clearAppContent() { | ||
adUnitConfig.clearAppContent() | ||
} | ||
|
||
/// Adds app content data objects. | ||
/// - Parameter dataObjects: The data objects to be added. | ||
@available(*, deprecated, message: "This method is deprecated. In the upcoming major release, the method will be removed. Please, use Targeting.setGlobalORTBConfig method instead.") | ||
public func addAppContentData(_ dataObjects: [PBMORTBContentData]) { | ||
adUnitConfig.addAppContentData(dataObjects) | ||
} | ||
|
||
/// Removes an app content data object. | ||
/// - Parameter dataObject: The data object to be removed. | ||
@available(*, deprecated, message: "This method is deprecated. In the upcoming major release, the method will be removed. Please, use Targeting.setGlobalORTBConfig method instead.") | ||
public func removeAppContentDataObject(_ dataObject: PBMORTBContentData) { | ||
adUnitConfig.removeAppContentData(dataObject) | ||
} | ||
|
||
/// Clears all app content data objects. | ||
@available(*, deprecated, message: "This method is deprecated. In the upcoming major release, the method will be removed. Please, use Targeting.setGlobalORTBConfig method instead.") | ||
public func clearAppContentDataObjects() { | ||
adUnitConfig.clearAppContentData() | ||
} | ||
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more. What should be used instead of |
||
public func addUserData(_ userDataObjects: [PBMORTBContentData]) { | ||
adUnitConfig.addUserData(userDataObjects) | ||
} | ||
|
||
/// Removes a user data object. | ||
/// - Parameter userDataObject: The user data object to be removed. | ||
@available(*, deprecated, message: "This method is deprecated. In the upcoming major release, the method will be removed.") | ||
public func removeUserData(_ userDataObject: PBMORTBContentData) { | ||
adUnitConfig.removeUserData(userDataObject) | ||
} | ||
|
||
/// Clears all user data objects. | ||
@available(*, deprecated, message: "This method is deprecated. In the upcoming major release, the method will be removed.") | ||
public func clearUserData() { | ||
adUnitConfig.clearUserData() | ||
} | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 intoapp.ext.data
(Targeting.addAppExtData
)?