Skip to content

Commit 0786a24

Browse files
author
Edward Smith
committed
Release 0.16.2.
1 parent b6d8089 commit 0786a24

File tree

10 files changed

+272
-27
lines changed

10 files changed

+272
-27
lines changed

Branch.framework.zip

274 KB
Binary file not shown.

Branch.framework/Versions/A/Branch

649 KB
Binary file not shown.

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

Lines changed: 198 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,203 @@ extern BNCProductCategory BNCProductCategorySportingGoods;
3737
extern BNCProductCategory BNCProductCategoryToysGames;
3838
extern BNCProductCategory BNCProductCategoryVehiclesParts;
3939

40+
#pragma mark - BNCCurrency
41+
42+
typedef NSString*const BNCCurrency;
43+
44+
extern BNCCurrency BNCCurrencyAED;
45+
extern BNCCurrency BNCCurrencyAFN;
46+
extern BNCCurrency BNCCurrencyALL;
47+
extern BNCCurrency BNCCurrencyAMD;
48+
extern BNCCurrency BNCCurrencyANG;
49+
extern BNCCurrency BNCCurrencyAOA;
50+
extern BNCCurrency BNCCurrencyARS;
51+
extern BNCCurrency BNCCurrencyAUD;
52+
extern BNCCurrency BNCCurrencyAWG;
53+
extern BNCCurrency BNCCurrencyAZN;
54+
extern BNCCurrency BNCCurrencyBAM;
55+
extern BNCCurrency BNCCurrencyBBD;
56+
57+
extern BNCCurrency BNCCurrencyBDT;
58+
extern BNCCurrency BNCCurrencyBGN;
59+
extern BNCCurrency BNCCurrencyBHD;
60+
extern BNCCurrency BNCCurrencyBIF;
61+
extern BNCCurrency BNCCurrencyBMD;
62+
extern BNCCurrency BNCCurrencyBND;
63+
extern BNCCurrency BNCCurrencyBOB;
64+
extern BNCCurrency BNCCurrencyBOV;
65+
extern BNCCurrency BNCCurrencyBRL;
66+
extern BNCCurrency BNCCurrencyBSD;
67+
extern BNCCurrency BNCCurrencyBTN;
68+
extern BNCCurrency BNCCurrencyBWP;
69+
70+
extern BNCCurrency BNCCurrencyBYN;
71+
extern BNCCurrency BNCCurrencyBYR;
72+
extern BNCCurrency BNCCurrencyBZD;
73+
extern BNCCurrency BNCCurrencyCAD;
74+
extern BNCCurrency BNCCurrencyCDF;
75+
extern BNCCurrency BNCCurrencyCHE;
76+
extern BNCCurrency BNCCurrencyCHF;
77+
extern BNCCurrency BNCCurrencyCHW;
78+
extern BNCCurrency BNCCurrencyCLF;
79+
extern BNCCurrency BNCCurrencyCLP;
80+
extern BNCCurrency BNCCurrencyCNY;
81+
extern BNCCurrency BNCCurrencyCOP;
82+
83+
extern BNCCurrency BNCCurrencyCOU;
84+
extern BNCCurrency BNCCurrencyCRC;
85+
extern BNCCurrency BNCCurrencyCUC;
86+
extern BNCCurrency BNCCurrencyCUP;
87+
extern BNCCurrency BNCCurrencyCVE;
88+
extern BNCCurrency BNCCurrencyCZK;
89+
extern BNCCurrency BNCCurrencyDJF;
90+
extern BNCCurrency BNCCurrencyDKK;
91+
extern BNCCurrency BNCCurrencyDOP;
92+
extern BNCCurrency BNCCurrencyDZD;
93+
extern BNCCurrency BNCCurrencyEGP;
94+
extern BNCCurrency BNCCurrencyERN;
95+
96+
extern BNCCurrency BNCCurrencyETB;
97+
extern BNCCurrency BNCCurrencyEUR;
98+
extern BNCCurrency BNCCurrencyFJD;
99+
extern BNCCurrency BNCCurrencyFKP;
100+
extern BNCCurrency BNCCurrencyGBP;
101+
extern BNCCurrency BNCCurrencyGEL;
102+
extern BNCCurrency BNCCurrencyGHS;
103+
extern BNCCurrency BNCCurrencyGIP;
104+
extern BNCCurrency BNCCurrencyGMD;
105+
extern BNCCurrency BNCCurrencyGNF;
106+
extern BNCCurrency BNCCurrencyGTQ;
107+
extern BNCCurrency BNCCurrencyGYD;
108+
109+
extern BNCCurrency BNCCurrencyHKD;
110+
extern BNCCurrency BNCCurrencyHNL;
111+
extern BNCCurrency BNCCurrencyHRK;
112+
extern BNCCurrency BNCCurrencyHTG;
113+
extern BNCCurrency BNCCurrencyHUF;
114+
extern BNCCurrency BNCCurrencyIDR;
115+
extern BNCCurrency BNCCurrencyILS;
116+
extern BNCCurrency BNCCurrencyINR;
117+
extern BNCCurrency BNCCurrencyIQD;
118+
extern BNCCurrency BNCCurrencyIRR;
119+
extern BNCCurrency BNCCurrencyISK;
120+
extern BNCCurrency BNCCurrencyJMD;
121+
122+
extern BNCCurrency BNCCurrencyJOD;
123+
extern BNCCurrency BNCCurrencyJPY;
124+
extern BNCCurrency BNCCurrencyKES;
125+
extern BNCCurrency BNCCurrencyKGS;
126+
extern BNCCurrency BNCCurrencyKHR;
127+
extern BNCCurrency BNCCurrencyKMF;
128+
extern BNCCurrency BNCCurrencyKPW;
129+
extern BNCCurrency BNCCurrencyKRW;
130+
extern BNCCurrency BNCCurrencyKWD;
131+
extern BNCCurrency BNCCurrencyKYD;
132+
extern BNCCurrency BNCCurrencyKZT;
133+
extern BNCCurrency BNCCurrencyLAK;
134+
135+
extern BNCCurrency BNCCurrencyLBP;
136+
extern BNCCurrency BNCCurrencyLKR;
137+
extern BNCCurrency BNCCurrencyLRD;
138+
extern BNCCurrency BNCCurrencyLSL;
139+
extern BNCCurrency BNCCurrencyLYD;
140+
extern BNCCurrency BNCCurrencyMAD;
141+
extern BNCCurrency BNCCurrencyMDL;
142+
extern BNCCurrency BNCCurrencyMGA;
143+
extern BNCCurrency BNCCurrencyMKD;
144+
extern BNCCurrency BNCCurrencyMMK;
145+
extern BNCCurrency BNCCurrencyMNT;
146+
extern BNCCurrency BNCCurrencyMOP;
147+
148+
extern BNCCurrency BNCCurrencyMRO;
149+
extern BNCCurrency BNCCurrencyMUR;
150+
extern BNCCurrency BNCCurrencyMVR;
151+
extern BNCCurrency BNCCurrencyMWK;
152+
extern BNCCurrency BNCCurrencyMXN;
153+
extern BNCCurrency BNCCurrencyMXV;
154+
extern BNCCurrency BNCCurrencyMYR;
155+
extern BNCCurrency BNCCurrencyMZN;
156+
extern BNCCurrency BNCCurrencyNAD;
157+
extern BNCCurrency BNCCurrencyNGN;
158+
extern BNCCurrency BNCCurrencyNIO;
159+
extern BNCCurrency BNCCurrencyNOK;
160+
161+
extern BNCCurrency BNCCurrencyNPR;
162+
extern BNCCurrency BNCCurrencyNZD;
163+
extern BNCCurrency BNCCurrencyOMR;
164+
extern BNCCurrency BNCCurrencyPAB;
165+
extern BNCCurrency BNCCurrencyPEN;
166+
extern BNCCurrency BNCCurrencyPGK;
167+
extern BNCCurrency BNCCurrencyPHP;
168+
extern BNCCurrency BNCCurrencyPKR;
169+
extern BNCCurrency BNCCurrencyPLN;
170+
extern BNCCurrency BNCCurrencyPYG;
171+
extern BNCCurrency BNCCurrencyQAR;
172+
extern BNCCurrency BNCCurrencyRON;
173+
174+
extern BNCCurrency BNCCurrencyRSD;
175+
extern BNCCurrency BNCCurrencyRUB;
176+
extern BNCCurrency BNCCurrencyRWF;
177+
extern BNCCurrency BNCCurrencySAR;
178+
extern BNCCurrency BNCCurrencySBD;
179+
extern BNCCurrency BNCCurrencySCR;
180+
extern BNCCurrency BNCCurrencySDG;
181+
extern BNCCurrency BNCCurrencySEK;
182+
extern BNCCurrency BNCCurrencySGD;
183+
extern BNCCurrency BNCCurrencySHP;
184+
extern BNCCurrency BNCCurrencySLL;
185+
extern BNCCurrency BNCCurrencySOS;
186+
187+
extern BNCCurrency BNCCurrencySRD;
188+
extern BNCCurrency BNCCurrencySSP;
189+
extern BNCCurrency BNCCurrencySTD;
190+
extern BNCCurrency BNCCurrencySYP;
191+
extern BNCCurrency BNCCurrencySZL;
192+
extern BNCCurrency BNCCurrencyTHB;
193+
extern BNCCurrency BNCCurrencyTJS;
194+
extern BNCCurrency BNCCurrencyTMT;
195+
extern BNCCurrency BNCCurrencyTND;
196+
extern BNCCurrency BNCCurrencyTOP;
197+
extern BNCCurrency BNCCurrencyTRY;
198+
extern BNCCurrency BNCCurrencyTTD;
199+
200+
extern BNCCurrency BNCCurrencyTWD;
201+
extern BNCCurrency BNCCurrencyTZS;
202+
extern BNCCurrency BNCCurrencyUAH;
203+
extern BNCCurrency BNCCurrencyUGX;
204+
extern BNCCurrency BNCCurrencyUSD;
205+
extern BNCCurrency BNCCurrencyUSN;
206+
extern BNCCurrency BNCCurrencyUYI;
207+
extern BNCCurrency BNCCurrencyUYU;
208+
extern BNCCurrency BNCCurrencyUZS;
209+
extern BNCCurrency BNCCurrencyVEF;
210+
extern BNCCurrency BNCCurrencyVND;
211+
extern BNCCurrency BNCCurrencyVUV;
212+
213+
extern BNCCurrency BNCCurrencyWST;
214+
extern BNCCurrency BNCCurrencyXAF;
215+
extern BNCCurrency BNCCurrencyXAG;
216+
extern BNCCurrency BNCCurrencyXAU;
217+
extern BNCCurrency BNCCurrencyXBA;
218+
extern BNCCurrency BNCCurrencyXBB;
219+
extern BNCCurrency BNCCurrencyXBC;
220+
extern BNCCurrency BNCCurrencyXBD;
221+
extern BNCCurrency BNCCurrencyXCD;
222+
extern BNCCurrency BNCCurrencyXDR;
223+
extern BNCCurrency BNCCurrencyXFU;
224+
extern BNCCurrency BNCCurrencyXOF;
225+
226+
extern BNCCurrency BNCCurrencyXPD;
227+
extern BNCCurrency BNCCurrencyXPF;
228+
extern BNCCurrency BNCCurrencyXPT;
229+
extern BNCCurrency BNCCurrencyXSU;
230+
extern BNCCurrency BNCCurrencyXTS;
231+
extern BNCCurrency BNCCurrencyXUA;
232+
extern BNCCurrency BNCCurrencyXXX;
233+
extern BNCCurrency BNCCurrencyYER;
234+
extern BNCCurrency BNCCurrencyZAR;
235+
extern BNCCurrency BNCCurrencyZMW;
236+
40237
#pragma mark - BNCProduct
41238

42239
@interface BNCProduct : NSObject
@@ -53,7 +250,7 @@ extern BNCProductCategory BNCProductCategoryVehiclesParts;
53250

54251
@interface BNCCommerceEvent : NSObject
55252
@property (nonatomic, strong) NSDecimalNumber *revenue;
56-
@property (nonatomic, strong) NSString *currency;
253+
@property (nonatomic, strong) BNCCurrency currency;
57254
@property (nonatomic, strong) NSString *transactionID;
58255
@property (nonatomic, strong) NSDecimalNumber *shipping;
59256
@property (nonatomic, strong) NSDecimalNumber *tax;

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

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111
#define FILE_NAME [[NSString stringWithUTF8String:__FILE__] lastPathComponent]
1212
#define LINE_NUM __LINE__
1313

14+
NSURL* /* _Nonnull */ BNCURLForBranchDirectory(void);
15+
1416
@interface BNCPreferenceHelper : NSObject
1517

16-
@property (strong, nonatomic) NSString *branchKey;
1718
@property (strong, nonatomic) NSString *lastRunBranchKey;
1819
@property (strong, nonatomic) NSDate *lastStrongMatchDate;
1920
@property (strong, nonatomic) NSString *appVersion;
@@ -29,7 +30,6 @@
2930
@property (strong, nonatomic) NSString *installParams;
3031
@property (assign, nonatomic) BOOL isDebug;
3132
@property (assign, nonatomic) BOOL shouldWaitForInit;
32-
@property (assign, nonatomic) BOOL suppressWarningLogs;
3333
@property (assign, nonatomic) BOOL checkedFacebookAppLinks;
3434
@property (assign, nonatomic) BOOL checkedAppleSearchAdAttribution;
3535
@property (assign, nonatomic) NSInteger retryCount;
@@ -44,14 +44,11 @@
4444
@property (strong) NSString *branchAPIURL;
4545

4646
+ (BNCPreferenceHelper *)preferenceHelper;
47-
+ (NSURL*) URLForBranchDirectory;
4847

4948
- (NSString *)getAPIBaseURL;
5049
- (NSString *)getAPIURL:(NSString *)endpoint;
5150
- (NSString *)getEndpointFromURL:(NSString *)url;
5251

53-
- (NSString *)getBranchKey:(BOOL)isLive;
54-
5552
- (void)clearUserCreditsAndCounts;
5653
- (void)clearUserCredits;
5754

@@ -74,9 +71,6 @@
7471
- (NSMutableDictionary *)instrumentationDictionary;
7572
- (void)clearInstrumentationDictionary;
7673

77-
- (void)log:(NSString *)filename line:(int)line message:(NSString *)format, ...;
78-
- (void)logWarning:(NSString *)message;
79-
8074
- (void)saveBranchAnalyticsData:(NSDictionary *)analyticsData;
8175
- (void)clearBranchAnalyticsData;
8276
- (NSMutableDictionary *)getBranchAnalyticsData;

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

Lines changed: 54 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -134,17 +134,18 @@ typedef NS_ENUM(NSUInteger, BranchCreditHistoryOrder) {
134134
/// @name Global Instance Accessors
135135
///--------------------------------
136136

137-
/**
138-
Gets the global, live Branch instance.
139-
*/
140-
+ (Branch *)getInstance;
141-
142137
/**
143138
Gets the global, test Branch instance.
144-
139+
145140
@warning This method is not meant to be used in production!
141+
*/
142+
+ (Branch *) getTestInstance __attribute__((deprecated(("Use `Branch.useTestBranchKey = YES;` instead."))));
143+
144+
145+
/**
146+
Gets the global, live Branch instance.
146147
*/
147-
+ (Branch *)getTestInstance;
148+
+ (Branch *)getInstance;
148149

149150
/**
150151
Gets the global Branch instance, configures using the specified key
@@ -154,6 +155,33 @@ typedef NS_ENUM(NSUInteger, BranchCreditHistoryOrder) {
154155
*/
155156
+ (Branch *)getInstance:(NSString *)branchKey;
156157

158+
/// TODO: Document:
159+
/**
160+
Sets Branch to use the test `key_test_...` Branch key found in the Info.plist.
161+
This can only be set before `[Branch getInstance...]` is called.
162+
163+
@param useTestKey If YES then Branch to use the Branch test found in your app's Info.plist.
164+
*/
165+
+ (void) setUseTestBranchKey:(BOOL)useTestKey;
166+
167+
/// @return Returns true if the Branch test key should be used.
168+
+ (BOOL) useTestBranchKey;
169+
170+
/**
171+
Directly sets the Branch key to be used. Branch usually reads the Branch key from your app's
172+
Info.plist file which is recommended and more convenient. But the Branch key can also be set
173+
with this method. See the documentation at
174+
https://dev.branch.io/getting-started/sdk-integration-guide/guide/ios/#configure-xcode-project
175+
for information about configuring your app with Branch keys.
176+
177+
You can only set the Branch key once per app run.
178+
179+
@param branchKey The Branch key to use.
180+
*/
181+
+ (void) setBranchKey:(NSString*)branchKey;
182+
183+
/// @return Returns the current Branch key.
184+
+ (NSString*) branchKey;
157185

158186
#pragma mark - BranchActivityItemProvider methods
159187

@@ -338,12 +366,23 @@ typedef NS_ENUM(NSUInteger, BranchCreditHistoryOrder) {
338366
*/
339367
- (BOOL)handleDeepLink:(NSURL *)url;
340368

369+
370+
/**
371+
Have Branch end the current deep link session and start a new session with the provided URL.
372+
373+
@param url The URL to use to start the new session.
374+
@return Returns true if the passed URL can be handled by Branch.
375+
*/
376+
377+
-(BOOL)handleDeepLinkWithNewSession:(NSURL *)url;
378+
341379
/**
342380
Allow Branch to handle restoration from an NSUserActivity, returning whether or not it was
343381
from a Branch link.
344382
345383
@param userActivity The NSUserActivity that caused the app to be opened.
346384
*/
385+
347386
- (BOOL)continueUserActivity:(NSUserActivity *)userActivity;
348387

349388
/**
@@ -399,7 +438,14 @@ typedef NS_ENUM(NSUInteger, BranchCreditHistoryOrder) {
399438
/// @name Deep Link Controller
400439
///---------------------------
401440

402-
- (void)registerDeepLinkController:(UIViewController <BranchDeepLinkingController> *)controller forKey:(NSString *)key;
441+
- (void)registerDeepLinkController:(UIViewController <BranchDeepLinkingController> *)controller forKey:(NSString *)key __attribute__((deprecated(("This API is deprecated. Please use registerDeepLinkController: forKey: withOption:"))));
442+
443+
/**
444+
Allow Branch to handle a view controller with options to push, present or show.
445+
Note:
446+
* If push option is used and the rootviewcontroller of window is not of type UINavigationViewController, than the sharing View controller would be presented automatically
447+
*/
448+
- (void)registerDeepLinkController:(UIViewController <BranchDeepLinkingController> *)controller forKey:(NSString *)key withPresentation:(BNCViewControllerPresentationOption)option;
403449

404450
#pragma mark - Configuration methods
405451

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,21 @@
55
// Created by Graham Mueller on 6/18/15.
66
// Copyright (c) 2015 Branch Metrics. All rights reserved.
77
//
8-
8+
#import <Foundation/Foundation.h>
9+
#import <UIKit/UIKit.h>
910
@protocol BranchDeepLinkingControllerCompletionDelegate <NSObject>
1011

11-
- (void)deepLinkingControllerCompleted;
12+
- (void)deepLinkingControllerCompleted __attribute__((deprecated(("This API is deprecated. Instead, use deepLinkingControllerCompletedFrom: viewController"))));;
13+
- (void)deepLinkingControllerCompletedFrom:(UIViewController*) viewController;
1214

1315
@end
1416

17+
typedef NS_ENUM(NSInteger, BNCViewControllerPresentationOption) {
18+
BNCViewControllerOptionShow,
19+
BNCViewControllerOptionPush,
20+
BNCViewControllerOptionPresent
21+
};
22+
1523
@protocol BranchDeepLinkingController <NSObject>
1624

1725
- (void)configureControlWithData:(NSDictionary *)data;

0 commit comments

Comments
 (0)