forked from attentive-mobile/attentive-ios-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
restored constants to avoid breaking changes
- Loading branch information
Vladimir Espinola
committed
Jun 7, 2024
1 parent
b5879ea
commit dc692d5
Showing
9 changed files
with
128 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,12 +39,12 @@ class AppDelegate : UIResponder, UIApplicationDelegate { | |
|
||
public static func createUserIdentifiers() -> [String: Any] { | ||
[ | ||
ATTNIdentifierType.phone: "+15671230987", | ||
ATTNIdentifierType.email: "[email protected]", | ||
ATTNIdentifierType.clientUserId: "APP_USER_ID", | ||
ATTNIdentifierType.shopifyId: "207119551", | ||
ATTNIdentifierType.klaviyoId: "555555", | ||
ATTNIdentifierType.customIdentifiers: ["customId": "customIdValue"] | ||
IDENTIFIER_TYPE_PHONE: "+15671230987", | ||
IDENTIFIER_TYPE_EMAIL: "[email protected]", | ||
IDENTIFIER_TYPE_CLIENT_USER_ID: "APP_USER_ID", | ||
IDENTIFIER_TYPE_SHOPIFY_ID: "207119551", | ||
IDENTIFIER_TYPE_KLAVIYO_ID: "555555", | ||
IDENTIFIER_TYPE_CUSTOM_IDENTIFIERS: ["customId": "customIdValue"] | ||
] | ||
} | ||
} |
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,8 @@ | ||
#import <Foundation/Foundation.h> | ||
|
||
FOUNDATION_EXPORT double ATTNSDKFrameworkVersionNumber; | ||
|
||
FOUNDATION_EXPORT const unsigned char ATTNSDKFrameworkVersionString[]; | ||
|
||
// In this header, you should import all the public headers of your framework using statements like #import <attentive_ios_sdk/PublicHeader.h> | ||
#import <attentive_ios_sdk_framework/ATTNConstants.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,5 @@ | ||
framework module attentive_ios_sdk_framework { | ||
umbrella header "ATTNSDKFramework.h" | ||
export * | ||
module * { export * } | ||
} |
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
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,33 @@ | ||
// | ||
// ATTNConstants.m | ||
// attentive-ios-sdk-framework | ||
// | ||
// Created by Vladimir - Work on 2024-05-28. | ||
// | ||
|
||
#import "ATTNConstants.h" | ||
|
||
// Status passed to ATTNCreativeTriggerCompletionHandler when the creative is opened sucessfully | ||
NSString *const CREATIVE_TRIGGER_STATUS_OPENED = @"CREATIVE_TRIGGER_STATUS_OPENED"; | ||
// Status passed to ATTNCreativeTriggerCompletionHandler when the creative is closed sucessfully | ||
NSString *const CREATIVE_TRIGGER_STATUS_CLOSED = @"CREATIVE_TRIGGER_STATUS_CLOSED"; | ||
// Status passed to the ATTNCreativeTriggerCompletionHandler when the Creative has been triggered but it is not | ||
// opened successfully. This can happen if there is no available mobile app creative, if the creative | ||
// is fatigued, if the creative call has been timed out, or if an unknown exception occurs. | ||
NSString *const CREATIVE_TRIGGER_STATUS_NOT_OPENED = @"CREATIVE_TRIGGER_STATUS_NOT_OPENED"; | ||
// Status passed to the ATTNCreativeTriggerCompletionHandler when the Creative is not closed due to an unknown | ||
// exception | ||
NSString *const CREATIVE_TRIGGER_STATUS_NOT_CLOSED = @"CREATIVE_TRIGGER_STATUS_NOT_CLOSED"; | ||
|
||
// Your unique identifier for the user - this should be consistent across the user's lifetime, for example a database id | ||
NSString *const IDENTIFIER_TYPE_CLIENT_USER_ID = @"clientUserId"; | ||
// The user's phone number in E.164 format | ||
NSString *const IDENTIFIER_TYPE_PHONE = @"phone"; | ||
// The user's email | ||
NSString *const IDENTIFIER_TYPE_EMAIL = @"email"; | ||
// The user's Shopify Customer ID | ||
NSString *const IDENTIFIER_TYPE_SHOPIFY_ID = @"shopifyId"; | ||
// The user's Klaviyo ID | ||
NSString *const IDENTIFIER_TYPE_KLAVIYO_ID = @"klaviyoId"; | ||
// Key-value pairs of custom identifier names and values (both NSStrings) to associate with this user | ||
NSString *const IDENTIFIER_TYPE_CUSTOM_IDENTIFIERS = @"customIdentifiers"; |
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,38 @@ | ||
// | ||
// ATTNConstants.h | ||
// attentive-ios-sdk-framework | ||
// | ||
// Created by Vladimir - Work on 2024-05-28. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
/// Status passed to `ATTNCreativeTriggerCompletionHandler` when the creative is opened successfully | ||
extern NSString *const CREATIVE_TRIGGER_STATUS_OPENED __attribute__((deprecated("Please use ATTNCreativeTriggerStatus.opened instead."))); | ||
/// Status passed to `ATTNCreativeTriggerCompletionHandler` when the creative is closed sucessfully | ||
extern NSString *const CREATIVE_TRIGGER_STATUS_CLOSED __attribute__((deprecated("Please use ATTNCreativeTriggerStatus.closed instead."))); | ||
/** Status passed to the`ATTNCreativeTriggerCompletionHandler` when the Creative has been triggered but it is not | ||
opened successfully. This can happen if there is no available mobile app creative, if the creative | ||
is fatigued, if the creative call has been timed out, or if an unknown exception occurs. | ||
*/ | ||
extern NSString *const CREATIVE_TRIGGER_STATUS_NOT_OPENED __attribute__((deprecated("Please use ATTNCreativeTriggerStatus.notOpened instead."))); | ||
/// Status passed to the `ATTNCreativeTriggerCompletionHandler` when the Creative is not closed due to an unknown exception | ||
extern NSString *const CREATIVE_TRIGGER_STATUS_NOT_CLOSED __attribute__((deprecated("Please use ATTNCreativeTriggerStatus.notClosed instead."))); | ||
|
||
|
||
/// Your unique identifier for the user - this should be consistent across the user's lifetime, for example a database id | ||
extern NSString *const IDENTIFIER_TYPE_CLIENT_USER_ID __attribute__((deprecated("Please use ATTNIdentifierType.clientUserId instead."))); | ||
/// The user's phone number in E.164 format | ||
extern NSString *const IDENTIFIER_TYPE_PHONE __attribute__((deprecated("Please use ATTNIdentifierType.phone instead."))); | ||
/// The user's email | ||
extern NSString *const IDENTIFIER_TYPE_EMAIL __attribute__((deprecated("Please use ATTNIdentifierType.email instead."))); | ||
/// The user's Shopify Customer ID | ||
extern NSString *const IDENTIFIER_TYPE_SHOPIFY_ID __attribute__((deprecated("Please use ATTNIdentifierType.shopifyId instead."))); | ||
/// The user's Klaviyo ID | ||
extern NSString *const IDENTIFIER_TYPE_KLAVIYO_ID __attribute__((deprecated("Please use ATTNIdentifierType.klaviyoId instead."))); | ||
/// Key-value pairs of custom identifier names and values (both Strings) to associate with this user | ||
extern NSString *const IDENTIFIER_TYPE_CUSTOM_IDENTIFIERS __attribute__((deprecated("Please use ATTNIdentifierType.customIdentifiers instead."))); | ||
|
||
NS_ASSUME_NONNULL_END |
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
15 changes: 0 additions & 15 deletions
15
attentive-ios-sdk.xcworkspace/xcshareddata/swiftpm/Package.resolved
This file was deleted.
Oops, something went wrong.