Skip to content

Commit 796d3b5

Browse files
author
J. Doe (https://devcenter.bitrise.io/builds/setting-your-git-credentials-on-build-machines/)
committed
Release 4.7.5
1 parent 8c1c7a7 commit 796d3b5

37 files changed

+738
-412
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
# Changelog
22

3+
### v4.7.5
4+
_2020-07-23_
5+
- add method to resize view in mediation
6+
37
### v4.7.4
48
_2020-07-17_
59
- fix issue https://github.com/teads/TeadsSDK-iOS/issues/124
6-
- `TFAAdDelegate.didUpdateRatio` becomes [mandatory](https://support.teads.tv/support/solutions/articles/36000165919-standard-integration-ios#ad_resizing)
710

811
### v4.7.3
912
_2020-06-29_

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Teads SDK is currently distributed through CocoaPods. It include everything you
1515

1616
```
1717
target 'YourProject' do
18-
pod 'TeadsSDK', '4.7.4'
18+
pod 'TeadsSDK', '4.7.5'
1919
end
2020
```
2121

@@ -30,7 +30,7 @@ $ pod install --repo-update
3030
[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. To integrate TeadsSDK into your Xcode project using Carthage, specify it in your `Cartfile`:
3131

3232
```ogdl
33-
github "teads/TeadsSDK-iOS" "4.7.4"
33+
github "teads/TeadsSDK-iOS" "4.7.5"
3434
```
3535

3636
## Integration Documentation

TeadsSDK.framework/09EA9FCB-E94C-3756-9722-F371382E91A3.bcsymbolmap renamed to TeadsSDK.framework/0F0A3449-74BD-3C52-8D9E-0BEAF197B31D.bcsymbolmap

Lines changed: 305 additions & 204 deletions
Large diffs are not rendered by default.

TeadsSDK.framework/2B3CBB8F-9B5E-338C-AFA8-40A17B8FC657.bcsymbolmap renamed to TeadsSDK.framework/5885C6A3-F127-3636-AF71-2FB832B73D88.bcsymbolmap

Lines changed: 284 additions & 186 deletions
Large diffs are not rendered by default.

TeadsSDK.framework/Headers/TeadsSDK-Swift.h

Lines changed: 96 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,17 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK25TFAInterstitialAdDelegate_")
467467
@end
468468

469469

470+
SWIFT_PROTOCOL("_TtP8TeadsSDK25TFAMediatedAdViewDelegate_")
471+
@protocol TFAMediatedAdViewDelegate
472+
/// Called when the ad ratio is udpated.
473+
/// \param adView The adView in which the ad is being played.
474+
///
475+
/// \param ratio The ratio you should use to update your adView height.
476+
///
477+
- (void)didUpdateRatio:(UIView * _Nonnull)adView ratio:(CGFloat)ratio;
478+
@end
479+
480+
470481
SWIFT_CLASS("_TtC8TeadsSDK9TFAReward")
471482
@interface TFAReward : NSObject
472483
@property (nonatomic, copy) NSString * _Nullable type;
@@ -624,6 +635,17 @@ SWIFT_CLASS("_TtC8TeadsSDK15TeadsAdSettings")
624635
- (void)setUsPrivacyWithConsent:(NSString * _Nonnull)consent;
625636
/// Prevent to automatically set UIDevice.current.isBatteryMonitoringEnabled
626637
- (void)disableBatteryMonitoring;
638+
/// Subscribe a delegate class which will be in charge of resizing your ad size.
639+
/// warning:
640+
/// To be used only in case your ads are running through mediation !
641+
/// \param delegate The class conforming to TFAMediatedAdViewDelegate where adView resizing will be done.
642+
///
643+
/// \param adView Your mediated ad view which contains your ad.
644+
///
645+
///
646+
/// throws:
647+
/// Error if given adView is not resizable.
648+
- (BOOL)subscribeAdResizeDelegate:(id <TFAMediatedAdViewDelegate> _Nonnull)delegate forAdView:(UIView * _Nonnull)adView error:(NSError * _Nullable * _Nullable)error;
627649
/// Add extra informations to settings
628650
/// \param value extra value
629651
///
@@ -771,8 +793,6 @@ SWIFT_CLASS("_TtC8TeadsSDK16TeadsNativeAsset")
771793

772794

773795

774-
775-
776796
@interface UIImage (SWIFT_EXTENSION(TeadsSDK))
777797
+ (void)loadSyncWithUrl:(NSString * _Nonnull)url callback:(void (^ _Nonnull)(UIImage * _Nonnull))callback;
778798
@end
@@ -793,6 +813,8 @@ SWIFT_CLASS("_TtC8TeadsSDK16TeadsNativeAsset")
793813

794814

795815

816+
817+
796818
#if __has_attribute(external_source_symbol)
797819
# pragma clang attribute pop
798820
#endif
@@ -1262,6 +1284,17 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK25TFAInterstitialAdDelegate_")
12621284
@end
12631285

12641286

1287+
SWIFT_PROTOCOL("_TtP8TeadsSDK25TFAMediatedAdViewDelegate_")
1288+
@protocol TFAMediatedAdViewDelegate
1289+
/// Called when the ad ratio is udpated.
1290+
/// \param adView The adView in which the ad is being played.
1291+
///
1292+
/// \param ratio The ratio you should use to update your adView height.
1293+
///
1294+
- (void)didUpdateRatio:(UIView * _Nonnull)adView ratio:(CGFloat)ratio;
1295+
@end
1296+
1297+
12651298
SWIFT_CLASS("_TtC8TeadsSDK9TFAReward")
12661299
@interface TFAReward : NSObject
12671300
@property (nonatomic, copy) NSString * _Nullable type;
@@ -1419,6 +1452,17 @@ SWIFT_CLASS("_TtC8TeadsSDK15TeadsAdSettings")
14191452
- (void)setUsPrivacyWithConsent:(NSString * _Nonnull)consent;
14201453
/// Prevent to automatically set UIDevice.current.isBatteryMonitoringEnabled
14211454
- (void)disableBatteryMonitoring;
1455+
/// Subscribe a delegate class which will be in charge of resizing your ad size.
1456+
/// warning:
1457+
/// To be used only in case your ads are running through mediation !
1458+
/// \param delegate The class conforming to TFAMediatedAdViewDelegate where adView resizing will be done.
1459+
///
1460+
/// \param adView Your mediated ad view which contains your ad.
1461+
///
1462+
///
1463+
/// throws:
1464+
/// Error if given adView is not resizable.
1465+
- (BOOL)subscribeAdResizeDelegate:(id <TFAMediatedAdViewDelegate> _Nonnull)delegate forAdView:(UIView * _Nonnull)adView error:(NSError * _Nullable * _Nullable)error;
14221466
/// Add extra informations to settings
14231467
/// \param value extra value
14241468
///
@@ -1566,8 +1610,6 @@ SWIFT_CLASS("_TtC8TeadsSDK16TeadsNativeAsset")
15661610

15671611

15681612

1569-
1570-
15711613
@interface UIImage (SWIFT_EXTENSION(TeadsSDK))
15721614
+ (void)loadSyncWithUrl:(NSString * _Nonnull)url callback:(void (^ _Nonnull)(UIImage * _Nonnull))callback;
15731615
@end
@@ -1588,6 +1630,8 @@ SWIFT_CLASS("_TtC8TeadsSDK16TeadsNativeAsset")
15881630

15891631

15901632

1633+
1634+
15911635
#if __has_attribute(external_source_symbol)
15921636
# pragma clang attribute pop
15931637
#endif
@@ -2061,6 +2105,17 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK25TFAInterstitialAdDelegate_")
20612105
@end
20622106

20632107

2108+
SWIFT_PROTOCOL("_TtP8TeadsSDK25TFAMediatedAdViewDelegate_")
2109+
@protocol TFAMediatedAdViewDelegate
2110+
/// Called when the ad ratio is udpated.
2111+
/// \param adView The adView in which the ad is being played.
2112+
///
2113+
/// \param ratio The ratio you should use to update your adView height.
2114+
///
2115+
- (void)didUpdateRatio:(UIView * _Nonnull)adView ratio:(CGFloat)ratio;
2116+
@end
2117+
2118+
20642119
SWIFT_CLASS("_TtC8TeadsSDK9TFAReward")
20652120
@interface TFAReward : NSObject
20662121
@property (nonatomic, copy) NSString * _Nullable type;
@@ -2218,6 +2273,17 @@ SWIFT_CLASS("_TtC8TeadsSDK15TeadsAdSettings")
22182273
- (void)setUsPrivacyWithConsent:(NSString * _Nonnull)consent;
22192274
/// Prevent to automatically set UIDevice.current.isBatteryMonitoringEnabled
22202275
- (void)disableBatteryMonitoring;
2276+
/// Subscribe a delegate class which will be in charge of resizing your ad size.
2277+
/// warning:
2278+
/// To be used only in case your ads are running through mediation !
2279+
/// \param delegate The class conforming to TFAMediatedAdViewDelegate where adView resizing will be done.
2280+
///
2281+
/// \param adView Your mediated ad view which contains your ad.
2282+
///
2283+
///
2284+
/// throws:
2285+
/// Error if given adView is not resizable.
2286+
- (BOOL)subscribeAdResizeDelegate:(id <TFAMediatedAdViewDelegate> _Nonnull)delegate forAdView:(UIView * _Nonnull)adView error:(NSError * _Nullable * _Nullable)error;
22212287
/// Add extra informations to settings
22222288
/// \param value extra value
22232289
///
@@ -2365,8 +2431,6 @@ SWIFT_CLASS("_TtC8TeadsSDK16TeadsNativeAsset")
23652431

23662432

23672433

2368-
2369-
23702434
@interface UIImage (SWIFT_EXTENSION(TeadsSDK))
23712435
+ (void)loadSyncWithUrl:(NSString * _Nonnull)url callback:(void (^ _Nonnull)(UIImage * _Nonnull))callback;
23722436
@end
@@ -2387,6 +2451,8 @@ SWIFT_CLASS("_TtC8TeadsSDK16TeadsNativeAsset")
23872451

23882452

23892453

2454+
2455+
23902456
#if __has_attribute(external_source_symbol)
23912457
# pragma clang attribute pop
23922458
#endif
@@ -2856,6 +2922,17 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK25TFAInterstitialAdDelegate_")
28562922
@end
28572923

28582924

2925+
SWIFT_PROTOCOL("_TtP8TeadsSDK25TFAMediatedAdViewDelegate_")
2926+
@protocol TFAMediatedAdViewDelegate
2927+
/// Called when the ad ratio is udpated.
2928+
/// \param adView The adView in which the ad is being played.
2929+
///
2930+
/// \param ratio The ratio you should use to update your adView height.
2931+
///
2932+
- (void)didUpdateRatio:(UIView * _Nonnull)adView ratio:(CGFloat)ratio;
2933+
@end
2934+
2935+
28592936
SWIFT_CLASS("_TtC8TeadsSDK9TFAReward")
28602937
@interface TFAReward : NSObject
28612938
@property (nonatomic, copy) NSString * _Nullable type;
@@ -3013,6 +3090,17 @@ SWIFT_CLASS("_TtC8TeadsSDK15TeadsAdSettings")
30133090
- (void)setUsPrivacyWithConsent:(NSString * _Nonnull)consent;
30143091
/// Prevent to automatically set UIDevice.current.isBatteryMonitoringEnabled
30153092
- (void)disableBatteryMonitoring;
3093+
/// Subscribe a delegate class which will be in charge of resizing your ad size.
3094+
/// warning:
3095+
/// To be used only in case your ads are running through mediation !
3096+
/// \param delegate The class conforming to TFAMediatedAdViewDelegate where adView resizing will be done.
3097+
///
3098+
/// \param adView Your mediated ad view which contains your ad.
3099+
///
3100+
///
3101+
/// throws:
3102+
/// Error if given adView is not resizable.
3103+
- (BOOL)subscribeAdResizeDelegate:(id <TFAMediatedAdViewDelegate> _Nonnull)delegate forAdView:(UIView * _Nonnull)adView error:(NSError * _Nullable * _Nullable)error;
30163104
/// Add extra informations to settings
30173105
/// \param value extra value
30183106
///
@@ -3160,8 +3248,6 @@ SWIFT_CLASS("_TtC8TeadsSDK16TeadsNativeAsset")
31603248

31613249

31623250

3163-
3164-
31653251
@interface UIImage (SWIFT_EXTENSION(TeadsSDK))
31663252
+ (void)loadSyncWithUrl:(NSString * _Nonnull)url callback:(void (^ _Nonnull)(UIImage * _Nonnull))callback;
31673253
@end
@@ -3182,6 +3268,8 @@ SWIFT_CLASS("_TtC8TeadsSDK16TeadsNativeAsset")
31823268

31833269

31843270

3271+
3272+
31853273
#if __has_attribute(external_source_symbol)
31863274
# pragma clang attribute pop
31873275
#endif

TeadsSDK.framework/Info.plist

0 Bytes
Binary file not shown.
1.01 KB
Binary file not shown.

TeadsSDK.framework/Modules/TeadsSDK.swiftmodule/arm.swiftinterface

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,13 @@ extension TeadsMediaView {
4444
@objc public func userConsent(subjectToGDPR: Swift.String, consent: Swift.String, tcfVersion: TeadsSDK.TCFVersion = .v1, cmpSdkID: Swift.Int = 0)
4545
@objc public func setUsPrivacy(consent: Swift.String)
4646
@objc public func disableBatteryMonitoring()
47+
@objc public func subscribeAdResizeDelegate(_ delegate: TeadsSDK.TFAMediatedAdViewDelegate, forAdView adView: UIKit.UIView) throws
4748
@objc public func addExtras(_ value: Swift.String, for key: Swift.String)
4849
public typealias BuildTeadsAdSettings = (TeadsSDK.TeadsAdSettings) -> Swift.Void
4950
@objc public init(build: (TeadsSDK.TeadsAdSettings) -> Swift.Void)
5051
required public init(from decoder: Swift.Decoder) throws
51-
@objc deinit
5252
public func encode(to encoder: Swift.Encoder) throws
53+
@objc deinit
5354
}
5455
@objc extension TeadsAdSettings {
5556
@objc dynamic public func toDictionary() throws -> [Swift.AnyHashable : Any]
@@ -67,6 +68,9 @@ extension TeadsMediaView {
6768
public func encode(to encoder: Swift.Encoder) throws
6869
@objc deinit
6970
}
71+
@objc public protocol TFAMediatedAdViewDelegate : AnyObject {
72+
@objc func didUpdateRatio(_ adView: UIKit.UIView, ratio: CoreGraphics.CGFloat)
73+
}
7074
@objc public protocol TFASoundDelegate {
7175
@objc func adWillStartPlayingAudio(_ ad: TeadsSDK.TFAAdView)
7276
@objc func adDidStopPlayingAudio(_ ad: TeadsSDK.TFAAdView)
4.25 KB
Binary file not shown.
1.01 KB
Binary file not shown.

0 commit comments

Comments
 (0)