Skip to content

Commit

Permalink
Moved properties to QONUserProperty file.
Browse files Browse the repository at this point in the history
  • Loading branch information
SpertsyanKM committed Aug 1, 2023
1 parent 58420f4 commit f5353df
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 19 deletions.
1 change: 1 addition & 0 deletions QonversionTests/QonversionPropertiesTests.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#import <XCTest/XCTest.h>
#import "QNProperties.h"
#import "QONUserProperty.h"

@interface QNPropertiesTests : XCTestCase

Expand Down
19 changes: 0 additions & 19 deletions Sources/Qonversion/Public/QONLaunchResult.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,6 @@ typedef NS_ENUM(NSInteger, QONAttributionProvider) {
QONAttributionProviderAppleAdServices
} NS_SWIFT_NAME(Qonversion.AttributionProvider);

/**
Qonversion Defined User Property keys
We defined some common case properties and provided API for adding them
@see [Product Center](https://qonversion.io/docs/defined-user-properties)
*/
typedef NS_ENUM(NSInteger, QONUserPropertyKey) {
QONUserPropertyKeyEmail = 0,
QONUserPropertyKeyName,
QONUserPropertyKeyAppsFlyerUserID,
QONUserPropertyKeyAdjustAdID,
QONUserPropertyKeyKochavaDeviceID,
QONUserPropertyKeyAdvertisingID,
QONUserPropertyKeyUserID,
QONUserPropertyKeyFirebaseAppInstanceId,
QONUserPropertyKeyFacebookAttribution, // Android only
QONUserPropertyKeyAppSetId, // Android only
QONUserPropertyKeyCustom,
} NS_SWIFT_NAME(Qonversion.UserPropertyKey);

NS_SWIFT_NAME(Qonversion.LaunchResult)
@interface QONLaunchResult : NSObject <NSCoding>

Expand Down
19 changes: 19 additions & 0 deletions Sources/Qonversion/Public/QONUserProperty.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,25 @@

NS_ASSUME_NONNULL_BEGIN

/**
Qonversion Defined User Property keys
We defined some common case properties and provided API for adding them
@see [Product Center](https://qonversion.io/docs/defined-user-properties)
*/
typedef NS_ENUM(NSInteger, QONUserPropertyKey) {
QONUserPropertyKeyEmail = 0,
QONUserPropertyKeyName,
QONUserPropertyKeyAppsFlyerUserID,
QONUserPropertyKeyAdjustAdID,
QONUserPropertyKeyKochavaDeviceID,
QONUserPropertyKeyAdvertisingID,
QONUserPropertyKeyUserID,
QONUserPropertyKeyFirebaseAppInstanceId,
QONUserPropertyKeyFacebookAttribution, // Android only
QONUserPropertyKeyAppSetId, // Android only
QONUserPropertyKeyCustom,
} NS_SWIFT_NAME(Qonversion.UserPropertyKey);

NS_SWIFT_NAME(Qonversion.UserProperty)
@interface QONUserProperty : NSObject <NSCoding>

Expand Down
1 change: 1 addition & 0 deletions Sources/Qonversion/Public/Qonversion.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#import "QONEntitlementsCacheLifetime.h"
#import "QONConfiguration.h"
#import "QONStoreKit2PurchaseModel.h"
#import "QONUserProperty.h"

#if TARGET_OS_IOS
#import "QONAutomationsDelegate.h"
Expand Down
1 change: 1 addition & 0 deletions Sources/Qonversion/Public/Qonversion.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#import "QNLocalStorage.h"
#import "QNInternalConstants.h"
#import "QONExceptionManager.h"
#import "QONUserProperty.h"

@interface Qonversion()

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#import "QNInternalConstants.h"
#import "QNProperties.h"
#import "QNUtils.h"
#import "QONUserProperty.h"

@implementation QNProperties

Expand Down

0 comments on commit f5353df

Please sign in to comment.