Skip to content

Commit e52d482

Browse files
runnerrunner
authored andcommitted
Release new version: 5.0.18
1 parent 8354318 commit e52d482

File tree

48 files changed

+562
-162
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+562
-162
lines changed
0 Bytes
Binary file not shown.

Frameworks/TeadsSDK.xcframework/ios-arm64_armv7/TeadsSDK.framework/Headers/TeadsSDK-Swift.h

Lines changed: 70 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,15 @@ SWIFT_CLASS("_TtC8TeadsSDK14ImageComponent")
323323
- (void)loadImageWithAsync:(BOOL)async success:(void (^ _Nullable)(UIImage * _Nonnull))success failure:(void (^ _Nullable)(NSError * _Nonnull))failure;
324324
@end
325325

326+
typedef SWIFT_ENUM(NSInteger, MediaScale, open) {
327+
/// Contents scaled to fill with fixed aspect. some portion of content may be clipped.
328+
/// Behaviour is similar to <code>UIView.ContentMode.scaleToFill</code>.
329+
MediaScaleScaleAspectFill = 0,
330+
/// Contents scaled to fit with fixed aspect. remainder is transparent.
331+
/// Behaviour is similar to <code>UIView.ContentMode.scaleAspectFit</code>.
332+
MediaScaleScaleAspectFit = 1,
333+
};
334+
326335

327336

328337

@@ -357,17 +366,24 @@ SWIFT_CLASS("_TtC8TeadsSDK5Teads")
357366
@interface Teads : NSObject
358367
/// Current Teads SDK Version value
359368
/// Value is <a href="https://semver.org/">semver</a> format compliant
369+
/// note:
370+
/// This value does not rely anymore on <code>CFBundleShortVersionString</code> plist value since Xcode auto update all versions declared in plists with app bundle version value during archive process
360371
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull sdkVersion;)
361372
+ (NSString * _Nonnull)sdkVersion SWIFT_WARN_UNUSED_RESULT;
362-
/// Create an inRead ad placement to request inRead ads
373+
/// Create an inRead ad placement to request inRead ads
374+
/// important:
375+
/// You must own/retain <code>TeadsInReadAdPlacement</code> instance, otherwise ads could not be delivered properly: you can free placement instance on <code>TeadsInReadAdPlacementDelegate/didReceiveAd(ad:adRatio:)</code> or <code>TeadsAdPlacementDelegate/didFailToReceiveAd(reason:)</code>
363376
/// note:
364377
/// See <a href="https://support.teads.tv/support/solutions/articles/36000314722-inread-classic-integration">InRead implementation guide</a> documentation
365-
/// \param pid Your Teads placement identifier for inRead ads
378+
/// \param pid Your Teads placement identifier for <em>inRead</em> ads
366379
///
367380
/// \param settings The placement’s related settings you want to apply
368381
///
369382
/// \param delegate TeadsInReadAdPlacementDelegate to follow ad placement lifecycle
370383
///
384+
///
385+
/// returns:
386+
/// TeadsInReadAdPlacement instance, this instance must be owned/retained
371387
+ (TeadsInReadAdPlacement * _Nullable)createInReadPlacementWithPid:(NSInteger)pid settings:(TeadsAdPlacementSettings * _Nonnull)settings delegate:(id <TeadsInReadAdPlacementDelegate> _Nullable)delegate SWIFT_WARN_UNUSED_RESULT;
372388
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
373389
@end
@@ -653,6 +669,9 @@ SWIFT_CLASS("_TtC8TeadsSDK11TeadsAdView")
653669

654670
SWIFT_CLASS("_TtC8TeadsSDK20TeadsAdapterSettings")
655671
@interface TeadsAdapterSettings : NSObject
672+
/// A value describing the native ad media scale that is being used.
673+
/// This is only relevant for native ad.
674+
@property (nonatomic, readonly) enum MediaScale mediaScale;
656675
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
657676
/// Instance settings builder
658677
/// \param build closure to tune settings
@@ -721,6 +740,12 @@ SWIFT_CLASS("_TtC8TeadsSDK20TeadsAdapterSettings")
721740
/// \param urlString The content related page URL.
722741
///
723742
- (void)pageUrl:(NSString * _Nonnull)urlString;
743+
/// Set the native media view scale.
744+
/// important:
745+
/// This setting only apply for native ads.
746+
/// \param mediaScale The media scale.
747+
///
748+
- (void)setMediaScale:(enum MediaScale)mediaScale;
724749
- (BOOL)subscribeAdResizeDelegate:(id <TeadsMediatedAdViewDelegate> _Nonnull)delegate forAdView:(UIView * _Nonnull)adView error:(NSError * _Nullable * _Nullable)error SWIFT_DEPRECATED_MSG("", "registerAdView:delegate:error:");
725750
/// Register the ad view in case of mediation adapter.
726751
/// In order to perform ad resizing you need to register AdView with a <code>delegate</code>
@@ -773,6 +798,10 @@ SWIFT_CLASS("_TtC8TeadsSDK13TeadsInReadAd")
773798
/// InRead ad placement to request inRead ads
774799
/// This object is reponsible for performing request and is tied to you PID (placement identifier)
775800
/// In order to create placement, call <code>Teads/createInReadPlacement(pid:settings:delegate:)</code>
801+
/// important:
802+
/// You must own/retain <code>TeadsInReadAdPlacement</code> instance, otherwise ads could not be delivered properly
803+
/// note:
804+
/// See <a href="https://support.teads.tv/support/solutions/articles/36000314722-inread-classic-integration">InRead implementation guide</a> documentation
776805
SWIFT_CLASS("_TtC8TeadsSDK22TeadsInReadAdPlacement")
777806
@interface TeadsInReadAdPlacement : TeadsAdPlacement
778807
/// TeadsInReadAdPlacementDelegate to follow ad placement lifecycle
@@ -942,6 +971,10 @@ SWIFT_CLASS("_TtC8TeadsSDK13TeadsNativeAd")
942971
/// Native ad placement to request native ads
943972
/// This object is reponsible for performing request and is tied to you PID (placement identifier)
944973
/// In order to create placement, call <code>Teads/createNativePlacement(pid:settings:delegate:)</code>
974+
/// important:
975+
/// You must own/retain <code>TeadsNativeAdPlacement</code> instance, otherwise ads could not be delivered properly
976+
/// note:
977+
/// See <a href="https://support.teads.tv/support/solutions/articles/36000314757-native-ad-classic-integration">Native implementation guide</a> documentation
945978
SWIFT_CLASS("_TtC8TeadsSDK22TeadsNativeAdPlacement")
946979
@interface TeadsNativeAdPlacement : TeadsAdPlacement
947980
/// TeadsInReadAdPlacementDelegate to follow ad placement lifecycle
@@ -1422,6 +1455,15 @@ SWIFT_CLASS("_TtC8TeadsSDK14ImageComponent")
14221455
- (void)loadImageWithAsync:(BOOL)async success:(void (^ _Nullable)(UIImage * _Nonnull))success failure:(void (^ _Nullable)(NSError * _Nonnull))failure;
14231456
@end
14241457

1458+
typedef SWIFT_ENUM(NSInteger, MediaScale, open) {
1459+
/// Contents scaled to fill with fixed aspect. some portion of content may be clipped.
1460+
/// Behaviour is similar to <code>UIView.ContentMode.scaleToFill</code>.
1461+
MediaScaleScaleAspectFill = 0,
1462+
/// Contents scaled to fit with fixed aspect. remainder is transparent.
1463+
/// Behaviour is similar to <code>UIView.ContentMode.scaleAspectFit</code>.
1464+
MediaScaleScaleAspectFit = 1,
1465+
};
1466+
14251467

14261468

14271469

@@ -1456,17 +1498,24 @@ SWIFT_CLASS("_TtC8TeadsSDK5Teads")
14561498
@interface Teads : NSObject
14571499
/// Current Teads SDK Version value
14581500
/// Value is <a href="https://semver.org/">semver</a> format compliant
1501+
/// note:
1502+
/// This value does not rely anymore on <code>CFBundleShortVersionString</code> plist value since Xcode auto update all versions declared in plists with app bundle version value during archive process
14591503
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull sdkVersion;)
14601504
+ (NSString * _Nonnull)sdkVersion SWIFT_WARN_UNUSED_RESULT;
1461-
/// Create an inRead ad placement to request inRead ads
1505+
/// Create an inRead ad placement to request inRead ads
1506+
/// important:
1507+
/// You must own/retain <code>TeadsInReadAdPlacement</code> instance, otherwise ads could not be delivered properly: you can free placement instance on <code>TeadsInReadAdPlacementDelegate/didReceiveAd(ad:adRatio:)</code> or <code>TeadsAdPlacementDelegate/didFailToReceiveAd(reason:)</code>
14621508
/// note:
14631509
/// See <a href="https://support.teads.tv/support/solutions/articles/36000314722-inread-classic-integration">InRead implementation guide</a> documentation
1464-
/// \param pid Your Teads placement identifier for inRead ads
1510+
/// \param pid Your Teads placement identifier for <em>inRead</em> ads
14651511
///
14661512
/// \param settings The placement’s related settings you want to apply
14671513
///
14681514
/// \param delegate TeadsInReadAdPlacementDelegate to follow ad placement lifecycle
14691515
///
1516+
///
1517+
/// returns:
1518+
/// TeadsInReadAdPlacement instance, this instance must be owned/retained
14701519
+ (TeadsInReadAdPlacement * _Nullable)createInReadPlacementWithPid:(NSInteger)pid settings:(TeadsAdPlacementSettings * _Nonnull)settings delegate:(id <TeadsInReadAdPlacementDelegate> _Nullable)delegate SWIFT_WARN_UNUSED_RESULT;
14711520
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
14721521
@end
@@ -1752,6 +1801,9 @@ SWIFT_CLASS("_TtC8TeadsSDK11TeadsAdView")
17521801

17531802
SWIFT_CLASS("_TtC8TeadsSDK20TeadsAdapterSettings")
17541803
@interface TeadsAdapterSettings : NSObject
1804+
/// A value describing the native ad media scale that is being used.
1805+
/// This is only relevant for native ad.
1806+
@property (nonatomic, readonly) enum MediaScale mediaScale;
17551807
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
17561808
/// Instance settings builder
17571809
/// \param build closure to tune settings
@@ -1820,6 +1872,12 @@ SWIFT_CLASS("_TtC8TeadsSDK20TeadsAdapterSettings")
18201872
/// \param urlString The content related page URL.
18211873
///
18221874
- (void)pageUrl:(NSString * _Nonnull)urlString;
1875+
/// Set the native media view scale.
1876+
/// important:
1877+
/// This setting only apply for native ads.
1878+
/// \param mediaScale The media scale.
1879+
///
1880+
- (void)setMediaScale:(enum MediaScale)mediaScale;
18231881
- (BOOL)subscribeAdResizeDelegate:(id <TeadsMediatedAdViewDelegate> _Nonnull)delegate forAdView:(UIView * _Nonnull)adView error:(NSError * _Nullable * _Nullable)error SWIFT_DEPRECATED_MSG("", "registerAdView:delegate:error:");
18241882
/// Register the ad view in case of mediation adapter.
18251883
/// In order to perform ad resizing you need to register AdView with a <code>delegate</code>
@@ -1872,6 +1930,10 @@ SWIFT_CLASS("_TtC8TeadsSDK13TeadsInReadAd")
18721930
/// InRead ad placement to request inRead ads
18731931
/// This object is reponsible for performing request and is tied to you PID (placement identifier)
18741932
/// In order to create placement, call <code>Teads/createInReadPlacement(pid:settings:delegate:)</code>
1933+
/// important:
1934+
/// You must own/retain <code>TeadsInReadAdPlacement</code> instance, otherwise ads could not be delivered properly
1935+
/// note:
1936+
/// See <a href="https://support.teads.tv/support/solutions/articles/36000314722-inread-classic-integration">InRead implementation guide</a> documentation
18751937
SWIFT_CLASS("_TtC8TeadsSDK22TeadsInReadAdPlacement")
18761938
@interface TeadsInReadAdPlacement : TeadsAdPlacement
18771939
/// TeadsInReadAdPlacementDelegate to follow ad placement lifecycle
@@ -2041,6 +2103,10 @@ SWIFT_CLASS("_TtC8TeadsSDK13TeadsNativeAd")
20412103
/// Native ad placement to request native ads
20422104
/// This object is reponsible for performing request and is tied to you PID (placement identifier)
20432105
/// In order to create placement, call <code>Teads/createNativePlacement(pid:settings:delegate:)</code>
2106+
/// important:
2107+
/// You must own/retain <code>TeadsNativeAdPlacement</code> instance, otherwise ads could not be delivered properly
2108+
/// note:
2109+
/// See <a href="https://support.teads.tv/support/solutions/articles/36000314757-native-ad-classic-integration">Native implementation guide</a> documentation
20442110
SWIFT_CLASS("_TtC8TeadsSDK22TeadsNativeAdPlacement")
20452111
@interface TeadsNativeAdPlacement : TeadsAdPlacement
20462112
/// TeadsInReadAdPlacementDelegate to follow ad placement lifecycle
0 Bytes
Binary file not shown.
3.05 KB
Binary file not shown.

Frameworks/TeadsSDK.xcframework/ios-arm64_armv7/TeadsSDK.framework/Modules/TeadsSDK.swiftmodule/arm.swiftinterface

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ internal protocol AnyEncodableProtocol {
6565
final public var adPlacementSettings: TeadsSDK.TeadsAdPlacementSettings {
6666
get
6767
}
68+
@objc final public var mediaScale: TeadsSDK.MediaScale {
69+
@objc get
70+
}
6871
public typealias BuildTeadsAdapterSettings = (TeadsSDK.TeadsAdapterSettings) -> Swift.Void
6972
required public init(from decoder: Swift.Decoder) throws
7073
@objc override dynamic public init()
@@ -84,6 +87,7 @@ internal protocol AnyEncodableProtocol {
8487
@objc final public func enableDebug()
8588
@objc final public func enableValidationMode()
8689
@objc final public func pageUrl(_ urlString: Swift.String)
90+
@objc final public func setMediaScale(_ mediaScale: TeadsSDK.MediaScale)
8791
@available(*, deprecated, renamed: "registerAdView(_:delegate:)")
8892
@objc final public func subscribeAdResizeDelegate(_ delegate: TeadsSDK.TeadsMediatedAdViewDelegate, forAdView adView: UIKit.UIView) throws
8993
@objc final public func registerAdView(_ adView: UIKit.UIView, delegate: TeadsSDK.TeadsMediatedAdViewDelegate?) throws
@@ -107,8 +111,21 @@ extension TeadsSDK.Teads {
107111
extension UIKit.UILabel {
108112
@_Concurrency.MainActor(unsafe) @objc override dynamic public func bind(component: TeadsSDK.CommonComponent?)
109113
}
114+
@objc public enum MediaScale : Swift.Int, Swift.Codable {
115+
case scaleAspectFill = 0
116+
case scaleAspectFit = 1
117+
public init?(rawValue: Swift.Int)
118+
public typealias RawValue = Swift.Int
119+
public var rawValue: Swift.Int {
120+
get
121+
}
122+
}
110123
@objc @_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @_Concurrency.MainActor(unsafe) final public class TeadsMediaView : UIKit.UIView {
111124
@_Concurrency.MainActor(unsafe) final public var placeholderImage: UIKit.UIImage?
125+
@_Concurrency.MainActor(unsafe) final public var mediaScale: TeadsSDK.MediaScale {
126+
get
127+
set
128+
}
112129
@objc @_Concurrency.MainActor(unsafe) public init(videoComponent: TeadsSDK.VideoComponent)
113130
@_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreGraphics.CGRect)
114131
@_Concurrency.MainActor(unsafe) @objc override final public func layoutSubviews()
@@ -173,15 +190,15 @@ internal protocol AnyDecodableProtocol {
173190
@_Concurrency.MainActor(unsafe) @objc override final public func removeFromSuperview()
174191
@objc deinit
175192
}
176-
@_inheritsConvenienceInitializers @objc final public class TeadsAdRequestSettings : ObjectiveC.NSObject, Swift.Codable {
177-
@objc final public func enableValidationMode()
178-
@objc final public func pageUrl(_ rawUrlString: Swift.String)
179-
@objc final public func addExtras(_ value: Swift.String, for key: Swift.String)
193+
@_inheritsConvenienceInitializers @objc public class TeadsAdRequestSettings : ObjectiveC.NSObject, Swift.Codable {
194+
@objc public func enableValidationMode()
195+
@objc public func pageUrl(_ rawUrlString: Swift.String)
196+
@objc public func addExtras(_ value: Swift.String, for key: Swift.String)
180197
public typealias BuildTeadsAdRequestSettings = (TeadsSDK.TeadsAdRequestSettings) -> Swift.Void
181198
@objc public init(build: (TeadsSDK.TeadsAdRequestSettings) -> Swift.Void)
182199
@objc override dynamic public init()
183200
required public init(from decoder: Swift.Decoder) throws
184-
final public func encode(to encoder: Swift.Encoder) throws
201+
public func encode(to encoder: Swift.Encoder) throws
185202
@objc deinit
186203
}
187204
public typealias TeadsNativeAdRequestSettings = TeadsSDK.TeadsAdRequestSettings
@@ -376,6 +393,9 @@ extension TeadsSDK.AdFailReason : Foundation.CustomNSError {
376393
get
377394
}
378395
}
396+
extension TeadsSDK.MediaScale : Swift.Equatable {}
397+
extension TeadsSDK.MediaScale : Swift.Hashable {}
398+
extension TeadsSDK.MediaScale : Swift.RawRepresentable {}
379399
extension TeadsSDK.TCFVersion : Swift.Equatable {}
380400
extension TeadsSDK.TCFVersion : Swift.Hashable {}
381401
extension TeadsSDK.TCFVersion : Swift.RawRepresentable {}
3.05 KB
Binary file not shown.

Frameworks/TeadsSDK.xcframework/ios-arm64_armv7/TeadsSDK.framework/Modules/TeadsSDK.swiftmodule/arm64-apple-ios.swiftinterface

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ internal protocol AnyEncodableProtocol {
6565
final public var adPlacementSettings: TeadsSDK.TeadsAdPlacementSettings {
6666
get
6767
}
68+
@objc final public var mediaScale: TeadsSDK.MediaScale {
69+
@objc get
70+
}
6871
public typealias BuildTeadsAdapterSettings = (TeadsSDK.TeadsAdapterSettings) -> Swift.Void
6972
required public init(from decoder: Swift.Decoder) throws
7073
@objc override dynamic public init()
@@ -84,6 +87,7 @@ internal protocol AnyEncodableProtocol {
8487
@objc final public func enableDebug()
8588
@objc final public func enableValidationMode()
8689
@objc final public func pageUrl(_ urlString: Swift.String)
90+
@objc final public func setMediaScale(_ mediaScale: TeadsSDK.MediaScale)
8791
@available(*, deprecated, renamed: "registerAdView(_:delegate:)")
8892
@objc final public func subscribeAdResizeDelegate(_ delegate: TeadsSDK.TeadsMediatedAdViewDelegate, forAdView adView: UIKit.UIView) throws
8993
@objc final public func registerAdView(_ adView: UIKit.UIView, delegate: TeadsSDK.TeadsMediatedAdViewDelegate?) throws
@@ -107,8 +111,21 @@ extension TeadsSDK.Teads {
107111
extension UIKit.UILabel {
108112
@_Concurrency.MainActor(unsafe) @objc override dynamic public func bind(component: TeadsSDK.CommonComponent?)
109113
}
114+
@objc public enum MediaScale : Swift.Int, Swift.Codable {
115+
case scaleAspectFill = 0
116+
case scaleAspectFit = 1
117+
public init?(rawValue: Swift.Int)
118+
public typealias RawValue = Swift.Int
119+
public var rawValue: Swift.Int {
120+
get
121+
}
122+
}
110123
@objc @_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @_Concurrency.MainActor(unsafe) final public class TeadsMediaView : UIKit.UIView {
111124
@_Concurrency.MainActor(unsafe) final public var placeholderImage: UIKit.UIImage?
125+
@_Concurrency.MainActor(unsafe) final public var mediaScale: TeadsSDK.MediaScale {
126+
get
127+
set
128+
}
112129
@objc @_Concurrency.MainActor(unsafe) public init(videoComponent: TeadsSDK.VideoComponent)
113130
@_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreGraphics.CGRect)
114131
@_Concurrency.MainActor(unsafe) @objc override final public func layoutSubviews()
@@ -173,15 +190,15 @@ internal protocol AnyDecodableProtocol {
173190
@_Concurrency.MainActor(unsafe) @objc override final public func removeFromSuperview()
174191
@objc deinit
175192
}
176-
@_inheritsConvenienceInitializers @objc final public class TeadsAdRequestSettings : ObjectiveC.NSObject, Swift.Codable {
177-
@objc final public func enableValidationMode()
178-
@objc final public func pageUrl(_ rawUrlString: Swift.String)
179-
@objc final public func addExtras(_ value: Swift.String, for key: Swift.String)
193+
@_inheritsConvenienceInitializers @objc public class TeadsAdRequestSettings : ObjectiveC.NSObject, Swift.Codable {
194+
@objc public func enableValidationMode()
195+
@objc public func pageUrl(_ rawUrlString: Swift.String)
196+
@objc public func addExtras(_ value: Swift.String, for key: Swift.String)
180197
public typealias BuildTeadsAdRequestSettings = (TeadsSDK.TeadsAdRequestSettings) -> Swift.Void
181198
@objc public init(build: (TeadsSDK.TeadsAdRequestSettings) -> Swift.Void)
182199
@objc override dynamic public init()
183200
required public init(from decoder: Swift.Decoder) throws
184-
final public func encode(to encoder: Swift.Encoder) throws
201+
public func encode(to encoder: Swift.Encoder) throws
185202
@objc deinit
186203
}
187204
public typealias TeadsNativeAdRequestSettings = TeadsSDK.TeadsAdRequestSettings
@@ -376,6 +393,9 @@ extension TeadsSDK.AdFailReason : Foundation.CustomNSError {
376393
get
377394
}
378395
}
396+
extension TeadsSDK.MediaScale : Swift.Equatable {}
397+
extension TeadsSDK.MediaScale : Swift.Hashable {}
398+
extension TeadsSDK.MediaScale : Swift.RawRepresentable {}
379399
extension TeadsSDK.TCFVersion : Swift.Equatable {}
380400
extension TeadsSDK.TCFVersion : Swift.Hashable {}
381401
extension TeadsSDK.TCFVersion : Swift.RawRepresentable {}
3.05 KB
Binary file not shown.

0 commit comments

Comments
 (0)