-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from BranchMetrics/staging
Staging
- Loading branch information
Showing
8 changed files
with
84 additions
and
16 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
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,20 @@ | ||
// | ||
// AdobeBranchExtensionConfig.h | ||
// Pods | ||
// | ||
// Created by Ernest Cho on 4/11/19. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface AdobeBranchExtensionConfig : NSObject | ||
@property (nonatomic, strong, readwrite) NSArray<NSString *> *eventTypes; | ||
@property (nonatomic, strong, readwrite) NSArray<NSString *> *eventSources; | ||
|
||
+ (AdobeBranchExtensionConfig *)instance; | ||
|
||
@end | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// | ||
// AdobeBranchExtensionConfig.m | ||
// Pods | ||
// | ||
// Created by Ernest Cho on 4/11/19. | ||
// | ||
|
||
#import "AdobeBranchExtensionConfig.h" | ||
|
||
@implementation AdobeBranchExtensionConfig | ||
|
||
+ (AdobeBranchExtensionConfig *)instance { | ||
static AdobeBranchExtensionConfig *config; | ||
static dispatch_once_t onceToken; | ||
dispatch_once(&onceToken, ^{ | ||
config = [AdobeBranchExtensionConfig new]; | ||
}); | ||
return config; | ||
} | ||
|
||
- (instancetype)init { | ||
self = [super init]; | ||
if (self) { | ||
// default event type and source to track, client can override | ||
self.eventTypes = @[ @"com.adobe.eventType.generic.track" ]; | ||
self.eventSources = @[ @"com.adobe.eventSource.requestContent" ]; | ||
} | ||
return self; | ||
} | ||
|
||
@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
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