Skip to content

Commit 93af5bc

Browse files
committed
Release 0.30.0.
1 parent a569003 commit 93af5bc

File tree

17 files changed

+73
-81
lines changed

17 files changed

+73
-81
lines changed

Branch-SDK/Branch-SDK/BNCConfig.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
BOOL const BNC_API_PINNED = NO;
1313
NSString * const BNC_API_VERSION = @"v1";
1414
NSString * const BNC_LINK_URL = @"https://bnc.lt";
15-
NSString * const BNC_SDK_VERSION = @"0.29.3";
15+
NSString * const BNC_SDK_VERSION = @"0.30.0";

Branch-TestBed-Swift/TestBed-Swift.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@
670670
);
671671
inputPaths = (
672672
"${PODS_ROOT}/Target Support Files/Pods-TestBed-Swift/Pods-TestBed-Swift-frameworks.sh",
673-
"${PODS_ROOT}/Localytics/Localytics-iOS-5.5.0/Localytics.framework",
673+
"${PODS_ROOT}/Localytics/Localytics-iOS-5.8.0/Localytics.framework",
674674
"${PODS_ROOT}/Tune/Tune.framework",
675675
"${PODS_ROOT}/YandexMobileMetrica/dynamic/YandexMobileMetrica.framework",
676676
"${PODS_ROOT}/YandexMobileMetrica/dynamic/YandexMobileMetricaCrashes.framework",

Branch-TestBed-Swift/TestBed-Swift/AppDelegate.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@ import Crashlytics
1212
@UIApplicationMain
1313
class AppDelegate: UIResponder, UIApplicationDelegate, AdjustDelegate, AppsFlyerTrackerDelegate {
1414

15+
func onConversionDataSuccess(_ conversionInfo: [AnyHashable : Any]!) {
16+
17+
}
18+
19+
func onConversionDataFail(_ error: Error!) {
20+
21+
}
22+
23+
1524
var window: UIWindow?
1625

1726
func application(_

Branch-TestBed/Framework-Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
<key>CFBundlePackageType</key>
1818
<string>FMWK</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>0.29.3</string>
20+
<string>0.30.0</string>
2121
<key>CFBundleSignature</key>
2222
<string>????</string>
2323
<key>CFBundleVersion</key>
24-
<string>0.29.3</string>
24+
<string>0.30.0</string>
2525
<key>LSRequiresIPhoneOS</key>
2626
<true/>
2727
<key>NSHumanReadableCopyright</key>

Branch.framework/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
<key>CFBundlePackageType</key>
1818
<string>FMWK</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>0.29.3</string>
20+
<string>0.30.0</string>
2121
<key>CFBundleSignature</key>
2222
<string>????</string>
2323
<key>CFBundleVersion</key>
24-
<string>0.29.3</string>
24+
<string>0.30.0</string>
2525
<key>LSRequiresIPhoneOS</key>
2626
<true/>
2727
<key>NSHumanReadableCopyright</key>

Branch.framework/Versions/A/Branch

352 KB
Binary file not shown.

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

Lines changed: 0 additions & 46 deletions
This file was deleted.

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,24 +33,25 @@ NSURL* /* _Nonnull */ BNCURLForBranchDirectory(void);
3333
@property (strong, nonatomic) NSString *sessionParams;
3434
@property (strong, nonatomic) NSString *installParams;
3535
@property (assign, nonatomic) BOOL isDebug;
36-
@property (assign, nonatomic) BOOL shouldWaitForInit;
3736
@property (assign, nonatomic) BOOL checkedFacebookAppLinks;
3837
@property (assign, nonatomic) BOOL checkedAppleSearchAdAttribution;
3938
@property (assign, nonatomic) NSInteger retryCount;
4039
@property (assign, nonatomic) NSTimeInterval retryInterval;
4140
@property (assign, nonatomic) NSTimeInterval timeout;
4241
@property (strong, atomic) NSString *externalIntentURI;
4342
@property (strong, nonatomic) NSMutableDictionary *savedAnalyticsData;
44-
@property (assign, nonatomic) NSInteger installRequestDelay;
4543
@property (strong, nonatomic) NSDictionary *appleSearchAdDetails;
4644
@property (assign, nonatomic) BOOL appleSearchAdNeedsSend;
4745
@property (strong, nonatomic) NSString *lastSystemBuildVersion;
4846
@property (strong, nonatomic) NSString *browserUserAgentString;
4947
@property (strong, atomic) NSString *referringURL;
5048
@property (strong, atomic) NSString *branchAPIURL;
49+
@property (nonatomic, strong, readwrite) NSString *branchBlacklistURL;
5150
@property (assign, atomic) BOOL limitFacebookTracking;
5251
@property (strong, atomic) NSDate *previousAppBuildDate;
5352

53+
@property (strong, nonatomic, readwrite) NSURL *faceBookAppLink;
54+
5455
@property (strong, atomic) NSArray<NSString*> *URLBlackList;
5556
@property (assign, atomic) NSInteger URLBlackListVersion;
5657
@property (assign, atomic) BOOL blacklistURLOpen;

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

Lines changed: 42 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#import "BNCCommerceEvent.h"
1919
#import "BNCConfig.h"
2020
#import "BNCDebug.h"
21-
#import "BNCError.h"
21+
#import "NSError+Branch.h"
2222
#import "BNCLinkCache.h"
2323
#import "BNCLog.h"
2424
#import "BNCPreferenceHelper.h"
@@ -168,21 +168,21 @@ typedef NS_ENUM(NSUInteger, BranchCreditHistoryOrder) {
168168
169169
@warning This method is not meant to be used in production!
170170
*/
171-
+ (nullable Branch *) getTestInstance __attribute__((deprecated(("Use `Branch.useTestBranchKey = YES;` instead."))));
171+
+ (Branch *)getTestInstance __attribute__((deprecated(("Use `Branch.useTestBranchKey = YES;` instead."))));
172172

173173

174174
/**
175175
Gets the global, live Branch instance.
176176
*/
177-
+ (nullable Branch *)getInstance;
177+
+ (Branch *)getInstance;
178178

179179
/**
180180
Gets the global Branch instance, configures using the specified key
181181
182182
@param branchKey The Branch key to be used by the Branch instance. This can be any live or test key.
183183
@warning This method is not the recommended way of using Branch. Try using your project's `Info.plist` if possible.
184184
*/
185-
+ (nullable Branch *)getInstance:(NSString *)branchKey;
185+
+ (Branch *)getInstance:(NSString *)branchKey;
186186

187187
/**
188188
Set the network service class.
@@ -624,10 +624,27 @@ typedef NS_ENUM(NSUInteger, BranchCreditHistoryOrder) {
624624
- (void)registerFacebookDeepLinkingClass:(id)FBSDKAppLinkUtility;
625625

626626
/**
627-
Check for Apple Search Ads before initialization. Will add about 1 second from call to initSession to callback due to Apple's latency.
627+
Check for Apple Search Ads before initialization.
628+
629+
This will usually add less than 1 second on first time startup. Up to 3.5 seconds if Apple Search Ads fails to respond.
628630
*/
629631
- (void)delayInitToCheckForSearchAds;
630632

633+
/**
634+
Increases the amount of time the SDK waits for Apple Search Ads to respond.
635+
The default wait has a better than 90% success rate, however waiting longer can improve the success rate.
636+
637+
This will increase the usual delay to about 3 seconds on first time startup. Up to about 15 seconds if Apple Search Ads fails to respond.
638+
*/
639+
- (void)useLongerWaitForAppleSearchAds;
640+
641+
/**
642+
Ignores Apple Search Ads test data.
643+
644+
Apple returns test data for all calls made to the Apple Search Ads API on developer and testflight builds.
645+
*/
646+
- (void)ignoreAppleSearchAdsTestData;
647+
631648
/**
632649
Specify the time to wait in seconds between retries in the case of a Branch server error
633650
@@ -653,7 +670,7 @@ typedef NS_ENUM(NSUInteger, BranchCreditHistoryOrder) {
653670
Specify that Branch should NOT use an invisible SFSafariViewController to attempt cookie-based matching upon install.
654671
If you call this method, we will fall back to using our pool of cookie-IDFA pairs for matching.
655672
*/
656-
- (void)disableCookieBasedMatching;
673+
- (void)disableCookieBasedMatching __attribute__((deprecated(("Feature removed. Did not work on iOS 11+"))));
657674

658675
/**
659676
TL;DR: If you're using a version of the Facebook SDK that prevents application:didFinishLaunchingWithOptions: from
@@ -681,15 +698,15 @@ typedef NS_ENUM(NSUInteger, BranchCreditHistoryOrder) {
681698
*/
682699
- (void)setRequestMetadataKey:(NSString *)key value:(nullable id)value;
683700

684-
- (void)enableDelayedInit;
701+
- (void)enableDelayedInit __attribute__((deprecated(("No longer valid with new init process"))));
685702

686-
- (void)disableDelayedInit;
703+
- (void)disableDelayedInit __attribute__((deprecated(("No longer valid with new init process"))));
687704

688-
- (nullable NSURL *)getUrlForOnboardingWithRedirectUrl:(nullable NSString *)redirectUrl;
705+
- (nullable NSURL *)getUrlForOnboardingWithRedirectUrl:(nullable NSString *)redirectUrl __attribute__((deprecated(("Feature removed. Did not work on iOS 11+"))));;
689706

690-
- (void)resumeInit;
707+
- (void)resumeInit __attribute__((deprecated(("Feature removed. Did not work on iOS 11+"))));
691708

692-
- (void)setInstallRequestDelay:(NSInteger)installRequestDelay;
709+
- (void)setInstallRequestDelay:(NSInteger)installRequestDelay __attribute__((deprecated(("No longer valid with new init process"))));
693710

694711
/**
695712
Disables the Branch SDK from tracking the user. This is useful for GDPR privacy compliance.
@@ -947,14 +964,26 @@ typedef NS_ENUM(NSUInteger, BranchCreditHistoryOrder) {
947964
*/
948965
- (void) sendCommerceEvent:(BNCCommerceEvent*)commerceEvent
949966
metadata:(NSDictionary<NSString*,id>*)metadata
950-
withCompletion:(void (^) (NSDictionary*response, NSError*error))completion __attribute__((deprecated(("Please use BranchEvent to track commerce events."))));
967+
withCompletion:(void (^) (NSDictionary* _Nullable response, NSError* _Nullable error))completion __attribute__((deprecated(("Please use BranchEvent to track commerce events."))));
951968

952969

953970
#pragma mark - Query methods
954971

972+
/**
973+
Branch includes SDK methods to allow retrieval of our Cross Platform ID (CPID) from the client. This results in an asynchronous call being made to Branch’s servers with CPID data returned when possible.
974+
975+
@param completion callback with cross platform id data
976+
*/
955977
- (void)crossPlatformIdDataWithCompletion:(void(^) (BranchCrossPlatformID * _Nullable cpid))completion;
956978

957-
- (void)lastTouchAttributedDataWithCompletion:(void(^) (BranchLastAttributedTouchData * _Nullable ltad))completion;
979+
/**
980+
Branch includes SDK methods to allow retrieval of our last attributed touch data (LATD) from the client. This results in an asynchronous call being made to Branch's servers with LATD data returned when possible.
981+
Last attributed touch data contains the information associated with that user's last viewed impression or clicked link.
982+
983+
@param window attribution window in days. If the window is outside the server supported range, it will default to 30 days.
984+
@param completion callback with attribution data
985+
*/
986+
- (void)lastAttributedTouchDataWithAttributionWindow:(NSInteger)window completion:(void(^) (BranchLastAttributedTouchData * _Nullable latd))completion;
958987

959988
#pragma mark - Short Url Sync methods
960989

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ NS_ASSUME_NONNULL_BEGIN
1616
@property (nonatomic, copy, readonly) NSString *crossPlatformID;
1717
@property (nonatomic, copy, readonly) NSNumber *score;
1818

19-
+ (BranchProbabilisticCrossPlatformID *)buildFromJSON:(NSDictionary *)json;
19+
+ (nullable BranchProbabilisticCrossPlatformID *)buildFromJSON:(NSDictionary *)json;
2020

2121
@end
2222

@@ -27,7 +27,7 @@ NS_ASSUME_NONNULL_BEGIN
2727
@property (nonatomic, strong, readonly) NSArray<NSString *> *pastCrossPlatformIDs;
2828
@property (nonatomic, strong, readonly) NSArray<BranchProbabilisticCrossPlatformID *> *probabiliticCrossPlatformIDs;
2929

30-
+ (BranchCrossPlatformID *)buildFromJSON:(NSDictionary *)json;
30+
+ (nullable BranchCrossPlatformID *)buildFromJSON:(NSDictionary *)json;
3131

3232
+ (void)requestCrossPlatformIdData:(BNCServerInterface *)serverInterface key:(NSString *)key completion:(void(^) (BranchCrossPlatformID * _Nullable cpid))completion;
3333

0 commit comments

Comments
 (0)