Skip to content

Commit b6aa1b0

Browse files
committed
Updates for 0.12.6 release.
1 parent 03b8efa commit b6aa1b0

File tree

11 files changed

+85
-17
lines changed

11 files changed

+85
-17
lines changed

Branch-SDK/Branch-SDK/BNCConfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#ifndef Branch_SDK_Config_h
1010
#define Branch_SDK_Config_h
1111

12-
#define SDK_VERSION @"0.12.5"
12+
#define SDK_VERSION @"0.12.6"
1313

1414
#define BNC_PROD_ENV
1515
//#define BNC_STAGE_ENV

Branch-SDK/Branch-SDK/Branch.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1311,7 +1311,7 @@ + (NSString *)bundleIdentifier {
13111311
}
13121312

13131313
+ (NSString *)kitDisplayVersion {
1314-
return @"0.12.5";
1314+
return @"0.12.6";
13151315
}
13161316

1317-
@end
1317+
@end

Branch.framework/Versions/A/Branch

109 KB
Binary file not shown.

Branch.framework/Versions/A/Headers/BNCCallbacks.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111

1212
@class BranchUniversalObject, BranchLinkProperties;
1313

14-
typedef void (^callbackWithParams) (NSDictionary *params, NSError *error);
15-
typedef void (^callbackWithUrl) (NSString *url, NSError *error);
16-
typedef void (^callbackWithStatus) (BOOL changed, NSError *error);
17-
typedef void (^callbackWithList) (NSArray *list, NSError *error);
18-
typedef void (^callbackWithUrlAndSpotlightIdentifier) (NSString *url, NSString *spotlightIdentifier, NSError *error);
19-
typedef void (^callbackWithBranchUniversalObject) (BranchUniversalObject *universalObject, BranchLinkProperties *linkProperties, NSError *error);
14+
typedef void (^callbackWithParams) (NSDictionary * _Nonnull params, NSError * _Nullable error);
15+
typedef void (^callbackWithUrl) (NSString * _Nonnull url, NSError * _Nullable error);
16+
typedef void (^callbackWithStatus) (BOOL changed, NSError * _Nullable error);
17+
typedef void (^callbackWithList) (NSArray * _Nullable list, NSError * _Nullable error);
18+
typedef void (^callbackWithUrlAndSpotlightIdentifier) (NSString * _Nullable url, NSString * _Nullable spotlightIdentifier, NSError * _Nullable error);
19+
typedef void (^callbackWithBranchUniversalObject) (BranchUniversalObject * _Nonnull universalObject, BranchLinkProperties * _Nonnull linkProperties, NSError * _Nullable error);
2020

2121
#endif /* BNCCallbacks_h */

Branch.framework/Versions/A/Headers/BNCConfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#ifndef Branch_SDK_Config_h
1010
#define Branch_SDK_Config_h
1111

12-
#define SDK_VERSION @"0.12.5"
12+
#define SDK_VERSION @"0.12.6"
1313

1414
#define BNC_PROD_ENV
1515
//#define BNC_STAGE_ENV

Branch.framework/Versions/A/Headers/BNCLinkData.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ typedef NS_ENUM(NSUInteger, BranchLinkType) {
2323
- (void)setupChannel:(NSString *)channel;
2424
- (void)setupFeature:(NSString *)feature;
2525
- (void)setupStage:(NSString *)stage;
26+
- (void)setupCampaign:(NSString *)campaign;
2627
- (void)setupParams:(NSDictionary *)params;
2728
- (void)setupMatchDuration:(NSUInteger)duration;
2829
- (void)setupIgnoreUAString:(NSString *)ignoreUAString;

Branch.framework/Versions/A/Headers/Branch.h

Lines changed: 61 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,20 @@ typedef NS_ENUM(NSUInteger, BranchCreditHistoryOrder) {
199199
*/
200200
+ (BranchActivityItemProvider *)getBranchActivityItemWithParams:(NSDictionary *)params feature:(NSString *)feature stage:(NSString *)stage tags:(NSArray *)tags alias:(NSString *)alias;
201201

202+
/**
203+
Create a BranchActivityItemProvider which subclasses the `UIActivityItemProvider` This can be used for simple sharing via a `UIActivityViewController`.
204+
205+
Internally, this will create a short Branch Url that will be attached to the shared content.
206+
207+
@param params A dictionary to use while building up the Branch link.
208+
@param feature The feature the generated link will be associated with.
209+
@param stage The stage used for the generated link, indicating what part of a funnel the user is in.
210+
@param campaign Use this field to organize the links by actual marketing campaign.
211+
@param alias The alias for a link.
212+
@warning This can fail if the alias is already taken.
213+
*/
214+
+ (BranchActivityItemProvider *)getBranchActivityItemWithParams:(NSDictionary *)params feature:(NSString *)feature stage:(NSString *)stage campaign:(NSString *)campmaign tags:(NSArray *)tags alias:(NSString *)alias;
215+
202216
/**
203217
Create a BranchActivityItemProvider which subclasses the `UIActivityItemProvider` This can be used for simple sharing via a `UIActivityViewController`.
204218
@@ -407,8 +421,18 @@ typedef NS_ENUM(NSUInteger, BranchCreditHistoryOrder) {
407421
- (void)disableCookieBasedMatching;
408422

409423
/**
410-
If you're using a version of the Facebook SDK that prevents application:didFinishLaunchingWithOptions: from returning
411-
YES/true when a Universal Link is clicked, you should enable this option.
424+
TL;DR: If you're using a version of the Facebook SDK that prevents application:didFinishLaunchingWithOptions: from
425+
returning YES/true when a Universal Link is clicked, you should enable this option.
426+
427+
Long explanation: in application:didFinishLaunchingWithOptions: you should choose one of the following:
428+
429+
1. Always `return YES;`, and do *not* invoke `[[Branch getInstance] accountForFacebookSDKPreventingAppLaunch];`
430+
2. Allow the Facebook SDK to determine whether `application:didFinishLaunchingWithOptions:` returns `YES` or `NO`,
431+
and invoke `[[Branch getInstance] accountForFacebookSDKPreventingAppLaunch];`
432+
433+
The reason for this second option is that the Facebook SDK will return `NO` if a Universal Link opens the app
434+
but that UL is not a Facebook UL. Some developers prefer not to modify
435+
`application:didFinishLaunchingWithOptions:` to always return `YES` and should use this method instead.
412436
*/
413437
- (void)accountForFacebookSDKPreventingAppLaunch;
414438

@@ -749,21 +773,22 @@ typedef NS_ENUM(NSUInteger, BranchCreditHistoryOrder) {
749773
- (NSString *)getShortURLWithParams:(NSDictionary *)params andTags:(NSArray *)tags andChannel:(NSString *)channel andFeature:(NSString *)feature andStage:(NSString *)stage andAlias:(NSString *)alias ignoreUAString:(NSString *)ignoreUAString;
750774

751775
/**
752-
Get a short url with specified tags, params, channel, feature, and stage. The usage type will default to unlimited.
776+
Get a short url with specified tags, params, channel, feature, stage and campaign. The usage type will default to unlimited.
753777
754778
@param params Dictionary of parameters to include in the link.
755779
@param tags An array of tags to associate with this link, useful for tracking.
756780
@param channel The channel for the link. Examples could be Facebook, Twitter, SMS, etc, depending on where it will be shared.
757781
@param feature The feature this is utilizing. Examples could be Sharing, Referring, Inviting, etc.
758782
@param stage The stage used for the generated link, indicating what part of a funnel the user is in.
783+
@param campaign Use this field to organize the links by actual marketing campaign.
759784
@param alias The alias for a link.
760785
@param ignoreUAString The User Agent string to tell the server to ignore the next request from, to prevent it from treating a preview scrape as a link click.
761786
@param forceLinkCreation Whether we should create a link from the Branch Key even if initSession failed. Defaults to NO.
762787
@warning This method makes a synchronous url request.
763788
@warning This method is primarily intended to be an internal Branch method, used to work around a bug with SLComposeViewController
764789
@warning This can fail if the alias is already taken.
765790
*/
766-
- (NSString *)getShortURLWithParams:(NSDictionary *)params andTags:(NSArray *)tags andChannel:(NSString *)channel andFeature:(NSString *)feature andStage:(NSString *)stage andAlias:(NSString *)alias ignoreUAString:(NSString *)ignoreUAString forceLinkCreation:(BOOL)forceLinkCreation;
791+
- (NSString *)getShortURLWithParams:(NSDictionary *)params andTags:(NSArray *)tags andChannel:(NSString *)channel andFeature:(NSString *)feature andStage:(NSString *)stage andCampaign:(NSString *)campaign andAlias:(NSString *)alias ignoreUAString:(NSString *)ignoreUAString forceLinkCreation:(BOOL)forceLinkCreation;
767792

768793
/**
769794
Get a short url with specified tags, params, channel, feature, stage, and type.
@@ -806,6 +831,22 @@ typedef NS_ENUM(NSUInteger, BranchCreditHistoryOrder) {
806831
*/
807832
- (NSString *)getShortUrlWithParams:(NSDictionary *)params andTags:(NSArray *)tags andAlias:(NSString *)alias andChannel:(NSString *)channel andFeature:(NSString *)feature andStage:(NSString *)stage andMatchDuration:(NSUInteger)duration;
808833

834+
835+
/**
836+
Get a short url with specified params, channel, feature, stage, campaign and match duration. The usage type will default to unlimited.
837+
838+
@param params Dictionary of parameters to include in the link.
839+
@param tags An array of tags to associate with this link, useful for tracking.
840+
@param alias The alias for a link.
841+
@param channel The channel for the link. Examples could be Facebook, Twitter, SMS, etc, depending on where it will be shared.
842+
@param feature The feature this is utilizing. Examples could be Sharing, Referring, Inviting, etc.
843+
@param stage The stage used for the generated link, indicating what part of a funnel the user is in.
844+
@param campaign Use this field to organize the links by actual marketing campaign.
845+
@param matchDuration How long to keep an unmatched link click in the Branch backend server's queue before discarding.
846+
@warning This method makes a synchronous url request.
847+
*/
848+
- (NSString *)getShortUrlWithParams:(NSDictionary *)params andTags:(NSArray *)tags andAlias:(NSString *)alias andChannel:(NSString *)channel andFeature:(NSString *)feature andStage:(NSString *)stage andCampaign:campaign andMatchDuration:(NSUInteger)duration;
849+
809850
#pragma mark - Long Url generation
810851

811852
///--------------------------
@@ -1016,6 +1057,22 @@ typedef NS_ENUM(NSUInteger, BranchCreditHistoryOrder) {
10161057
*/
10171058
- (void)getShortUrlWithParams:(NSDictionary *)params andTags:(NSArray *)tags andAlias:(NSString *)alias andMatchDuration:(NSUInteger)duration andChannel:(NSString *)channel andFeature:(NSString *)feature andStage:(NSString *)stage andCallback:(callbackWithUrl)callback;
10181059

1060+
/**
1061+
Get a short url with the specified params, tags, channel, feature, stage, campaign and match duration. The usage type will default to unlimited.
1062+
1063+
@param params Dictionary of parameters to include in the link.
1064+
@param channel The channel for the link. Examples could be Facebook, Twitter, SMS, etc, depending on where it will be shared.
1065+
@param tags An array of tags to associate with this link, useful for tracking.
1066+
@param feature The feature this is utilizing. Examples could be Sharing, Referring, Inviting, etc.
1067+
@param stage The stage used for the generated link, indicating what part of a funnel the user is in.
1068+
@param matchDuration How long to keep an unmatched link click in the Branch backend server's queue before discarding.
1069+
@param campaign Use this field to organize the links by actual marketing campaign.
1070+
@param callback Callback called with the url.
1071+
@param alias The alias for a link.
1072+
@warning This can fail if the alias is already taken.
1073+
*/
1074+
- (void)getShortUrlWithParams:(NSDictionary *)params andTags:(NSArray *)tags andAlias:(NSString *)alias andMatchDuration:(NSUInteger)duration andChannel:(NSString *)channel andFeature:(NSString *)feature andStage:(NSString *)stage andCampaign:(NSString *)campaign andCallback:(callbackWithUrl)callback;
1075+
10191076
- (void)getSpotlightUrlWithParams:(NSDictionary *)params callback:(callbackWithParams)callback;
10201077

10211078
#pragma mark - Content Discovery methods

Branch.framework/Versions/A/Headers/BranchActivityItemProvider.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
- (NSArray *)activityItemTagsForChannel:(NSString *)channel;
2222
- (NSString *)activityItemFeatureForChannel:(NSString *)channel;
2323
- (NSString *)activityItemStageForChannel:(NSString *)channel;
24+
- (NSString *)activityItemCampaignForChannel:(NSString *)channel;
2425
- (NSString *)activityItemAliasForChannel:(NSString *)channel;
2526
- (NSString *)activityItemOverrideChannelForChannel:(NSString *)channel;
2627

@@ -29,6 +30,6 @@
2930
@interface BranchActivityItemProvider : UIActivityItemProvider
3031

3132
- (id)initWithParams:(NSDictionary *)params andTags:(NSArray *)tags andFeature:(NSString *)feature andStage:(NSString *)stage andAlias:(NSString *)alias __attribute__((deprecated(("Use the delegate method instead"))));;
32-
- (id)initWithParams:(NSDictionary *)params tags:(NSArray *)tags feature:(NSString *)feature stage:(NSString *)stage alias:(NSString *)alias delegate:(id <BranchActivityItemProviderDelegate>)delegate;
33+
- (id)initWithParams:(NSDictionary *)params tags:(NSArray *)tags feature:(NSString *)feature stage:(NSString *)stage campaign:(NSString *)campaign alias:(NSString *)alias delegate:(id <BranchActivityItemProviderDelegate>)delegate;
3334

3435
@end

Branch.framework/Versions/A/Headers/BranchLinkProperties.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
@property (nonatomic, strong) NSString *alias;
1616
@property (nonatomic, strong) NSString *channel;
1717
@property (nonatomic, strong) NSString *stage;
18+
@property (nonatomic, strong) NSString *campaign;
1819
@property (nonatomic) NSUInteger matchDuration;
1920
@property (nonatomic, strong) NSDictionary *controlParams;
2021

Branch.podspec

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "Branch"
3-
s.version = "0.12.5"
3+
s.version = "0.12.6"
44
s.summary = "Create an HTTP URL for any piece of content in your app"
55
s.description = <<-DESC
66
- Want the highest possible conversions on your sharing feature?
@@ -16,7 +16,6 @@ Use the Branch SDK (branch.io) to create and power the links that point back to
1616
s.license = 'Proprietary'
1717
s.author = { "Branch" => "[email protected]" }
1818
s.source = { :git => "https://github.com/BranchMetrics/iOS-Deferred-Deep-Linking-SDK.git", :tag => s.version.to_s }
19-
s.private_header_files = "Branch-SDK/Fabric/*.h"
2019
s.platform = :ios, '6.0'
2120
s.requires_arc = true
2221

0 commit comments

Comments
 (0)