Skip to content

Commit

Permalink
Add KochavaAdNetwork 4.8.0 (#2)
Browse files Browse the repository at this point in the history
Co-authored-by: Mark Adams <[email protected]>
  • Loading branch information
hyperspacemark and Mark Adams authored Aug 31, 2022
1 parent 5ebc084 commit 43d3411
Show file tree
Hide file tree
Showing 89 changed files with 5,051 additions and 0 deletions.
126 changes: 126 additions & 0 deletions KochavaAdNetwork.xcframework/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
<?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">
<plist version="1.0">
<dict>
<key>AvailableLibraries</key>
<array>
<dict>
<key>LibraryIdentifier</key>
<string>tvos-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>KochavaAdNetwork.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>tvos</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>macos-arm64_x86_64</string>
<key>LibraryPath</key>
<string>KochavaAdNetwork.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>macos</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_i386_x86_64-simulator</string>
<key>LibraryPath</key>
<string>KochavaAdNetwork.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>i386</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-maccatalyst</string>
<key>LibraryPath</key>
<string>KochavaAdNetwork.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>maccatalyst</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>tvos-arm64</string>
<key>LibraryPath</key>
<string>KochavaAdNetwork.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
</array>
<key>SupportedPlatform</key>
<string>tvos</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>watchos-arm64_i386_x86_64-simulator</string>
<key>LibraryPath</key>
<string>KochavaAdNetwork.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>i386</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>watchos</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_armv7</string>
<key>LibraryPath</key>
<string>KochavaAdNetwork.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>armv7</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>watchos-arm64_32_armv7k</string>
<key>LibraryPath</key>
<string>KochavaAdNetwork.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64_32</string>
<string>armv7k</string>
</array>
<key>SupportedPlatform</key>
<string>watchos</string>
</dict>
</array>
<key>CFBundlePackageType</key>
<string>XFWK</string>
<key>XCFrameworkFormatVersion</key>
<string>1.0</string>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
//
// KVAAdNetwork.h
// KochavaAdNetwork
//
// Created by John Bushnell on 8/20/20.
// Copyright © 2020 - 2021 Kochava, Inc. All rights reserved.
//



#ifndef KVAAdNetwork_h
#define KVAAdNetwork_h



#pragma mark - IMPORT



#pragma mark KochavaAdNetwork
#import "KVAAdNetworkProtocol.h"



#pragma mark - INTERFACE



/*!
@class KVAAdNetwork
@brief A controller for working with advertising networks.
@discussion This class provides a high-level interface for SKAdNetwork.
@author John Bushnell
@copyright 2020 - 2021 Kochava, Inc.
*/
@interface KVAAdNetwork : NSObject <KVAAdNetworkProtocol>



@end



#endif



Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
//
// KVAAdNetworkConversion.h
// KochavaAdNetwork
//
// Created by John Bushnell on 8/20/20.
// Copyright © 2020 - 2021 Kochava, Inc. All rights reserved.
//



#ifndef KVAAdNetworkConversion_h
#define KVAAdNetworkConversion_h



#pragma mark - IMPORT



#pragma mark KochavaCore
#ifdef KOCHAVA_FRAMEWORK
#import <KochavaCore/KochavaCore.h>
#else
#import "KVAAsForContextObjectProtocol.h"
#import "KVAConfigureWithObjectProtocol.h"
#import "KVAFromObjectProtocol.h"
#endif



#pragma mark - CLASS



@class KVAAdNetworkConversion;
@class KVAAdNetworkConversionResult;



#pragma mark - TYPEDEF



/*!
@typedef KVAAdNetworkConversionDidUpdateValueBlock
@brief A block which is called when the SKAdNetwork updateConversionValue API has been called.
@discussion Your code should assume that if some action needs to be performed on the main queue that it should first dispatch asynchronously to it.
*/
typedef void (^ KVAAdNetworkConversionDidUpdateValueBlock) (KVAAdNetworkConversion * _Nonnull conversion, KVAAdNetworkConversionResult * _Nonnull result);



#pragma mark - INTERFACE



@interface KVAAdNetworkConversion : NSObject <KVAAsForContextObjectProtocol, KVAConfigureWithObjectProtocol, KVAFromObjectProtocol>



#pragma mark - PARAMETERS



/*!
@property didUpdateValueBlock
@brief A block which is called when the SKAdNetwork updateConversionValue API has been called.
@discussion Your code should assume that if some action needs to be performed on the main queue that it should first dispatch asynchronously to it.
*/
@property (strong, nonatomic, nullable, readwrite) KVAAdNetworkConversionDidUpdateValueBlock didUpdateValueBlock;



#pragma mark - PROPERTIES



/*!
@property result
@brief The current conversion result.
@discussion This object will mutate when the current result is updated. If you want a immutable picture then you should take a copy.
*/
@property (strong, nonatomic, nonnull, readonly) KVAAdNetworkConversionResult *result;



@end



#endif



Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
//
// KVAAdNetworkConversionResult.h
// KochavaAdNetwork
//
// Created by John Bushnell on 8/20/20.
// Copyright © 2020 - 2021 Kochava, Inc. All rights reserved.
//



#ifndef KVAAdNetworkConversionResult_h
#define KVAAdNetworkConversionResult_h



#pragma mark - IMPORT



#pragma mark KochavaCore
#ifdef KOCHAVA_FRAMEWORK
#import <KochavaCore/KochavaCore.h>
#else
#import "KVAAsForContextObjectProtocol.h"
#import "KVAConfigureWithObjectProtocol.h"
#import "KVAFromObjectProtocol.h"
#endif



#pragma mark - INTERFACE



@interface KVAAdNetworkConversionResult : NSObject <KVAAsForContextObjectProtocol, KVAConfigureWithObjectProtocol, KVAFromObjectProtocol>



#pragma mark - PROPERTIES



/*!
@property modelString
@brief A string which represents the model used for the conversion.
*/
@property (strong, nonatomic, nullable, readonly) NSString *modelString;



/*!
@property translatedValueIntNumber
@brief An integer representing the translated value.
@discussion This value is regarded as being restricted to 6-bits due to Apple's requirement regarding the value. This is translated from the rawValueNumber. This does not include any extension interval value (extensionIntervalTranslatedValueIntNumber).
*/
@property (strong, nonatomic, nullable, readonly) NSNumber *translatedValueIntNumber;



/*!
@property rawValueNumber
@brief A number representing the raw value.
@discussion This is a raw value which has not had any translations applied yet. This also does not include any extension interval value (extensionIntervalTranslatedValueIntNumber).
*/
@property (strong, nonatomic, nullable, readonly) NSNumber *rawValueNumber;



#pragma mark - GENERAL



/*!
@method - valueInt
@brief Returns the conversion value integer which is used with the SKAdNetwork updateConversionValue API.
@discussion Apple currently restricts this value to 6-bits. This is a combination (OR) of the translated value (translatedValueIntNumber.integerValue) with any extension interval value (extensionIntervalTranslatedValueIntNumber.integerValue).
*/
- (NSInteger)valueInt;



@end



#endif



Loading

0 comments on commit 43d3411

Please sign in to comment.