Skip to content

Commit

Permalink
Release new version: 5.0.27
Browse files Browse the repository at this point in the history
  • Loading branch information
runner authored and runner committed Apr 18, 2023
1 parent 85b174f commit b42ba67
Show file tree
Hide file tree
Showing 24 changed files with 449 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,36 @@ typedef SWIFT_ENUM(NSInteger, TCFVersion, open) {
TCFVersionV2 = 2,
};


SWIFT_CLASS("_TtC8TeadsSDK16TagBinderBuilder")
@interface TagBinderBuilder : NSObject
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
/// A non-zero tag for the title label view to be rendered. The maximum length will be 50 characters.
/// UIView element should be a <code>UILabel</code>
@property (nonatomic) NSInteger titleLabelTag;
/// A non-zero tag for content / body / description label view to be rendered. The maximum length will be 150 characters.
/// UIView element should be a ``UILabel```
@property (nonatomic) NSInteger contentLabelTag;
/// A non-zero tag for media content view to be rendered.
/// UIView element must be a <code>TeadsMediaView</code>
@property (nonatomic) NSInteger mediaViewTag;
/// A non-zero tag for icon image view to be rendered.
/// UIView element must be a <code>UIImageView</code>
@property (nonatomic) NSInteger iconImageViewTag;
/// A non-zero tag for advertiser label view to be rendered. The maximum length will be 25 characters.
/// UIView element should be a <code>UILabel</code>
@property (nonatomic) NSInteger advertiserLabelTag;
/// A non-zero tag for call to action button view to be rendered. The maximum length will be 15 characters.
/// UIView element should be a <code>UIButton</code>
@property (nonatomic) NSInteger callToActionButtonTag;
/// A non-zero tag for star rating content view to be rendered.
@property (nonatomic) NSInteger ratingViewTag;
/// A non-zero tag for price content view to be rendered.
/// UIView element should be a <code>UILabel</code>
@property (nonatomic) NSInteger priceLabelTag;
@end

@class TeadsAdPlacementSettings;
@protocol TeadsInReadAdPlacementDelegate;
@class TeadsInReadAdPlacement;
Expand Down Expand Up @@ -1053,6 +1083,14 @@ SWIFT_CLASS("_TtC8TeadsSDK17TeadsNativeAdView")
/// \param ad The ad that should be binded to the ad view.
///
- (void)bind:(TeadsNativeAd * _Nonnull)ad;
/// Binds the native asset ad views to this native ad using view tags binder
/// important:
/// This call is mandatory in order to monitor ad viewability of each components
/// \param ad The ad that should be binded to the ad view.
///
/// \param binder Binds the native asset ad views to this native ad using view tags.
///
- (void)bind:(TeadsNativeAd * _Nonnull)ad tagBinder:(SWIFT_NOESCAPE void (^ _Nonnull)(TagBinderBuilder * _Nonnull))tagBinder;
- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
@end
Expand Down Expand Up @@ -1101,13 +1139,13 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK18TeadsSoundDelegate_") SWIFT_UNAVAILABLE_MSG("'Tea




@interface UIButton (SWIFT_EXTENSION(TeadsSDK))
- (void)bindWithComponent:(CommonComponent * _Nullable)component;
@end




@interface UIImageView (SWIFT_EXTENSION(TeadsSDK))
- (void)bindWithComponent:(CommonComponent * _Nullable)component;
@end
Expand All @@ -1119,6 +1157,7 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK18TeadsSoundDelegate_") SWIFT_UNAVAILABLE_MSG("'Tea




@interface UIView (SWIFT_EXTENSION(TeadsSDK))
/// map your UIKit element to TeadsSDK logic,
/// this ensures visibility measurement is monitored and click behaviors are well handled
Expand Down Expand Up @@ -1509,6 +1548,36 @@ typedef SWIFT_ENUM(NSInteger, TCFVersion, open) {
TCFVersionV2 = 2,
};


SWIFT_CLASS("_TtC8TeadsSDK16TagBinderBuilder")
@interface TagBinderBuilder : NSObject
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
/// A non-zero tag for the title label view to be rendered. The maximum length will be 50 characters.
/// UIView element should be a <code>UILabel</code>
@property (nonatomic) NSInteger titleLabelTag;
/// A non-zero tag for content / body / description label view to be rendered. The maximum length will be 150 characters.
/// UIView element should be a ``UILabel```
@property (nonatomic) NSInteger contentLabelTag;
/// A non-zero tag for media content view to be rendered.
/// UIView element must be a <code>TeadsMediaView</code>
@property (nonatomic) NSInteger mediaViewTag;
/// A non-zero tag for icon image view to be rendered.
/// UIView element must be a <code>UIImageView</code>
@property (nonatomic) NSInteger iconImageViewTag;
/// A non-zero tag for advertiser label view to be rendered. The maximum length will be 25 characters.
/// UIView element should be a <code>UILabel</code>
@property (nonatomic) NSInteger advertiserLabelTag;
/// A non-zero tag for call to action button view to be rendered. The maximum length will be 15 characters.
/// UIView element should be a <code>UIButton</code>
@property (nonatomic) NSInteger callToActionButtonTag;
/// A non-zero tag for star rating content view to be rendered.
@property (nonatomic) NSInteger ratingViewTag;
/// A non-zero tag for price content view to be rendered.
/// UIView element should be a <code>UILabel</code>
@property (nonatomic) NSInteger priceLabelTag;
@end

@class TeadsAdPlacementSettings;
@protocol TeadsInReadAdPlacementDelegate;
@class TeadsInReadAdPlacement;
Expand Down Expand Up @@ -2204,6 +2273,14 @@ SWIFT_CLASS("_TtC8TeadsSDK17TeadsNativeAdView")
/// \param ad The ad that should be binded to the ad view.
///
- (void)bind:(TeadsNativeAd * _Nonnull)ad;
/// Binds the native asset ad views to this native ad using view tags binder
/// important:
/// This call is mandatory in order to monitor ad viewability of each components
/// \param ad The ad that should be binded to the ad view.
///
/// \param binder Binds the native asset ad views to this native ad using view tags.
///
- (void)bind:(TeadsNativeAd * _Nonnull)ad tagBinder:(SWIFT_NOESCAPE void (^ _Nonnull)(TagBinderBuilder * _Nonnull))tagBinder;
- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
@end
Expand Down Expand Up @@ -2252,13 +2329,13 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK18TeadsSoundDelegate_") SWIFT_UNAVAILABLE_MSG("'Tea




@interface UIButton (SWIFT_EXTENSION(TeadsSDK))
- (void)bindWithComponent:(CommonComponent * _Nullable)component;
@end




@interface UIImageView (SWIFT_EXTENSION(TeadsSDK))
- (void)bindWithComponent:(CommonComponent * _Nullable)component;
@end
Expand All @@ -2270,6 +2347,7 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK18TeadsSoundDelegate_") SWIFT_UNAVAILABLE_MSG("'Tea




@interface UIView (SWIFT_EXTENSION(TeadsSDK))
/// map your UIKit element to TeadsSDK logic,
/// this ensures visibility measurement is monitored and click behaviors are well handled
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,12 @@ extension UIKit.UIButton {
@objc final public var image: UIKit.UIImage? {
@objc get
}

#if compiler(>=5.3) && $AsyncAwait
@available(iOS 13.0.0, *)
final public func loadImage() async throws -> UIKit.UIImage
#endif

@objc deinit
}
@_inheritsConvenienceInitializers @objc @_Concurrency.MainActor(unsafe) public class TeadsAdView : UIKit.UIView {
Expand Down Expand Up @@ -324,6 +330,7 @@ extension TeadsSDK.TeadsInReadAd {
@objc @IBOutlet @_Concurrency.MainActor(unsafe) public var ratingView: UIKit.UIView?
@objc @IBOutlet @_Concurrency.MainActor(unsafe) public var priceLabel: UIKit.UILabel?
@objc @_Concurrency.MainActor(unsafe) public func bind(_ ad: TeadsSDK.TeadsNativeAd)
@objc @_Concurrency.MainActor(unsafe) public func bind(_ ad: TeadsSDK.TeadsNativeAd, tagBinder: (TeadsSDK.TagBinderBuilder) -> Swift.Void)
@_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreGraphics.CGRect)
@_Concurrency.MainActor(unsafe) @objc required dynamic public init?(coder: Foundation.NSCoder)
@objc deinit
Expand All @@ -343,6 +350,41 @@ extension TeadsSDK.CommonComponent {
get
}
}
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objc final public class TagBinderBuilder : ObjectiveC.NSObject {
@objc final public var titleLabelTag: Swift.Int {
@objc get
@objc set
}
@objc final public var contentLabelTag: Swift.Int {
@objc get
@objc set
}
@objc final public var mediaViewTag: Swift.Int {
@objc get
@objc set
}
@objc final public var iconImageViewTag: Swift.Int {
@objc get
@objc set
}
@objc final public var advertiserLabelTag: Swift.Int {
@objc get
@objc set
}
@objc final public var callToActionButtonTag: Swift.Int {
@objc get
@objc set
}
@objc final public var ratingViewTag: Swift.Int {
@objc get
@objc set
}
@objc final public var priceLabelTag: Swift.Int {
@objc get
@objc set
}
@objc deinit
}
@objc public protocol TeadsMediatedAdViewDelegate {
@objc func didUpdateRatio(_ adView: UIKit.UIView, adRatio: TeadsSDK.TeadsAdRatio)
}
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,12 @@ extension UIKit.UIButton {
@objc final public var image: UIKit.UIImage? {
@objc get
}

#if compiler(>=5.3) && $AsyncAwait
@available(iOS 13.0.0, *)
final public func loadImage() async throws -> UIKit.UIImage
#endif

@objc deinit
}
@_inheritsConvenienceInitializers @objc @_Concurrency.MainActor(unsafe) public class TeadsAdView : UIKit.UIView {
Expand Down Expand Up @@ -324,6 +330,7 @@ extension TeadsSDK.TeadsInReadAd {
@objc @IBOutlet @_Concurrency.MainActor(unsafe) public var ratingView: UIKit.UIView?
@objc @IBOutlet @_Concurrency.MainActor(unsafe) public var priceLabel: UIKit.UILabel?
@objc @_Concurrency.MainActor(unsafe) public func bind(_ ad: TeadsSDK.TeadsNativeAd)
@objc @_Concurrency.MainActor(unsafe) public func bind(_ ad: TeadsSDK.TeadsNativeAd, tagBinder: (TeadsSDK.TagBinderBuilder) -> Swift.Void)
@_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreGraphics.CGRect)
@_Concurrency.MainActor(unsafe) @objc required dynamic public init?(coder: Foundation.NSCoder)
@objc deinit
Expand All @@ -343,6 +350,41 @@ extension TeadsSDK.CommonComponent {
get
}
}
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objc final public class TagBinderBuilder : ObjectiveC.NSObject {
@objc final public var titleLabelTag: Swift.Int {
@objc get
@objc set
}
@objc final public var contentLabelTag: Swift.Int {
@objc get
@objc set
}
@objc final public var mediaViewTag: Swift.Int {
@objc get
@objc set
}
@objc final public var iconImageViewTag: Swift.Int {
@objc get
@objc set
}
@objc final public var advertiserLabelTag: Swift.Int {
@objc get
@objc set
}
@objc final public var callToActionButtonTag: Swift.Int {
@objc get
@objc set
}
@objc final public var ratingViewTag: Swift.Int {
@objc get
@objc set
}
@objc final public var priceLabelTag: Swift.Int {
@objc get
@objc set
}
@objc deinit
}
@objc public protocol TeadsMediatedAdViewDelegate {
@objc func didUpdateRatio(_ adView: UIKit.UIView, adRatio: TeadsSDK.TeadsAdRatio)
}
Expand Down
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit b42ba67

Please sign in to comment.