Skip to content

Commit 3421825

Browse files
committed
release 5.0.5
1 parent 43283a4 commit 3421825

36 files changed

+410
-160
lines changed

Frameworks/TeadsSDK.xcframework/Info.plist

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,32 @@
66
<array>
77
<dict>
88
<key>LibraryIdentifier</key>
9-
<string>ios-arm64_armv7</string>
9+
<string>ios-arm64_i386_x86_64-simulator</string>
1010
<key>LibraryPath</key>
1111
<string>TeadsSDK.framework</string>
1212
<key>SupportedArchitectures</key>
1313
<array>
1414
<string>arm64</string>
15-
<string>armv7</string>
15+
<string>i386</string>
16+
<string>x86_64</string>
1617
</array>
1718
<key>SupportedPlatform</key>
1819
<string>ios</string>
20+
<key>SupportedPlatformVariant</key>
21+
<string>simulator</string>
1922
</dict>
2023
<dict>
2124
<key>LibraryIdentifier</key>
22-
<string>ios-arm64_i386_x86_64-simulator</string>
25+
<string>ios-arm64_armv7</string>
2326
<key>LibraryPath</key>
2427
<string>TeadsSDK.framework</string>
2528
<key>SupportedArchitectures</key>
2629
<array>
2730
<string>arm64</string>
28-
<string>i386</string>
29-
<string>x86_64</string>
31+
<string>armv7</string>
3032
</array>
3133
<key>SupportedPlatform</key>
3234
<string>ios</string>
33-
<key>SupportedPlatformVariant</key>
34-
<string>simulator</string>
3535
</dict>
3636
</array>
3737
<key>CFBundlePackageType</key>
0 Bytes
Binary file not shown.

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

Lines changed: 62 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -307,12 +307,13 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _No
307307
@end
308308

309309
@protocol TeadsAdDelegate;
310-
@protocol TeadsSoundDelegate;
310+
@protocol TeadsPlaybackDelegate;
311311

312312
SWIFT_CLASS("_TtC8TeadsSDK7TeadsAd")
313313
@interface TeadsAd : NSObject
314314
@property (nonatomic, weak) id <TeadsAdDelegate> _Nullable delegate;
315-
@property (nonatomic, weak) id <TeadsSoundDelegate> _Nullable soundDelegate;
315+
@property (nonatomic, weak) id <TeadsPlaybackDelegate> _Nullable soundDelegate SWIFT_UNAVAILABLE_MSG("'soundDelegate' has been renamed to 'playbackDelegate': Use playbackDelegate instead");
316+
@property (nonatomic, weak) id <TeadsPlaybackDelegate> _Nullable playbackDelegate;
316317
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
317318
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
318319
@end
@@ -668,7 +669,34 @@ SWIFT_CLASS("_TtC8TeadsSDK17TeadsNativeAdView")
668669

669670

670671
///
671-
SWIFT_PROTOCOL("_TtP8TeadsSDK18TeadsSoundDelegate_")
672+
SWIFT_PROTOCOL("_TtP8TeadsSDK21TeadsPlaybackDelegate_")
673+
@protocol TeadsPlaybackDelegate
674+
@optional
675+
/// Called when the ad starts playing audio
676+
/// \param ad The teadsAd object
677+
///
678+
- (void)adStartPlayingAudio:(TeadsAd * _Nonnull)ad;
679+
/// Called when the ad stops playing audio
680+
/// \param ad The teadsAd object
681+
///
682+
- (void)adStopPlayingAudio:(TeadsAd * _Nonnull)ad;
683+
/// Called when the ad is paused
684+
/// \param ad The teadsAd object
685+
///
686+
- (void)didPause:(TeadsAd * _Nonnull)ad;
687+
/// Called when the ad starts or resumes
688+
/// \param ad The teadsAd object
689+
///
690+
- (void)didPlay:(TeadsAd * _Nonnull)ad;
691+
/// Called when the ad ended
692+
/// \param ad The teadsAd object
693+
///
694+
- (void)didComplete:(TeadsAd * _Nonnull)ad;
695+
@end
696+
697+
698+
///
699+
SWIFT_PROTOCOL("_TtP8TeadsSDK18TeadsSoundDelegate_") SWIFT_UNAVAILABLE_MSG("'TeadsSoundDelegate' has been renamed to '_TtP8TeadsSDK21TeadsPlaybackDelegate_': Use TeadsPlaybackDelegate instead")
672700
@protocol TeadsSoundDelegate
673701
/// Called when the ad starts playing audio
674702
/// \param ad The teadsAd object
@@ -1033,12 +1061,13 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _No
10331061
@end
10341062

10351063
@protocol TeadsAdDelegate;
1036-
@protocol TeadsSoundDelegate;
1064+
@protocol TeadsPlaybackDelegate;
10371065

10381066
SWIFT_CLASS("_TtC8TeadsSDK7TeadsAd")
10391067
@interface TeadsAd : NSObject
10401068
@property (nonatomic, weak) id <TeadsAdDelegate> _Nullable delegate;
1041-
@property (nonatomic, weak) id <TeadsSoundDelegate> _Nullable soundDelegate;
1069+
@property (nonatomic, weak) id <TeadsPlaybackDelegate> _Nullable soundDelegate SWIFT_UNAVAILABLE_MSG("'soundDelegate' has been renamed to 'playbackDelegate': Use playbackDelegate instead");
1070+
@property (nonatomic, weak) id <TeadsPlaybackDelegate> _Nullable playbackDelegate;
10421071
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
10431072
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
10441073
@end
@@ -1394,7 +1423,34 @@ SWIFT_CLASS("_TtC8TeadsSDK17TeadsNativeAdView")
13941423

13951424

13961425
///
1397-
SWIFT_PROTOCOL("_TtP8TeadsSDK18TeadsSoundDelegate_")
1426+
SWIFT_PROTOCOL("_TtP8TeadsSDK21TeadsPlaybackDelegate_")
1427+
@protocol TeadsPlaybackDelegate
1428+
@optional
1429+
/// Called when the ad starts playing audio
1430+
/// \param ad The teadsAd object
1431+
///
1432+
- (void)adStartPlayingAudio:(TeadsAd * _Nonnull)ad;
1433+
/// Called when the ad stops playing audio
1434+
/// \param ad The teadsAd object
1435+
///
1436+
- (void)adStopPlayingAudio:(TeadsAd * _Nonnull)ad;
1437+
/// Called when the ad is paused
1438+
/// \param ad The teadsAd object
1439+
///
1440+
- (void)didPause:(TeadsAd * _Nonnull)ad;
1441+
/// Called when the ad starts or resumes
1442+
/// \param ad The teadsAd object
1443+
///
1444+
- (void)didPlay:(TeadsAd * _Nonnull)ad;
1445+
/// Called when the ad ended
1446+
/// \param ad The teadsAd object
1447+
///
1448+
- (void)didComplete:(TeadsAd * _Nonnull)ad;
1449+
@end
1450+
1451+
1452+
///
1453+
SWIFT_PROTOCOL("_TtP8TeadsSDK18TeadsSoundDelegate_") SWIFT_UNAVAILABLE_MSG("'TeadsSoundDelegate' has been renamed to '_TtP8TeadsSDK21TeadsPlaybackDelegate_': Use TeadsPlaybackDelegate instead")
13981454
@protocol TeadsSoundDelegate
13991455
/// Called when the ad starts playing audio
14001456
/// \param ad The teadsAd object
0 Bytes
Binary file not shown.
1.27 KB
Binary file not shown.

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,14 @@ extension TeadsInReadAd {
268268
@objc optional func didExpandedToFullscreen(ad: TeadsSDK.TeadsAd)
269269
@objc optional func didCollapsedFromFullscreen(ad: TeadsSDK.TeadsAd)
270270
}
271+
@objc public protocol TeadsPlaybackDelegate {
272+
@objc optional func adStartPlayingAudio(_ ad: TeadsSDK.TeadsAd)
273+
@objc optional func adStopPlayingAudio(_ ad: TeadsSDK.TeadsAd)
274+
@objc optional func didPause(_ ad: TeadsSDK.TeadsAd)
275+
@objc optional func didPlay(_ ad: TeadsSDK.TeadsAd)
276+
@objc optional func didComplete(_ ad: TeadsSDK.TeadsAd)
277+
}
278+
@available(*, unavailable, renamed: "TeadsPlaybackDelegate", message: "Use TeadsPlaybackDelegate instead")
271279
@objc public protocol TeadsSoundDelegate {
272280
@objc func adStartPlayingAudio(_ ad: TeadsSDK.TeadsAd)
273281
@objc func adStopPlayingAudio(_ ad: TeadsSDK.TeadsAd)
@@ -277,7 +285,9 @@ extension TeadsInReadAd {
277285
@objc get
278286
@objc set
279287
}
280-
@objc weak public var soundDelegate: TeadsSDK.TeadsSoundDelegate? {
288+
@available(*, unavailable, renamed: "playbackDelegate", message: "Use playbackDelegate instead")
289+
@objc weak public var soundDelegate: TeadsSDK.TeadsPlaybackDelegate?
290+
@objc weak public var playbackDelegate: TeadsSDK.TeadsPlaybackDelegate? {
281291
@objc get
282292
@objc set
283293
}
1.27 KB
Binary file not shown.

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

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ public struct TeadsInReadAdViewRenderer : SwiftUI.UIViewRepresentable, SwiftUI.V
266266
public func makeUIView(context: TeadsSDK.TeadsInReadAdViewRenderer.Context) -> TeadsSDK.TeadsInReadAdView
267267
public func updateUIView(_ uiView: TeadsSDK.TeadsInReadAdView, context: TeadsSDK.TeadsInReadAdViewRenderer.Context)
268268
public func makeCoordinator() -> TeadsSDK.TeadsInReadAdViewRenderer.Coordinator
269-
@_hasMissingDesignatedInitializers public class Coordinator : TeadsSDK.TeadsInReadAdPlacementDelegate, TeadsSDK.TeadsAdDelegate, TeadsSDK.TeadsSoundDelegate {
269+
@_hasMissingDesignatedInitializers public class Coordinator : TeadsSDK.TeadsInReadAdPlacementDelegate, TeadsSDK.TeadsAdDelegate, TeadsSDK.TeadsPlaybackDelegate {
270270
@objc public func didReceiveAd(ad: TeadsSDK.TeadsInReadAd, adRatio: TeadsSDK.TeadsAdRatio)
271271
@objc public func didFailToReceiveAd(reason: TeadsSDK.AdFailReason)
272272
@objc public func adOpportunityTrackerView(trackerView: TeadsSDK.TeadsAdOpportunityTrackerView)
@@ -294,6 +294,14 @@ public struct TeadsInReadAdViewRenderer : SwiftUI.UIViewRepresentable, SwiftUI.V
294294
@objc optional func didExpandedToFullscreen(ad: TeadsSDK.TeadsAd)
295295
@objc optional func didCollapsedFromFullscreen(ad: TeadsSDK.TeadsAd)
296296
}
297+
@objc public protocol TeadsPlaybackDelegate {
298+
@objc optional func adStartPlayingAudio(_ ad: TeadsSDK.TeadsAd)
299+
@objc optional func adStopPlayingAudio(_ ad: TeadsSDK.TeadsAd)
300+
@objc optional func didPause(_ ad: TeadsSDK.TeadsAd)
301+
@objc optional func didPlay(_ ad: TeadsSDK.TeadsAd)
302+
@objc optional func didComplete(_ ad: TeadsSDK.TeadsAd)
303+
}
304+
@available(*, unavailable, renamed: "TeadsPlaybackDelegate", message: "Use TeadsPlaybackDelegate instead")
297305
@objc public protocol TeadsSoundDelegate {
298306
@objc func adStartPlayingAudio(_ ad: TeadsSDK.TeadsAd)
299307
@objc func adStopPlayingAudio(_ ad: TeadsSDK.TeadsAd)
@@ -303,7 +311,9 @@ public struct TeadsInReadAdViewRenderer : SwiftUI.UIViewRepresentable, SwiftUI.V
303311
@objc get
304312
@objc set
305313
}
306-
@objc weak public var soundDelegate: TeadsSDK.TeadsSoundDelegate? {
314+
@available(*, unavailable, renamed: "playbackDelegate", message: "Use playbackDelegate instead")
315+
@objc weak public var soundDelegate: TeadsSDK.TeadsPlaybackDelegate?
316+
@objc weak public var playbackDelegate: TeadsSDK.TeadsPlaybackDelegate? {
307317
@objc get
308318
@objc set
309319
}
1.27 KB
Binary file not shown.

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

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ public struct TeadsInReadAdViewRenderer : SwiftUI.UIViewRepresentable, SwiftUI.V
266266
public func makeUIView(context: TeadsSDK.TeadsInReadAdViewRenderer.Context) -> TeadsSDK.TeadsInReadAdView
267267
public func updateUIView(_ uiView: TeadsSDK.TeadsInReadAdView, context: TeadsSDK.TeadsInReadAdViewRenderer.Context)
268268
public func makeCoordinator() -> TeadsSDK.TeadsInReadAdViewRenderer.Coordinator
269-
@_hasMissingDesignatedInitializers public class Coordinator : TeadsSDK.TeadsInReadAdPlacementDelegate, TeadsSDK.TeadsAdDelegate, TeadsSDK.TeadsSoundDelegate {
269+
@_hasMissingDesignatedInitializers public class Coordinator : TeadsSDK.TeadsInReadAdPlacementDelegate, TeadsSDK.TeadsAdDelegate, TeadsSDK.TeadsPlaybackDelegate {
270270
@objc public func didReceiveAd(ad: TeadsSDK.TeadsInReadAd, adRatio: TeadsSDK.TeadsAdRatio)
271271
@objc public func didFailToReceiveAd(reason: TeadsSDK.AdFailReason)
272272
@objc public func adOpportunityTrackerView(trackerView: TeadsSDK.TeadsAdOpportunityTrackerView)
@@ -294,6 +294,14 @@ public struct TeadsInReadAdViewRenderer : SwiftUI.UIViewRepresentable, SwiftUI.V
294294
@objc optional func didExpandedToFullscreen(ad: TeadsSDK.TeadsAd)
295295
@objc optional func didCollapsedFromFullscreen(ad: TeadsSDK.TeadsAd)
296296
}
297+
@objc public protocol TeadsPlaybackDelegate {
298+
@objc optional func adStartPlayingAudio(_ ad: TeadsSDK.TeadsAd)
299+
@objc optional func adStopPlayingAudio(_ ad: TeadsSDK.TeadsAd)
300+
@objc optional func didPause(_ ad: TeadsSDK.TeadsAd)
301+
@objc optional func didPlay(_ ad: TeadsSDK.TeadsAd)
302+
@objc optional func didComplete(_ ad: TeadsSDK.TeadsAd)
303+
}
304+
@available(*, unavailable, renamed: "TeadsPlaybackDelegate", message: "Use TeadsPlaybackDelegate instead")
297305
@objc public protocol TeadsSoundDelegate {
298306
@objc func adStartPlayingAudio(_ ad: TeadsSDK.TeadsAd)
299307
@objc func adStopPlayingAudio(_ ad: TeadsSDK.TeadsAd)
@@ -303,7 +311,9 @@ public struct TeadsInReadAdViewRenderer : SwiftUI.UIViewRepresentable, SwiftUI.V
303311
@objc get
304312
@objc set
305313
}
306-
@objc weak public var soundDelegate: TeadsSDK.TeadsSoundDelegate? {
314+
@available(*, unavailable, renamed: "playbackDelegate", message: "Use playbackDelegate instead")
315+
@objc weak public var soundDelegate: TeadsSDK.TeadsPlaybackDelegate?
316+
@objc weak public var playbackDelegate: TeadsSDK.TeadsPlaybackDelegate? {
307317
@objc get
308318
@objc set
309319
}

0 commit comments

Comments
 (0)