Skip to content

Commit

Permalink
Update OM SDK (#699)
Browse files Browse the repository at this point in the history
* feat: update omsdk

* feat: update omsdk.js
  • Loading branch information
OlenaPostindustria authored Oct 31, 2022
1 parent a91434f commit 71e31be
Show file tree
Hide file tree
Showing 8 changed files with 165 additions and 87 deletions.
41 changes: 36 additions & 5 deletions Frameworks/OMSDK-Static_Prebidorg.xcframework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -8,35 +8,66 @@
<key>HeadersPath</key>
<string>Headers</string>
<key>LibraryIdentifier</key>
<string>ios-arm64_armv7</string>
<string>ios-arm64_i386_x86_64-simulator</string>
<key>LibraryPath</key>
<string>libAppVerificationLibrary.a</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>armv7</string>
<string>i386</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>HeadersPath</key>
<string>Headers</string>
<key>LibraryIdentifier</key>
<string>ios-arm64_i386_x86_64-simulator</string>
<string>tvos-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>libAppVerificationLibrary.a</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>i386</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<string>tvos</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>HeadersPath</key>
<string>Headers</string>
<key>LibraryIdentifier</key>
<string>tvos-arm64</string>
<key>LibraryPath</key>
<string>libAppVerificationLibrary.a</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
</array>
<key>SupportedPlatform</key>
<string>tvos</string>
</dict>
<dict>
<key>HeadersPath</key>
<string>Headers</string>
<key>LibraryIdentifier</key>
<string>ios-arm64_armv7</string>
<key>LibraryPath</key>
<string>libAppVerificationLibrary.a</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>armv7</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
</dict>
</array>
<key>CFBundlePackageType</key>
<string>XFWK</string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
//

#import <UIKit/UIKit.h>

#if !(TARGET_OS_TV)
#import <WebKit/WebKit.h>
#endif

#import "OMIDPartner.h"
#import "OMIDVerificationScriptResource.h"

Expand All @@ -17,6 +21,8 @@ NS_ASSUME_NONNULL_BEGIN

- (null_unspecified instancetype)init NS_UNAVAILABLE;

#if !(TARGET_OS_TV)

/**
* Initializes a new ad session context providing reference to partner and web view where
* the OM SDK JavaScript service has been injected.
Expand All @@ -38,6 +44,8 @@ NS_ASSUME_NONNULL_BEGIN
contentUrl:(nullable NSString *)contentUrl
customReferenceIdentifier:(nullable NSString *)customReferenceIdentifier
error:(NSError *_Nullable *_Nullable)error;
#endif

/**
* Initializes a new ad session context providing reference to partner and a list of
* script resources which should be managed by OMID.
Expand All @@ -62,6 +70,7 @@ NS_ASSUME_NONNULL_BEGIN
customReferenceIdentifier:(nullable NSString *)customReferenceIdentifier
error:(NSError *_Nullable *_Nullable)error;

#if !(TARGET_OS_TV)
/**
* Initializes a new ad session context providing reference to partner and web view where
* OM SDK JavaScript service has been injected.
Expand All @@ -83,6 +92,7 @@ NS_ASSUME_NONNULL_BEGIN
contentUrl:(nullable NSString *)contentUrl
customReferenceIdentifier:(nullable NSString *)customReferenceIdentifier
error:(NSError *_Nullable *_Nullable)error;
#endif

@end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN;

/**
* This application level class will be called by all integration partners to ensure OM SDK has been activated before calling any other API methods.
* Any attempt to use other API methods prior to activation will result in an error.
Expand All @@ -20,25 +22,37 @@
/**
* The current semantic version of the integrated OMID library.
*/
+ (nonnull NSString *)versionString;
+ (NSString *)versionString;

/**
* Shared OMIDSDK instance.
*/
@property(class, readonly, nonnull) OMIDPrebidorgSDK *sharedInstance
@property(class, readonly) OMIDPrebidorgSDK *sharedInstance
NS_SWIFT_NAME(shared);

/**
* A Boolean value indicating whether the OMID library has been activated.
* A Boolean value indicating whether OM SDK has been activated.
*
* The value of this property is YES if the OMID library has already been activated. Allows the integration partner to check that they are compatible with the running OMID library version.
* @discussion Check that OM SDK is active prior to creating any ad sessions.
*/
@property(atomic, readonly, getter = isActive) BOOL active;
@property(atomic, readonly, getter=isActive) BOOL active;

/**
* Enables the integration partner to activate OMID.
* Activate OM SDK before calling other API methods.
*
* @discussion Activation sets up the OM SDK environment. In CTV apps (running tvOS), `activate` should be called on launch in
* order to capture a "last activity" timestamp on launch and each time the user foregrounds the app).
*
* @return Boolean indicating success.
*/
- (BOOL)activate;

/**
* Update the last activity time
* After activating OM SDK in CTV apps, refresh the "last activity" timestamp in response to user input prior to starting an ad session.
*/
- (void)updateLastActivity;

@end

NS_ASSUME_NONNULL_END;
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
//

#import <UIKit/UIKit.h>

#if !(TARGET_OS_TV)
#import <WebKit/WebKit.h>
#endif

#import "OMIDPartner.h"
#import "OMIDVerificationScriptResource.h"

Expand All @@ -17,6 +21,8 @@ NS_ASSUME_NONNULL_BEGIN

- (null_unspecified instancetype)init NS_UNAVAILABLE;

#if !(TARGET_OS_TV)

/**
* Initializes a new ad session context providing reference to partner and web view where
* the OM SDK JavaScript service has been injected.
Expand All @@ -38,6 +44,8 @@ NS_ASSUME_NONNULL_BEGIN
contentUrl:(nullable NSString *)contentUrl
customReferenceIdentifier:(nullable NSString *)customReferenceIdentifier
error:(NSError *_Nullable *_Nullable)error;
#endif

/**
* Initializes a new ad session context providing reference to partner and a list of
* script resources which should be managed by OMID.
Expand All @@ -62,6 +70,7 @@ NS_ASSUME_NONNULL_BEGIN
customReferenceIdentifier:(nullable NSString *)customReferenceIdentifier
error:(NSError *_Nullable *_Nullable)error;

#if !(TARGET_OS_TV)
/**
* Initializes a new ad session context providing reference to partner and web view where
* OM SDK JavaScript service has been injected.
Expand All @@ -83,6 +92,7 @@ NS_ASSUME_NONNULL_BEGIN
contentUrl:(nullable NSString *)contentUrl
customReferenceIdentifier:(nullable NSString *)customReferenceIdentifier
error:(NSError *_Nullable *_Nullable)error;
#endif

@end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN;

/**
* This application level class will be called by all integration partners to ensure OM SDK has been activated before calling any other API methods.
* Any attempt to use other API methods prior to activation will result in an error.
Expand All @@ -20,25 +22,37 @@
/**
* The current semantic version of the integrated OMID library.
*/
+ (nonnull NSString *)versionString;
+ (NSString *)versionString;

/**
* Shared OMIDSDK instance.
*/
@property(class, readonly, nonnull) OMIDPrebidorgSDK *sharedInstance
@property(class, readonly) OMIDPrebidorgSDK *sharedInstance
NS_SWIFT_NAME(shared);

/**
* A Boolean value indicating whether the OMID library has been activated.
* A Boolean value indicating whether OM SDK has been activated.
*
* The value of this property is YES if the OMID library has already been activated. Allows the integration partner to check that they are compatible with the running OMID library version.
* @discussion Check that OM SDK is active prior to creating any ad sessions.
*/
@property(atomic, readonly, getter = isActive) BOOL active;
@property(atomic, readonly, getter=isActive) BOOL active;

/**
* Enables the integration partner to activate OMID.
* Activate OM SDK before calling other API methods.
*
* @discussion Activation sets up the OM SDK environment. In CTV apps (running tvOS), `activate` should be called on launch in
* order to capture a "last activity" timestamp on launch and each time the user foregrounds the app).
*
* @return Boolean indicating success.
*/
- (BOOL)activate;

/**
* Update the last activity time
* After activating OM SDK in CTV apps, refresh the "last activity" timestamp in response to user input prior to starting an ad session.
*/
- (void)updateLastActivity;

@end

NS_ASSUME_NONNULL_END;
Binary file not shown.
Loading

0 comments on commit 71e31be

Please sign in to comment.