Skip to content

Commit 1155f3d

Browse files
authored
Merge pull request #1156 from BranchMetrics/CORE-2502-serialization-issue
CORE-2502 rollback to old serialization
2 parents bca033b + 871e8a2 commit 1155f3d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Branch-SDK/BNCPreferenceHelper.m

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -787,13 +787,13 @@ - (NSMutableDictionary *)persistenceDict {
787787
NSError *error = nil;
788788
NSData *data = [NSData dataWithContentsOfURL:self.class.URLForPrefsFile options:0 error:&error];
789789
if (!error && data) {
790-
if (@available(iOS 11.0, tvOS 11.0, *)) {
791-
persistenceDict = [NSKeyedUnarchiver unarchivedObjectOfClass:[BNCServerRequest class] fromData:data error:NULL];
792-
} else {
793-
#if __IPHONE_OS_VERSION_MIN_REQUIRED < 12000
790+
// if (@available(iOS 11.0, tvOS 11.0, *)) {
791+
// persistenceDict = [NSKeyedUnarchiver unarchivedObjectOfClass:[NSMutableDictionary class] fromData:data error:NULL];
792+
// } else {
793+
//#if __IPHONE_OS_VERSION_MIN_REQUIRED < 12000
794794
persistenceDict = [NSKeyedUnarchiver unarchiveObjectWithData:data];
795-
#endif
796-
}
795+
//#endif
796+
// }
797797
}
798798
}
799799
@catch (NSException*) {

0 commit comments

Comments
 (0)