Skip to content

Commit f9af58b

Browse files
fix: PR changes
1 parent 6bbd3ba commit f9af58b

File tree

5 files changed

+7
-13
lines changed

5 files changed

+7
-13
lines changed

BranchSDK.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,6 @@
898898
5FCDD3982B7AC6A100EAF29F /* Public */ = {
899899
isa = PBXGroup;
900900
children = (
901-
E52E5B052CC79E4E00F553EE /* BranchFileLogger.h */,
902901
5FCDD3A42B7AC6A100EAF29F /* BNCCallbacks.h */,
903902
5FCDD3A02B7AC6A100EAF29F /* BNCCurrency.h */,
904903
5FCDD3A72B7AC6A100EAF29F /* BNCInitSessionResponse.h */,
@@ -978,6 +977,7 @@
978977
5FCDD3CC2B7AC6A100EAF29F /* NSError+Branch.h */,
979978
5FCDD3C82B7AC6A100EAF29F /* NSMutableDictionary+Branch.h */,
980979
5FCDD3D12B7AC6A100EAF29F /* NSString+Branch.h */,
980+
E52E5B052CC79E4E00F553EE /* BranchFileLogger.h */,
981981
5FCDD3BB2B7AC6A100EAF29F /* UIViewController+Branch.h */,
982982
);
983983
path = Private;

Sources/BranchSDK/BNCSystemObserver.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,6 @@ + (BOOL)compareUriSchemes : (NSString *) serverUriScheme {
159159
if ([uriScheme isEqualToString:serverUriSchemeWithoutSuffix]) {
160160
return true; }
161161
}
162-
// If no Uri schemes match the one set on the dashboard
163-
return false;
164162
}
165163
return false;
166164
}

Sources/BranchSDK/Branch+Validator.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ typedef NS_ENUM(NSUInteger, BranchValidationError) {
4747
case BranchLinkDomainError:
4848
return @"Check the link domain and alternate domain values in your info.plist file under the key 'branch_universal_link_domains'. The values should match with the ones on the Branch dashboard.\n\n";
4949
case BranchURISchemeError:
50-
return @"The URI scheme in your info.plist file shoudl match with the URI scheme value for iOS on the Branch dashboard.\n\n";
50+
return @"The URI scheme in your info.plist file should match with the URI scheme value for iOS on the Branch dashboard.\n\n";
5151
case BranchAppIDError:
5252
return @"Check your bundle ID and Apple App Prefix from the Apple Developer website and ensure it matches with the values you have added on the Branch dashboard.\n\n";
5353
case BranchATTError:
@@ -132,8 +132,8 @@ - (void) validateIntegrationWithServerResponse:(BNCServerResponse*)response {
132132
NSLog(@"-------------------------------------------------");
133133

134134
NSLog(@"------ Checking for URI scheme correctness ------");
135-
NSString *uriScheme = [BNCSystemObserver compareUriSchemes:serverUriScheme] ? passString : errorString;
136135
bool doUriSchemesMatch = [BNCSystemObserver compareUriSchemes:serverUriScheme];
136+
NSString *uriScheme = doUriSchemesMatch ? passString : errorString;
137137
NSLog(@"-------------------------------------------------");
138138

139139
NSLog(@"-- Checking for bundle identifier correctness ---");

Sources/BranchSDK/BranchFileLogger.m

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,31 +70,27 @@ - (void)clearLogs {
7070
}
7171

7272
- (BOOL)isLogFilePopulated {
73-
NSString *logFilePath = [self getLogFilePath];
74-
7573
// Check if the file exists
76-
if (![[NSFileManager defaultManager] fileExistsAtPath:logFilePath]) {
74+
if (![[NSFileManager defaultManager] fileExistsAtPath:self.logFilePath]) {
7775
return NO;
7876
}
7977

8078
// Check if the file is non-empty
81-
NSDictionary *attributes = [[NSFileManager defaultManager] attributesOfItemAtPath:logFilePath error:nil];
79+
NSDictionary *attributes = [[NSFileManager defaultManager] attributesOfItemAtPath:self.logFilePath error:nil];
8280
unsigned long long fileSize = [attributes fileSize];
8381

8482
return fileSize > 0; // Return YES if file is populated, NO otherwise
8583
}
8684

8785
- (void)shareLogFileFromViewController:(UIViewController *)viewController {
88-
NSString *logFilePath = [self getLogFilePath];
89-
9086
// Check if the log file exists
91-
if (![[NSFileManager defaultManager] fileExistsAtPath:logFilePath]) {
87+
if (![[NSFileManager defaultManager] fileExistsAtPath:self.logFilePath]) {
9288
NSLog(@"No log file found to share.");
9389
return;
9490
}
9591

9692
// Create a URL from the log file path
97-
NSURL *logFileURL = [NSURL fileURLWithPath:logFilePath];
93+
NSURL *logFileURL = [NSURL fileURLWithPath:self.logFilePath];
9894

9995
// Create an activity view controller with the log file
10096
UIActivityViewController *activityVC =
File renamed without changes.

0 commit comments

Comments
 (0)