Skip to content

Commit

Permalink
6.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbushnell committed Mar 8, 2023
1 parent ade833b commit 475d9f4
Show file tree
Hide file tree
Showing 318 changed files with 71,098 additions and 27,971 deletions.
50 changes: 25 additions & 25 deletions KochavaCore.xcframework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,45 +6,47 @@
<array>
<dict>
<key>LibraryIdentifier</key>
<string>watchos-arm64_i386_x86_64-simulator</string>
<string>macos-arm64_x86_64</string>
<key>LibraryPath</key>
<string>KochavaCore.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>
<string>macos</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_armv7</string>
<string>ios-arm64_x86_64-maccatalyst</string>
<key>LibraryPath</key>
<string>KochavaCore.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>armv7</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>maccatalyst</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>macos-arm64_x86_64</string>
<string>watchos-arm64_i386_x86_64-simulator</string>
<key>LibraryPath</key>
<string>KochavaCore.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>i386</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>macos</string>
<string>watchos</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
Expand All @@ -64,58 +66,56 @@
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>tvos-arm64_x86_64-simulator</string>
<string>tvos-arm64</string>
<key>LibraryPath</key>
<string>KochavaCore.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>ios-arm64_x86_64-maccatalyst</string>
<string>watchos-arm64_32_armv7k</string>
<key>LibraryPath</key>
<string>KochavaCore.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
<string>arm64_32</string>
<string>armv7k</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>maccatalyst</string>
<string>watchos</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>tvos-arm64</string>
<string>ios-arm64_armv7</string>
<key>LibraryPath</key>
<string>KochavaCore.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>armv7</string>
</array>
<key>SupportedPlatform</key>
<string>tvos</string>
<string>ios</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>watchos-arm64_32_armv7k</string>
<string>tvos-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>KochavaCore.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64_32</string>
<string>armv7k</string>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>watchos</string>
<string>tvos</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,198 @@
//
// KVAAdapter.h
// KochavaCore
//
// Created by John Bushnell on 6/28/16.
// Copyright © 2016 - 2022 Kochava, Inc. All rights reserved.
//



#ifndef KVAAdapter_h
#define KVAAdapter_h



#pragma mark - IMPORT



#import <Foundation/Foundation.h>



#pragma mark - CLASS



@class KVAAdapter;
@class KVAContext;
@class KVAValue;



#pragma mark - Typealiases



/*!
@brief A closure which is called when the adapter did read from persistent storage.
@discussion This can be used to update properties within the value and/or watchValue.
*/
typedef void (^ KVAAdapter_Closure_DidReadFromPersistentStorage)
(
KVAAdapter * _Nonnull adapter
);



/*!
@brief A closure which is called when the adapter is invalidated.
@discussion This can be used to invalidate processes within an closure_collectAsynchronously, such as when the gathering of a value is in progress.
*/
typedef void (^ KVAAdapter_Closure_DidInvalidate)
(
KVAAdapter * _Nonnull adapter
);



/*!
@brief A closure which formats a valueObject to be sent to the server.
*/
typedef NSObject * _Nullable (^ KVAAdapter_Closure_ServerObject)
(
KVAAdapter * _Nonnull adapter,
NSObject * _Nullable valueObject
);



/*!
@brief A closure which synchronously collects the valueRawObject.
*/
typedef NSObject * _Nullable (^ KVAAdapter_Closure_CollectSynchronously)
(
KVAAdapter * _Nonnull adapter
);



/*!
@brief A closure which a KVAAdapter_Closure_CollectAsynchronously should call to signal that it is done asynchronously collecting the valueRawObject.
*/
typedef void (^ KVAAdapter_Closure_CollectAsynchronouslyCompletionHandler)
(
KVAAdapter * _Nonnull adapter,
id _Nullable valueRawObject
);



/*!
@brief A closure which asynchronously collected the valueRawObject.
*/
typedef void (^ KVAAdapter_Closure_CollectAsynchronously)
(
KVAAdapter * _Nonnull adapter,
KVAAdapter_Closure_CollectAsynchronouslyCompletionHandler _Nonnull completionHandler
);



/*!
@brief A closure which is called when getting the value has completed. Note that this type is often instantiated multiple times for the same adapter, once for each interested party.
*/
typedef void (^ KVAAdapter_Closure_GetValueCompletionHandler)
(
KVAAdapter * _Nonnull adapter,
KVAValue * _Nullable value
);



/*!
@brief A closure which returns a dictionary containing an array of meta value(s) for a newly created KVAValue.
*/
typedef NSDictionary<NSString *, KVAValue *> * _Nullable (^ KVAValue_Closure_MetaValueArrayDictionary)
(
KVAValue * _Nonnull value
);



/*!
@brief A closure which returns whether or not a KVAValue is stale.
*/
typedef BOOL (^ KVAValue_Closure_StaleBool)
(
KVAValue * _Nonnull value
);



/*!
@brief A closure which is called when the adapter did mutate.
@discussion This includes certain mutations to value and, in particular, anything which may require persistent storage to be updated. This may include other mutations. This differs from closure_didSetValue in that it includes when the value itself experiences a mutation, such as is the case when value.rawObject mutates.
*/
typedef void (^ KVAAdapter_Closure_DidMutate)
(
KVAAdapter * _Nonnull adapter
);



/*!
@brief A closure which is called when the value has been set.
*/
typedef void (^ KVAAdapter_Closure_DidSetValue)
(
KVAAdapter * _Nonnull adapter,
KVAValue * _Nullable value,
KVAValue * _Nullable oldValue
);



/*!
@brief A closure which is called when the value will be set.
*/
typedef BOOL (^ KVAAdapter_Closure_WillSetValue)
(
KVAAdapter * _Nonnull adapter,
KVAValue * _Nullable value,
KVAValue * _Nullable newValue
);



/*!
@brief A closure which is called to determine if the adapter is permitted to collect or export.
@discussion This may be used to evaluate deny datapoints conditions.
*/
typedef BOOL (^ KVANetworking_Closure_Adapter_MayOperateBoolForContext)
(
KVAAdapter * _Nonnull adapter,
KVAContext * _Nullable context
);



/*!
@brief A closure which is called when the adapter value did get set.
*/
typedef void (^ KVAAdapter_Closure_ValueDidSet)
(
KVAAdapter * _Nonnull adapter
);



#endif



This file was deleted.

Loading

0 comments on commit 475d9f4

Please sign in to comment.