-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
75 changed files
with
8,864 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// | ||
// BNCConfig.h | ||
// Branch-SDK | ||
// | ||
// Created by Qinwei Gong on 10/6/14. | ||
// Copyright (c) 2014 Branch Metrics. All rights reserved. | ||
// | ||
|
||
#ifndef Branch_SDK_Config_h | ||
#define Branch_SDK_Config_h | ||
|
||
#define SDK_VERSION @"0.11.17" | ||
|
||
#define BNC_PROD_ENV | ||
//#define BNC_STAGE_ENV | ||
//#define BNC_DEV_ENV | ||
|
||
#ifdef BNC_PROD_ENV | ||
#define BNC_API_BASE_URL @"https://api.branch.io" | ||
#endif | ||
|
||
#ifdef BNC_STAGE_ENV | ||
#define BNC_API_BASE_URL @"http://api.dev.branchmetrics.io" | ||
#endif | ||
|
||
#define BNC_LINK_URL @"https://bnc.lt" | ||
|
||
#ifdef BNC_DEV_ENV | ||
#define BNC_API_BASE_URL @"http://localhost:3001" | ||
#endif | ||
|
||
#define BNC_API_VERSION @"v1" | ||
|
||
#endif |
47 changes: 47 additions & 0 deletions
47
src/ios/dependencies/Branch-SDK/BNCContentDiscoveryManager.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,47 @@ | ||
// | ||
// BNCContentDiscoveryManager.h | ||
// Branch-TestBed | ||
// | ||
// Created by Graham Mueller on 7/17/15. | ||
// Copyright © 2015 Branch Metrics. All rights reserved. | ||
// | ||
|
||
#import "Branch.h" | ||
|
||
@interface BNCContentDiscoveryManager : NSObject | ||
|
||
- (NSString *)spotlightIdentifierFromActivity:(NSUserActivity *)userActivity; | ||
- (NSString *)standardSpotlightIdentifierFromActivity:(NSUserActivity *)userActivity; | ||
|
||
- (void)indexContentWithTitle:(NSString *)title description:(NSString *)description; | ||
|
||
- (void)indexContentWithTitle:(NSString *)title description:(NSString *)description callback:(callbackWithUrl)callback; | ||
|
||
- (void)indexContentWithTitle:(NSString *)title description:(NSString *)description publiclyIndexable:(BOOL)publiclyIndexable callback:(callbackWithUrl)callback; | ||
|
||
- (void)indexContentWithTitle:(NSString *)title description:(NSString *)description publiclyIndexable:(BOOL)publiclyIndexable type:(NSString *)type callback:(callbackWithUrl)callback; | ||
|
||
- (void)indexContentWithTitle:(NSString *)title description:(NSString *)description publiclyIndexable:(BOOL)publiclyIndexable type:(NSString *)type thumbnailUrl:(NSURL *)thumbnailUrl callback:(callbackWithUrl)callback; | ||
|
||
- (void)indexContentWithTitle:(NSString *)title description:(NSString *)description publiclyIndexable:(BOOL)publiclyIndexable type:(NSString *)type thumbnailUrl:(NSURL *)thumbnailUrl keywords:(NSSet *)keywords callback:(callbackWithUrl)callback; | ||
|
||
- (void)indexContentWithTitle:(NSString *)title description:(NSString *)description publiclyIndexable:(BOOL)publiclyIndexable type:(NSString *)type thumbnailUrl:(NSURL *)thumbnailUrl keywords:(NSSet *)keywords; | ||
|
||
- (void)indexContentWithTitle:(NSString *)title description:(NSString *)description publiclyIndexable:(BOOL)publiclyIndexable type:(NSString *)type thumbnailUrl:(NSURL *)thumbnailUrl keywords:(NSSet *)keywords userInfo:(NSDictionary *)userInfo; | ||
|
||
- (void)indexContentWithTitle:(NSString *)title description:(NSString *)description publiclyIndexable:(BOOL)publiclyIndexable thumbnailUrl:(NSURL *)thumbnailUrl userInfo:(NSDictionary *)userInfo; | ||
|
||
- (void)indexContentWithTitle:(NSString *)title description:(NSString *)description publiclyIndexable:(BOOL)publiclyIndexable thumbnailUrl:(NSURL *)thumbnailUrl keywords:(NSSet *)keywords userInfo:(NSDictionary *)userInfo; | ||
|
||
- (void)indexContentWithTitle:(NSString *)title description:(NSString *)description publiclyIndexable:(BOOL)publiclyIndexable type:(NSString *)type thumbnailUrl:(NSURL *)thumbnailUrl keywords:(NSSet *)keywords userInfo:(NSDictionary *)userInfo callback:(callbackWithUrl)callback; | ||
|
||
- (void)indexContentWithTitle:(NSString *)title description:(NSString *)description publiclyIndexable:(BOOL)publiclyIndexable type:(NSString *)type thumbnailUrl:(NSURL *)thumbnailUrl keywords:(NSSet *)keywords userInfo:(NSDictionary *)userInfo expirationDate:(NSDate *)expirationDate callback:(callbackWithUrl)callback; | ||
|
||
|
||
|
||
/* This one has a different callback, which includes the spotlightIdentifier, and requires a different signature | ||
It cannot be part of the stack of method signatures above, because of the different callback type.*/ | ||
- (void)indexContentWithTitle:(NSString *)title description:(NSString *)description publiclyIndexable:(BOOL)publiclyIndexable type:(NSString *)type thumbnailUrl:(NSURL *)thumbnailUrl keywords:(NSSet *)keywords userInfo:(NSDictionary *)userInfo expirationDate:(NSDate *)expirationDate callback:(callbackWithUrl)callback spotlightCallback:(callbackWithUrlAndSpotlightIdentifier)spotlightCallback; | ||
|
||
|
||
@end |
Oops, something went wrong.