Skip to content

Commit

Permalink
Remove other code change
Browse files Browse the repository at this point in the history
  • Loading branch information
nsingh-branch committed Jul 31, 2024
1 parent 8be39e4 commit 66fab2e
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions Sources/BranchSDK/BNCRequestFactory.m
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,8 @@ - (NSDictionary *)dataForInstallWithURLString:(NSString *)urlString {
[self addAppleReceiptSourceToJSON:json];
[self addTimestampsToJSON:json];

// Check if the urlString is a valid URL to ensure it's a universal link, not the external intent uri
if (urlString) {
NSURL *url = [NSURL URLWithString:urlString];
if (url && ([url.scheme isEqualToString:@"http"] || [url.scheme isEqualToString:@"https"])) {
[self safeSetValue:urlString forKey:BRANCH_REQUEST_KEY_UNIVERSAL_LINK_URL onDict:json];
}
[self safeSetValue:urlString forKey:BRANCH_REQUEST_KEY_UNIVERSAL_LINK_URL onDict:json];
}

[self addAppleAttributionTokenToJSON:json];
Expand Down Expand Up @@ -152,12 +148,8 @@ - (NSDictionary *)dataForOpenWithURLString:(NSString *)urlString {
[self addTimestampsToJSON:json];


// Check if the urlString is a valid URL to ensure it's a universal link, not the external intent uri
if (urlString) {
NSURL *url = [NSURL URLWithString:urlString];
if (url && ([url.scheme isEqualToString:@"http"] || [url.scheme isEqualToString:@"https"])) {
[self safeSetValue:urlString forKey:BRANCH_REQUEST_KEY_UNIVERSAL_LINK_URL onDict:json];
}
[self safeSetValue:urlString forKey:BRANCH_REQUEST_KEY_UNIVERSAL_LINK_URL onDict:json];
}

// Usually sent with install, but retry on open if it didn't get sent
Expand Down

0 comments on commit 66fab2e

Please sign in to comment.