Skip to content

Commit a9b11c2

Browse files
author
Edward Smith
committed
Release 0.24.0.
1 parent e6748b8 commit a9b11c2

File tree

9 files changed

+50
-6
lines changed

9 files changed

+50
-6
lines changed

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.23.5</string>
20+
<string>0.24.0</string>
2121
<key>CFBundleSignature</key>
2222
<string>????</string>
2323
<key>CFBundleVersion</key>
24-
<string>0.23.5</string>
24+
<string>0.24.0</string>
2525
<key>LSRequiresIPhoneOS</key>
2626
<true/>
2727
<key>NSHumanReadableCopyright</key>

Branch.framework/Versions/A/Branch

137 KB
Binary file not shown.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ typedef NS_ENUM(NSInteger, BNCErrorCode) {
3030
BNCRedeemZeroCreditsError = 1012,
3131
BNCSpotlightIdentifierError = 1013,
3232
BNCSpotlightPublicIndexError = 1014,
33+
BNCTrackingDisabledError = 1015,
3334
BNCHighestError,
3435
};
3536

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@
1111
@interface BNCLinkCache : NSObject
1212
- (void)setObject:(NSString *)anObject forKey:(BNCLinkData *)aKey;
1313
- (NSString *)objectForKey:(BNCLinkData *)aKey;
14+
- (void) clear;
1415
@end

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ extern BNCLogFlushFunctionPtr _Nullable BNCLogFlushFunction(void);
131131
extern void BNCLogWriteMessageFormat(
132132
BNCLogLevel logLevel,
133133
const char *_Nullable sourceFileName,
134-
int sourceLineNumber,
134+
int32_t sourceLineNumber,
135135
id _Nullable messageFormat,
136136
...
137137
);
@@ -140,7 +140,7 @@ extern void BNCLogWriteMessageFormat(
140140
extern void BNCLogWriteMessage(
141141
BNCLogLevel logLevel,
142142
NSString *_Nonnull sourceFileName,
143-
NSUInteger sourceLineNumber,
143+
int32_t sourceLineNumber,
144144
NSString *_Nonnull message
145145
);
146146

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ NSURL* /* _Nonnull */ BNCURLForBranchDirectory(void);
5454
@property (strong, atomic) NSArray<NSString*> *URLBlackList;
5555
@property (assign, atomic) NSInteger URLBlackListVersion;
5656

57+
@property (assign, atomic) BOOL trackingDisabled;
58+
- (void) clearTrackingInformation;
59+
5760
+ (BNCPreferenceHelper *)preferenceHelper;
5861

5962
- (NSString *)getAPIBaseURL;
@@ -88,6 +91,7 @@ NSURL* /* _Nonnull */ BNCURLForBranchDirectory(void);
8891
- (NSDictionary *)getContentAnalyticsManifest;
8992
- (void)saveContentAnalyticsManifest:(NSDictionary *)cdManifest;
9093

94+
- (NSMutableString*) sanitizedMutableBaseURL:(NSString*)baseUrl;
9195
- (void) synchronize; // Flushes preference queue to persistence.
9296

9397
@end

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

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,8 @@ typedef NS_ENUM(NSUInteger, BranchCreditHistoryOrder) {
230230
/// @return Returns the current Branch key.
231231
+ (NSString*) branchKey;
232232

233+
+ (BOOL) branchKeyIsSet;
234+
233235
/**
234236
* By default, the Branch SDK will include the device fingerprint ID as metadata in Crashlytics
235237
* reports. This can help locate problems by correlating API traffic with a crash. To
@@ -678,6 +680,29 @@ typedef NS_ENUM(NSUInteger, BranchCreditHistoryOrder) {
678680

679681
- (void)setInstallRequestDelay:(NSInteger)installRequestDelay;
680682

683+
/**
684+
Disables the Branch SDK from tracking the user. This is useful for GDPR privacy compliance.
685+
686+
When tracking is disabled, the Branch SDK will clear the Branch defaults of user identifying
687+
information and prevent Branch from making any Branch network calls that will track the user.
688+
689+
Note that:
690+
691+
* Opening Branch deep links with an explicit URL will work.
692+
* Deferred deep linking will not work.
693+
* Generating short links will not work and will return long links instead.
694+
* Sending user tracking events such as `userCompletedAction`, `BranchCommerceEvents`, and
695+
`BranchEvents` will fail.
696+
* User rewards and credits will not work.
697+
* Setting a user identity and logging a user identity out will not work.
698+
699+
@param disabled If set to `true` then tracking will be disabled.
700+
@warning This will prevent most of the Branch SDK functionality.
701+
*/
702+
+ (void) setTrackingDisabled:(BOOL)disabled;
703+
704+
///Returns the current tracking state.
705+
+ (BOOL) trackingDisabled;
681706

682707
#pragma mark - Session Item methods
683708

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,16 @@ FOUNDATION_EXPORT BranchStandardEvent _Nonnull BranchStandardEventUnlockAchievem
7272
- (NSDictionary*_Nonnull) dictionary; //!< Returns a dictionary representation of the event.
7373
- (NSString* _Nonnull) description; //!< Returns a string description of the event.
7474
@end
75+
76+
#pragma mark - BranchEventRequest
77+
78+
@interface BranchEventRequest : BNCServerRequest <NSCoding>
79+
80+
- (instancetype _Nonnull) initWithServerURL:(NSURL*_Nonnull)serverURL
81+
eventDictionary:(NSDictionary*_Nullable)eventDictionary
82+
completion:(void (^_Nullable)(NSDictionary*_Nullable response, NSError*_Nullable error))completion;
83+
84+
@property (strong) NSDictionary*_Nullable eventDictionary;
85+
@property (strong) NSURL*_Nullable serverURL;
86+
@property (copy) void (^_Nullable completion)(NSDictionary*_Nullable response, NSError*_Nullable error);
87+
@end

checksum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#checksum for Branch-iOS-SDK found at https://s3-us-west-1.amazonaws.com/branchhost/Branch-iOS-SDK.zip
2-
a9a64a86b6068c564feb9905188c36bfc93f1a71 Branch-iOS-SDK.zip
2+
39ffa1a7ed07fee4370534e2baab39fa26985c21 Branch-iOS-SDK.zip
33
#checksum for Branch-iOS-TestBed found at https://s3-us-west-1.amazonaws.com/branchhost/Branch-iOS-TestBed.zip
4-
037cc2c49045ebbe2578af27268fa5496a39c7d7 Branch-iOS-TestBed.zip
4+
2c15a83013806369afdb4044d36f196244b4b179 Branch-iOS-TestBed.zip

0 commit comments

Comments
 (0)