Skip to content

Commit

Permalink
1.41.0 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
nsingh-branch committed Feb 5, 2022
1 parent 2342900 commit 91be337
Show file tree
Hide file tree
Showing 64 changed files with 412 additions and 441 deletions.
10 changes: 5 additions & 5 deletions Branch-SDK/BNCAppGroupsData.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ NS_ASSUME_NONNULL_BEGIN
@interface BNCAppGroupsData : NSObject

// app group used to share data between the App Clip and the Full App
@property (nonatomic, strong, readwrite) NSString *appGroup;
@property (nonatomic, readwrite, copy) NSString *appGroup;

// App Clip data
@property (nonatomic, strong, readwrite) NSString *bundleID;
@property (nonatomic, readwrite, copy) NSString *bundleID;
@property (nonatomic, strong, readwrite) NSDate *installDate;
@property (nonatomic, strong, readwrite) NSString *url;
@property (nonatomic, strong, readwrite) NSString *branchToken;
@property (nonatomic, strong, readwrite) NSString *bundleToken;
@property (nonatomic, readwrite, copy) NSString *url;
@property (nonatomic, readwrite, copy) NSString *branchToken;
@property (nonatomic, readwrite, copy) NSString *bundleToken;

+ (instancetype)shared;

Expand Down
20 changes: 10 additions & 10 deletions Branch-SDK/BNCApplication.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,33 +22,33 @@
+ (BNCApplication*_Nonnull) currentApplication;

/// The bundle identifier of the current
@property (atomic, readonly) NSString*_Nullable bundleID;
@property (nonatomic, readonly, copy) NSString*_Nullable bundleID;

/// The bundle display name from the info plist.
@property (atomic, readonly) NSString*_Nullable displayName;
@property (nonatomic, readonly, copy) NSString*_Nullable displayName;

/// The bundle short display name from the info plist.
@property (atomic, readonly) NSString*_Nullable shortDisplayName;
@property (nonatomic, readonly, copy) NSString*_Nullable shortDisplayName;

/// The short version ID as is typically shown to the user, like in iTunes or the app store.
@property (atomic, readonly) NSString*_Nullable displayVersionString;
@property (nonatomic, readonly, copy) NSString*_Nullable displayVersionString;

/// The version ID for developers use.
@property (atomic, readonly) NSString*_Nullable versionString;
@property (nonatomic, readonly, copy) NSString*_Nullable versionString;

/// The creation date of the current executable.
@property (atomic, readonly) NSDate*_Nullable currentBuildDate;
@property (nonatomic, readonly, strong) NSDate*_Nullable currentBuildDate;

/// The creating date of the exectuble the first time it was recorded by Branch.
@property (atomic, readonly) NSDate*_Nullable firstInstallBuildDate;
@property (nonatomic, readonly, strong) NSDate*_Nullable firstInstallBuildDate;

/// The date this app was installed on this device.
@property (atomic, readonly) NSDate*_Nullable currentInstallDate;
@property (nonatomic, readonly, strong) NSDate*_Nullable currentInstallDate;

/// The date this app was first installed on this device.
@property (atomic, readonly) NSDate*_Nullable firstInstallDate;
@property (nonatomic, readonly, strong) NSDate*_Nullable firstInstallDate;

/// The team identifier for the app.
@property (atomic, readonly) NSString*_Nullable teamID;
@property (nonatomic, readonly, copy) NSString*_Nullable teamID;

@end
18 changes: 9 additions & 9 deletions Branch-SDK/BNCCommerceEvent.h
Original file line number Diff line number Diff line change
Expand Up @@ -239,26 +239,26 @@ NSArray<BNCCurrency>*_Nonnull BNCCurrencyAllCurrencies(void);
#pragma mark - BNCProduct

@interface BNCProduct : NSObject
@property (nonatomic, strong) NSString*_Nullable sku;
@property (nonatomic, strong) NSString*_Nullable name;
@property (nonatomic, copy) NSString*_Nullable sku;
@property (nonatomic, copy) NSString*_Nullable name;
@property (nonatomic, strong) NSDecimalNumber*_Nullable price;
@property (nonatomic, strong) NSNumber*_Nullable quantity;
@property (nonatomic, strong) NSString*_Nullable brand;
@property (nonatomic, strong) BNCProductCategory _Nullable category;
@property (nonatomic, strong) NSString*_Nullable variant;
@property (nonatomic, copy) NSString*_Nullable brand;
@property (nonatomic, copy) BNCProductCategory _Nullable category;
@property (nonatomic, copy) NSString*_Nullable variant;
@end

#pragma mark - BNCCommerceEvent

//__attribute__((deprecated(("Please use BranchEvent to track commerce events."))))
@interface BNCCommerceEvent : NSObject
@property (nonatomic, strong) NSDecimalNumber*_Nullable revenue;
@property (nonatomic, strong) BNCCurrency _Nullable currency;
@property (nonatomic, strong) NSString*_Nullable transactionID;
@property (nonatomic, copy) BNCCurrency _Nullable currency;
@property (nonatomic, copy) NSString*_Nullable transactionID;
@property (nonatomic, strong) NSDecimalNumber*_Nullable shipping;
@property (nonatomic, strong) NSDecimalNumber*_Nullable tax;
@property (nonatomic, strong) NSString*_Nullable coupon;
@property (nonatomic, strong) NSString*_Nullable affiliation;
@property (nonatomic, copy) NSString*_Nullable coupon;
@property (nonatomic, copy) NSString*_Nullable affiliation;
@property (nonatomic, strong) NSArray<BNCProduct*>*_Nullable products;
@end

Expand Down
2 changes: 1 addition & 1 deletion Branch-SDK/BNCConfig.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
NSString * const BNC_API_BASE_URL = @"https://api2.branch.io";
NSString * const BNC_API_VERSION = @"v1";
NSString * const BNC_LINK_URL = @"https://bnc.lt";
NSString * const BNC_SDK_VERSION = @"1.40.2";
NSString * const BNC_SDK_VERSION = @"1.41.0";
2 changes: 1 addition & 1 deletion Branch-SDK/BNCDeepLinkViewControllerInstance.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@

@interface BNCDeepLinkViewControllerInstance : NSObject
@property (strong, nonatomic)UIViewController<BranchDeepLinkingController>* viewController;
@property (assign)BNCViewControllerPresentationOption option;
@property (nonatomic, assign)BNCViewControllerPresentationOption option;
@end
4 changes: 2 additions & 2 deletions Branch-SDK/BNCDeviceSystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ NS_ASSUME_NONNULL_BEGIN

// CPU type information
// See mach/machine.h for details
@property (nonatomic, copy, readwrite) NSNumber *cpuType;
@property (nonatomic, copy, readwrite) NSNumber *cpuSubType;
@property (nonatomic, strong, readwrite) NSNumber *cpuType;
@property (nonatomic, strong, readwrite) NSNumber *cpuSubType;

@end

Expand Down
4 changes: 2 additions & 2 deletions Branch-SDK/BNCEncodingUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ extern NSString* BNCWireFormatFromString(NSString *string);
+ (BNCKeyValue*) key:(NSString*)key value:(NSString*)value;
- (NSString*) description;

@property (nonatomic, strong) NSString* key;
@property (nonatomic, strong) NSString* value;
@property (nonatomic, copy) NSString* key;
@property (nonatomic, copy) NSString* value;

@end

Expand Down
12 changes: 6 additions & 6 deletions Branch-SDK/BNCLinkData.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@

@interface BNCLinkData ()
@property (strong, nonatomic) NSArray *tags;
@property (strong, nonatomic) NSString *alias;
@property (strong, nonatomic) NSString *channel;
@property (strong, nonatomic) NSString *feature;
@property (strong, nonatomic) NSString *stage;
@property (strong, nonatomic) NSString *campaign;
@property (copy, nonatomic) NSString *alias;
@property (copy, nonatomic) NSString *channel;
@property (copy, nonatomic) NSString *feature;
@property (copy, nonatomic) NSString *stage;
@property (copy, nonatomic) NSString *campaign;
@property (strong, nonatomic) NSDictionary *params;
@property (strong, nonatomic) NSString *ignoreUAString;
@property (copy, nonatomic) NSString *ignoreUAString;
@property (assign, nonatomic) BranchLinkType type;
@property (assign, nonatomic) NSUInteger duration;
@end
Expand Down
16 changes: 8 additions & 8 deletions Branch-SDK/BNCNetworkService.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
#pragma mark BNCNetworkOperation

@interface BNCNetworkOperation : NSObject <BNCNetworkOperationProtocol>
@property (readonly, copy) NSURLRequest *request;
@property (readonly, copy) NSHTTPURLResponse *response;
@property (readonly, strong) NSData *responseData;
@property (readonly, copy) NSError *error;
@property (readonly, copy) NSDate *startDate;
@property (readonly, copy) NSDate *timeoutDate;
@property (strong) NSDictionary *userInfo;
@property (nonatomic, readonly, copy) NSURLRequest *request;
@property (nonatomic, readonly, copy) NSHTTPURLResponse *response;
@property (nonatomic, readonly, strong) NSData *responseData;
@property (nonatomic, readonly, copy) NSError *error;
@property (nonatomic, readonly, copy) NSDate *startDate;
@property (nonatomic, readonly, copy) NSDate *timeoutDate;
@property (nonatomic, strong) NSDictionary *userInfo;

- (void) start;
- (void) cancel;
Expand All @@ -40,5 +40,5 @@
- (BNCNetworkOperation*) networkOperationWithURLRequest:(NSMutableURLRequest*)request
completion:(void (^)(id<BNCNetworkOperationProtocol>operation))completion;

@property (strong) NSDictionary *userInfo;
@property (strong, nonatomic) NSDictionary *userInfo;
@end
16 changes: 8 additions & 8 deletions Branch-SDK/BNCNetworkServiceProtocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,34 +46,34 @@

/// The initial NSMutableURLRequest.
@required
@property (readonly, copy) NSURLRequest *request;
@property (nonatomic, readonly, copy) NSURLRequest *request;

/// The response from the server.
@required
@property (readonly, copy) NSHTTPURLResponse *response;
@property (nonatomic, readonly, copy) NSHTTPURLResponse *response;

/// The data from the server.
@required
@property (readonly, strong) NSData *responseData;
@property (nonatomic, readonly, strong) NSData *responseData;

/// Any errors that occurred during the request.
@required
@property (readonly, copy) NSError *error;
@property (nonatomic, readonly, copy) NSError *error;

/// The original start date of the operation. This should be set by the network service provider
/// when the operation is started.
@required
@property (readonly, copy) NSDate *startDate;
@property (nonatomic, readonly, copy) NSDate *startDate;

/// The timeout date for the operation. This is calculated and set by the underlying network service
/// provider by taking the original start date and adding the timeout interval of the URL request.
/// It should be set once (and not recalculated for each retry) by the network service.
@required
@property (readonly, copy) NSDate *timeoutDate;
@property (nonatomic, readonly, copy) NSDate *timeoutDate;

/// A dictionary for the Branch SDK to store operation user info.
@required
@property (strong) NSDictionary *userInfo;
@property (nonatomic, strong) NSDictionary *userInfo;

/// Starts the network operation.
@required
Expand Down Expand Up @@ -109,7 +109,7 @@

/// A dictionary for the Branch SDK to store operation user info.
@required
@property (strong) NSDictionary *userInfo;
@property (nonatomic, strong) NSDictionary *userInfo;

/// Pins the session to the array of public keys.
@optional
Expand Down
54 changes: 27 additions & 27 deletions Branch-SDK/BNCPreferenceHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,22 @@ NSURL* /* _Nonnull */ BNCURLForBranchDirectory(void);

@interface BNCPreferenceHelper : NSObject

@property (strong, nonatomic) NSString *lastRunBranchKey;
@property (copy, nonatomic) NSString *lastRunBranchKey;
@property (strong, nonatomic) NSDate *lastStrongMatchDate;
@property (strong, nonatomic) NSString *appVersion;

@property (strong, nonatomic) NSString *randomizedDeviceToken;
@property (strong, nonatomic) NSString *randomizedBundleToken;

@property (strong, nonatomic) NSString *sessionID;
@property (strong, nonatomic) NSString *linkClickIdentifier;
@property (strong, nonatomic) NSString *spotlightIdentifier;
@property (strong, atomic) NSString *universalLinkUrl;
@property (strong, atomic) NSString *initialReferrer;
@property (strong, nonatomic) NSString *userUrl;
@property (strong, nonatomic) NSString *userIdentity;
@property (strong, nonatomic) NSString *sessionParams;
@property (strong, nonatomic) NSString *installParams;
@property (copy, nonatomic) NSString *appVersion;

@property (copy, nonatomic) NSString *randomizedDeviceToken;
@property (copy, nonatomic) NSString *randomizedBundleToken;

@property (copy, nonatomic) NSString *sessionID;
@property (copy, nonatomic) NSString *linkClickIdentifier;
@property (copy, nonatomic) NSString *spotlightIdentifier;
@property (copy, nonatomic) NSString *universalLinkUrl;
@property (copy, nonatomic) NSString *initialReferrer;
@property (copy, nonatomic) NSString *userUrl;
@property (copy, nonatomic) NSString *userIdentity;
@property (copy, nonatomic) NSString *sessionParams;
@property (copy, nonatomic) NSString *installParams;
@property (assign, nonatomic) BOOL isDebug;
@property (assign, nonatomic) BOOL checkedFacebookAppLinks;
@property (assign, nonatomic) BOOL checkedAppleSearchAdAttribution;
Expand All @@ -44,28 +44,28 @@ NSURL* /* _Nonnull */ BNCURLForBranchDirectory(void);
@property (assign, nonatomic) NSInteger retryCount;
@property (assign, nonatomic) NSTimeInterval retryInterval;
@property (assign, nonatomic) NSTimeInterval timeout;
@property (strong, atomic) NSString *externalIntentURI;
@property (copy, nonatomic) NSString *externalIntentURI;
@property (strong, nonatomic) NSMutableDictionary *savedAnalyticsData;
@property (strong, nonatomic) NSDictionary *appleSearchAdDetails;
@property (assign, nonatomic) BOOL appleSearchAdNeedsSend;
@property (strong, nonatomic) NSString *lastSystemBuildVersion;
@property (strong, nonatomic) NSString *browserUserAgentString;
@property (strong, atomic) NSString *referringURL;
@property (strong, atomic) NSString *branchAPIURL;
@property (assign, atomic) BOOL limitFacebookTracking;
@property (strong, atomic) NSDate *previousAppBuildDate;
@property (copy, nonatomic) NSString *lastSystemBuildVersion;
@property (copy, nonatomic) NSString *browserUserAgentString;
@property (copy, nonatomic) NSString *referringURL;
@property (copy, nonatomic) NSString *branchAPIURL;
@property (assign, nonatomic) BOOL limitFacebookTracking;
@property (strong, nonatomic) NSDate *previousAppBuildDate;
@property (assign, nonatomic, readwrite) BOOL disableAdNetworkCallouts;

@property (strong, nonatomic, readwrite) NSURL *faceBookAppLink;

@property (nonatomic, strong, readwrite) NSString *patternListURL;
@property (strong, atomic) NSArray<NSString*> *savedURLPatternList;
@property (assign, atomic) NSInteger savedURLPatternListVersion;
@property (assign, atomic) BOOL dropURLOpen;
@property (nonatomic, copy, readwrite) NSString *patternListURL;
@property (strong, nonatomic) NSArray<NSString*> *savedURLPatternList;
@property (assign, nonatomic) NSInteger savedURLPatternListVersion;
@property (assign, nonatomic) BOOL dropURLOpen;

@property (assign, nonatomic) BOOL sendCloseRequests;

@property (assign, atomic) BOOL trackingDisabled;
@property (assign, nonatomic) BOOL trackingDisabled;
- (void) clearTrackingInformation;

+ (BNCPreferenceHelper *)sharedInstance;
Expand Down
2 changes: 1 addition & 1 deletion Branch-SDK/BNCSKAdNetwork.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

@interface BNCSKAdNetwork()

@property (nonatomic, copy, readwrite) NSDate *installDate;
@property (nonatomic, strong, readwrite) NSDate *installDate;

@property (nonatomic, strong, readwrite) Class skAdNetworkClass;
@property (nonatomic, assign, readwrite) SEL skAdNetworkRegisterAppForAdNetworkAttribution;
Expand Down
4 changes: 2 additions & 2 deletions Branch-SDK/BNCServerInterface.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
#import "BNCApplication.h"

@interface BNCServerInterface ()
@property (strong) NSString *requestEndpoint;
@property (strong) id<BNCNetworkServiceProtocol> networkService;
@property (copy, nonatomic) NSString *requestEndpoint;
@property (strong, nonatomic) id<BNCNetworkServiceProtocol> networkService;
@end

@implementation BNCServerInterface
Expand Down
6 changes: 3 additions & 3 deletions Branch-SDK/BNCServerRequestQueue.m
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ static inline uint64_t BNCNanoSecondsFromTimeInterval(NSTimeInterval interval) {


@interface BNCServerRequestQueue()
@property (strong) NSMutableArray<BNCServerRequest *> *queue;
@property (strong) dispatch_queue_t asyncQueue;
@property (strong) dispatch_source_t persistTimer;
@property (strong, nonatomic) NSMutableArray<BNCServerRequest *> *queue;
@property (strong, nonatomic) dispatch_queue_t asyncQueue;
@property (strong, nonatomic) dispatch_source_t persistTimer;
@end


Expand Down
2 changes: 1 addition & 1 deletion Branch-SDK/BNCSpotlightService.m
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ @interface BNCSpotlightService()<NSUserActivityDelegate> {
dispatch_queue_t _workQueue;
}
@property (strong, nonatomic) NSMutableDictionary *userInfo;
@property (strong, readonly) dispatch_queue_t workQueue;
@property (strong, readonly, nonatomic) dispatch_queue_t workQueue;
@end

#pragma mark - BNCSpotlightService
Expand Down
4 changes: 2 additions & 2 deletions Branch-SDK/BNCURLFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@
- (void) updatePatternListWithCompletion:(void (^_Nullable) (NSError*_Nullable error, NSArray*_Nullable list))completion;

/// Is YES if the listed has already been updated from the server.
@property (assign, readonly) BOOL hasUpdatedPatternList;
@property (strong) NSArray<NSString*>*_Nullable patternList;
@property (assign, readonly, nonatomic) BOOL hasUpdatedPatternList;
@property (strong, nonatomic) NSArray<NSString*>*_Nullable patternList;
@end
12 changes: 6 additions & 6 deletions Branch-SDK/BNCURLFilter.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
@interface BNCURLFilter () {
NSArray<NSString*>*_patternList;
}
@property (strong) NSArray<NSRegularExpression*> *ignoredURLRegex;
@property (assign) NSInteger listVersion;
@property (strong) id<BNCNetworkServiceProtocol> networkService;
@property (assign) BOOL hasUpdatedPatternList;
@property (strong) NSError *error;
@property (strong) NSURL *jsonURL;
@property (strong, nonatomic) NSArray<NSRegularExpression*> *ignoredURLRegex;
@property (assign, nonatomic) NSInteger listVersion;
@property (strong, nonatomic) id<BNCNetworkServiceProtocol> networkService;
@property (assign, nonatomic) BOOL hasUpdatedPatternList;
@property (strong, nonatomic) NSError *error;
@property (strong, nonatomic) NSURL *jsonURL;
@end

@implementation BNCURLFilter
Expand Down
1 change: 1 addition & 0 deletions Branch-SDK/Branch.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#import "BNCInitSessionResponse.h"
#import "UIViewController+Branch.h"
#import "BranchScene.h"
#import "BranchPluginSupport.h"

#if !TARGET_OS_TV
// tvOS does not support these features
Expand Down
2 changes: 1 addition & 1 deletion Branch-SDK/Branch.m
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ @interface Branch() <BranchDeepLinkingControllerCompletionDelegate> {
@property (strong, nonatomic) BNCServerInterface *serverInterface;
@property (strong, nonatomic) BNCServerRequestQueue *requestQueue;
@property (strong, nonatomic) dispatch_semaphore_t processing_sema;
@property (assign, atomic) NSInteger networkCount;
@property (assign, nonatomic) NSInteger networkCount;
@property (assign, nonatomic) BNCInitStatus initializationStatus;
@property (assign, nonatomic) BOOL shouldAutomaticallyDeepLink;
@property (strong, nonatomic) BNCLinkCache *linkCache;
Expand Down
Loading

0 comments on commit 91be337

Please sign in to comment.