-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Anka
authored and
Anka
committed
Jan 14, 2025
1 parent
b1194cc
commit 7bb337c
Showing
56 changed files
with
1,373 additions
and
316 deletions.
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
109 changes: 109 additions & 0 deletions
109
...dstv.xcframework/ios-arm64/OMSDK_Teadstv.framework/Headers/OMIDJavaScriptSessionService.h
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 |
---|---|---|
@@ -0,0 +1,109 @@ | ||
#include <TargetConditionals.h> | ||
#if !(TARGET_OS_TV) | ||
|
||
#import <UIKit/UIKit.h> | ||
#import <WebKit/WebKit.h> | ||
#import "OMIDFriendlyObstructionType.h" | ||
#import "OMIDPartner.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
/** | ||
* Service supporting ad sessions managed (started/finished) via JavaScript Session Client APIs | ||
* by providing native-layer measurement signals. | ||
* If the JS Session Client is running in a web view, an instance of this service must be | ||
* initialized with the web view before starting or finishing ad sessions using JS APIs. | ||
* Only one instance of this service may be initialized at a time for a given web view; to reuse a | ||
* web view the current instance must be torn down (see `tearDownWithCompletion`). | ||
*/ | ||
@interface OMIDTeadstvJavaScriptSessionService : NSObject <WKScriptMessageHandler> | ||
|
||
/** | ||
* Initializes an instance of the service. | ||
* | ||
* @param partner Details of the integration partner responsible for ad sessions. | ||
* @param webView The web view responsible for starting/finishing ad sessions via the JS Session | ||
* Client. | ||
* @param isHTMLAdView Whether the ad is rendered in HTML inside of the provided web view. | ||
* If true, all ad sessions will be of type "html" and calling `setAdView` is | ||
* not required. | ||
* If false, all ad sessions will be of type "javascript" and `setAdView` must | ||
* be called after initialization. | ||
*/ | ||
- (nullable instancetype)initWithPartner:(OMIDTeadstvPartner *)partner | ||
webView:(WKWebView *)webView | ||
isHTMLAdView:(BOOL)isHTMLAdView | ||
error:(NSError *_Nullable *_Nullable)error; | ||
|
||
/** | ||
* Tears down this instance of the service. | ||
* Calling this method will cause OM SDK to begin a teardown process including finishing all currently | ||
* active ad sessions measured by this service instance and tearing down communication with the OM | ||
* SDK's JavaScript layer running in the web view. | ||
* This may require up to one second, for example in order to allow verification scripts time to process | ||
* the `sessionFinish` event. | ||
* Once this process has completed, the web view may be torn down or reused for another instance of | ||
* the service without any adverse effects. If there is no need to tear down or reuse the web view, this | ||
* method is not required. | ||
* @param completionBlock Invoked by OM SDK after the teardown process has completed, | ||
* or one second, whichever comes sooner. | ||
*/ | ||
- (void)tearDownWithCompletion:(void (^)(BOOL success, NSError *_Nullable error))completionBlock; | ||
|
||
/** | ||
* The native view containing the ad. | ||
* This property is readonly and must be set using `setAdView`. | ||
* If `isHTMLAdView` was passed as true in `initWithPartner`, this will equal | ||
* the web view by default. | ||
*/ | ||
@property(readonly, nonatomic, weak) UIView *adView; | ||
|
||
/** | ||
* Sets the native view that contains the ad and is used for viewability tracking. | ||
* If `isHTMLAdView` was passed as true in `initWithPartner`, this method is | ||
* not required since the ad view will be set to the web view by default. | ||
* @param adView The native view. | ||
* @return Whether the ad view was successfully set. | ||
*/ | ||
- (BOOL)setAdView:(nullable UIView *)adView | ||
error:(NSError **)error; | ||
|
||
/** | ||
* Adds a friendly obstruction which should then be excluded from all ad session viewability | ||
* calculations. While this instance of OMIDJavaScriptSessionService is running, this friendly | ||
* obstruction will be added to each ad session started by the integrator via the JS Session Client | ||
* until the obstruction is removed by calling `removeFriendlyObstruction` or | ||
* `removeAllFriendlyObstructions`. | ||
* | ||
* @param friendlyObstruction The view to be excluded from all ad session viewability calculations. | ||
* @param purpose The purpose of why this obstruction was necessary. | ||
* @param detailedReason An explanation for why this obstruction is part of the ad experience if not | ||
* already obvious from the purpose. Can be nil. If not nil, must be 50 characters or less and only | ||
* contain characters `A-z`, `0-9`, or spaces. | ||
* @return Whether this friendly obstruction was successfully added. If the friendlyObstruction has | ||
* already been added for this session, this method will return NO with no associated error object. | ||
* However, if one or more arguments are against requirements, it will return NO with an error | ||
* object assigned. | ||
*/ | ||
- (BOOL)addFriendlyObstruction:(UIView *)friendlyObstruction | ||
purpose:(OMIDFriendlyObstructionType)purpose | ||
detailedReason:(nullable NSString *)detailedReason | ||
error:(NSError *_Nullable *_Nullable)error; | ||
|
||
/** | ||
* Removes a registered friendly obstruction from any currently running and future ad sessions | ||
* measured by this instance of OMIDJavaScriptSessionService. | ||
*/ | ||
- (void)removeFriendlyObstruction:(UIView *)friendlyObstruction; | ||
|
||
/** | ||
* Removes all registered friendly obstructions from any currently running and future ad sessions | ||
* measured by this instance of OMIDJavaScriptSessionService. | ||
*/ | ||
- (void)removeAllFriendlyObstructions; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END | ||
|
||
#endif |
Binary file modified
BIN
+0 Bytes
(100%)
Frameworks/OMSDK_Teadstv.xcframework/ios-arm64/OMSDK_Teadstv.framework/Info.plist
Binary file not shown.
Binary file modified
BIN
-935 KB
(23%)
Frameworks/OMSDK_Teadstv.xcframework/ios-arm64/OMSDK_Teadstv.framework/OMSDK_Teadstv
Binary file not shown.
42 changes: 42 additions & 0 deletions
42
Frameworks/OMSDK_Teadstv.xcframework/ios-arm64/OMSDK_Teadstv.framework/PrivacyInfo.xcprivacy
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<!-- | ||
PrivacyInfo.xcprivacy | ||
AppVerificationLibrary | ||
Created by Arun Sharma on 12/12/23. | ||
Copyright (c) 2023 IAB Techlab. All rights reserved. | ||
--> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>NSPrivacyCollectedDataTypes</key> | ||
<array> | ||
<dict> | ||
<key>NSPrivacyCollectedDataType</key> | ||
<string>NSPrivacyCollectedDataTypeProductInteraction</string> | ||
<key>NSPrivacyCollectedDataTypeLinked</key> | ||
<false/> | ||
<key>NSPrivacyCollectedDataTypeTracking</key> | ||
<false/> | ||
<key>NSPrivacyCollectedDataTypePurposes</key> | ||
<array> | ||
<string>NSPrivacyCollectedDataTypePurposeThirdPartyAdvertising</string> | ||
<string>NSPrivacyCollectedDataTypePurposeDeveloperAdvertising</string> | ||
</array> | ||
</dict> | ||
<dict> | ||
<key>NSPrivacyCollectedDataType</key> | ||
<string>NSPrivacyCollectedDataTypeAdvertisingData</string> | ||
<key>NSPrivacyCollectedDataTypeLinked</key> | ||
<false/> | ||
<key>NSPrivacyCollectedDataTypeTracking</key> | ||
<false/> | ||
<key>NSPrivacyCollectedDataTypePurposes</key> | ||
<array> | ||
<string>NSPrivacyCollectedDataTypePurposeThirdPartyAdvertising</string> | ||
<string>NSPrivacyCollectedDataTypePurposeDeveloperAdvertising</string> | ||
</array> | ||
</dict> | ||
</array> | ||
</dict> | ||
</plist> |
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
109 changes: 109 additions & 0 deletions
109
...ios-arm64_x86_64-simulator/OMSDK_Teadstv.framework/Headers/OMIDJavaScriptSessionService.h
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 |
---|---|---|
@@ -0,0 +1,109 @@ | ||
#include <TargetConditionals.h> | ||
#if !(TARGET_OS_TV) | ||
|
||
#import <UIKit/UIKit.h> | ||
#import <WebKit/WebKit.h> | ||
#import "OMIDFriendlyObstructionType.h" | ||
#import "OMIDPartner.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
/** | ||
* Service supporting ad sessions managed (started/finished) via JavaScript Session Client APIs | ||
* by providing native-layer measurement signals. | ||
* If the JS Session Client is running in a web view, an instance of this service must be | ||
* initialized with the web view before starting or finishing ad sessions using JS APIs. | ||
* Only one instance of this service may be initialized at a time for a given web view; to reuse a | ||
* web view the current instance must be torn down (see `tearDownWithCompletion`). | ||
*/ | ||
@interface OMIDTeadstvJavaScriptSessionService : NSObject <WKScriptMessageHandler> | ||
|
||
/** | ||
* Initializes an instance of the service. | ||
* | ||
* @param partner Details of the integration partner responsible for ad sessions. | ||
* @param webView The web view responsible for starting/finishing ad sessions via the JS Session | ||
* Client. | ||
* @param isHTMLAdView Whether the ad is rendered in HTML inside of the provided web view. | ||
* If true, all ad sessions will be of type "html" and calling `setAdView` is | ||
* not required. | ||
* If false, all ad sessions will be of type "javascript" and `setAdView` must | ||
* be called after initialization. | ||
*/ | ||
- (nullable instancetype)initWithPartner:(OMIDTeadstvPartner *)partner | ||
webView:(WKWebView *)webView | ||
isHTMLAdView:(BOOL)isHTMLAdView | ||
error:(NSError *_Nullable *_Nullable)error; | ||
|
||
/** | ||
* Tears down this instance of the service. | ||
* Calling this method will cause OM SDK to begin a teardown process including finishing all currently | ||
* active ad sessions measured by this service instance and tearing down communication with the OM | ||
* SDK's JavaScript layer running in the web view. | ||
* This may require up to one second, for example in order to allow verification scripts time to process | ||
* the `sessionFinish` event. | ||
* Once this process has completed, the web view may be torn down or reused for another instance of | ||
* the service without any adverse effects. If there is no need to tear down or reuse the web view, this | ||
* method is not required. | ||
* @param completionBlock Invoked by OM SDK after the teardown process has completed, | ||
* or one second, whichever comes sooner. | ||
*/ | ||
- (void)tearDownWithCompletion:(void (^)(BOOL success, NSError *_Nullable error))completionBlock; | ||
|
||
/** | ||
* The native view containing the ad. | ||
* This property is readonly and must be set using `setAdView`. | ||
* If `isHTMLAdView` was passed as true in `initWithPartner`, this will equal | ||
* the web view by default. | ||
*/ | ||
@property(readonly, nonatomic, weak) UIView *adView; | ||
|
||
/** | ||
* Sets the native view that contains the ad and is used for viewability tracking. | ||
* If `isHTMLAdView` was passed as true in `initWithPartner`, this method is | ||
* not required since the ad view will be set to the web view by default. | ||
* @param adView The native view. | ||
* @return Whether the ad view was successfully set. | ||
*/ | ||
- (BOOL)setAdView:(nullable UIView *)adView | ||
error:(NSError **)error; | ||
|
||
/** | ||
* Adds a friendly obstruction which should then be excluded from all ad session viewability | ||
* calculations. While this instance of OMIDJavaScriptSessionService is running, this friendly | ||
* obstruction will be added to each ad session started by the integrator via the JS Session Client | ||
* until the obstruction is removed by calling `removeFriendlyObstruction` or | ||
* `removeAllFriendlyObstructions`. | ||
* | ||
* @param friendlyObstruction The view to be excluded from all ad session viewability calculations. | ||
* @param purpose The purpose of why this obstruction was necessary. | ||
* @param detailedReason An explanation for why this obstruction is part of the ad experience if not | ||
* already obvious from the purpose. Can be nil. If not nil, must be 50 characters or less and only | ||
* contain characters `A-z`, `0-9`, or spaces. | ||
* @return Whether this friendly obstruction was successfully added. If the friendlyObstruction has | ||
* already been added for this session, this method will return NO with no associated error object. | ||
* However, if one or more arguments are against requirements, it will return NO with an error | ||
* object assigned. | ||
*/ | ||
- (BOOL)addFriendlyObstruction:(UIView *)friendlyObstruction | ||
purpose:(OMIDFriendlyObstructionType)purpose | ||
detailedReason:(nullable NSString *)detailedReason | ||
error:(NSError *_Nullable *_Nullable)error; | ||
|
||
/** | ||
* Removes a registered friendly obstruction from any currently running and future ad sessions | ||
* measured by this instance of OMIDJavaScriptSessionService. | ||
*/ | ||
- (void)removeFriendlyObstruction:(UIView *)friendlyObstruction; | ||
|
||
/** | ||
* Removes all registered friendly obstructions from any currently running and future ad sessions | ||
* measured by this instance of OMIDJavaScriptSessionService. | ||
*/ | ||
- (void)removeAllFriendlyObstructions; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END | ||
|
||
#endif |
Binary file modified
BIN
+0 Bytes
(100%)
...s/OMSDK_Teadstv.xcframework/ios-arm64_x86_64-simulator/OMSDK_Teadstv.framework/Info.plist
Binary file not shown.
Binary file modified
BIN
+73.5 KB
(110%)
...MSDK_Teadstv.xcframework/ios-arm64_x86_64-simulator/OMSDK_Teadstv.framework/OMSDK_Teadstv
Binary file not shown.
42 changes: 42 additions & 0 deletions
42
...dstv.xcframework/ios-arm64_x86_64-simulator/OMSDK_Teadstv.framework/PrivacyInfo.xcprivacy
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<!-- | ||
PrivacyInfo.xcprivacy | ||
AppVerificationLibrary | ||
Created by Arun Sharma on 12/12/23. | ||
Copyright (c) 2023 IAB Techlab. All rights reserved. | ||
--> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>NSPrivacyCollectedDataTypes</key> | ||
<array> | ||
<dict> | ||
<key>NSPrivacyCollectedDataType</key> | ||
<string>NSPrivacyCollectedDataTypeProductInteraction</string> | ||
<key>NSPrivacyCollectedDataTypeLinked</key> | ||
<false/> | ||
<key>NSPrivacyCollectedDataTypeTracking</key> | ||
<false/> | ||
<key>NSPrivacyCollectedDataTypePurposes</key> | ||
<array> | ||
<string>NSPrivacyCollectedDataTypePurposeThirdPartyAdvertising</string> | ||
<string>NSPrivacyCollectedDataTypePurposeDeveloperAdvertising</string> | ||
</array> | ||
</dict> | ||
<dict> | ||
<key>NSPrivacyCollectedDataType</key> | ||
<string>NSPrivacyCollectedDataTypeAdvertisingData</string> | ||
<key>NSPrivacyCollectedDataTypeLinked</key> | ||
<false/> | ||
<key>NSPrivacyCollectedDataTypeTracking</key> | ||
<false/> | ||
<key>NSPrivacyCollectedDataTypePurposes</key> | ||
<array> | ||
<string>NSPrivacyCollectedDataTypePurposeThirdPartyAdvertising</string> | ||
<string>NSPrivacyCollectedDataTypePurposeDeveloperAdvertising</string> | ||
</array> | ||
</dict> | ||
</array> | ||
</dict> | ||
</plist> |
Oops, something went wrong.