From 118bbf65303ff5c315cad161e24a1640c53459fc Mon Sep 17 00:00:00 2001 From: Ruslan Miestierov <85553624+rmiestierov-sift@users.noreply.github.com> Date: Wed, 14 Jun 2023 12:52:37 -0400 Subject: [PATCH] added release 2.1.2 (#122) --- CHANGELOG.md | 11 +++++++++++ Sift.podspec | 2 +- Sift/Sift.m | 8 ++++---- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fa3b566..b6f2efc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,15 @@ # Change Log + +## [2.1.2] - 2023-06-14 +### Fixed warnings related to following +- A function declaration without a prototype is deprecated in all version of C +- The iOS deployment target is set to 9. But the range of supported deployment version is 12. to 16.4.99 +- 'TARGET_OS_MACCATALYST' is not defined , evaluates to 0. +- 'archiveRootObject:toFile:' is deprecated: first deprecated in iOS 12.0 - Use +archivedDataWithRootObject:requiringSecureCoding:error: and -writeToURL:options:error: instead +- 'unarchiveObjectWithFile:' is deprecated: first deprecated in iOS 12.0 - Use +unarchivedObjectOfClass:fromData:error: instead +- 'subscriberCellularProvider' is deprecated: first deprecated in iOS 12.0 , Replace 'subscriberCellularProvider' with 'serviceSubscriberCellularProviders' + + ## [2.1.1] - 2022-06-03 ### Added diff --git a/Sift.podspec b/Sift.podspec index c98d391..bd9bdcc 100644 --- a/Sift.podspec +++ b/Sift.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |spec| spec.name = 'Sift' - spec.version = '2.1.1' + spec.version = '2.1.2' spec.authors = 'Sift Science' spec.license = { :type => 'MIT', diff --git a/Sift/Sift.m b/Sift/Sift.m index e309a76..aba287e 100644 --- a/Sift/Sift.m +++ b/Sift/Sift.m @@ -57,7 +57,7 @@ + (instancetype)sharedInstance { - (instancetype)initWithRootDirPath:(NSString *)rootDirPath { self = [super init]; if (self) { - _sdkVersion = @"v2.1.1"; + _sdkVersion = @"v2.1.2"; _rootDirPath = rootDirPath; @@ -294,20 +294,20 @@ - (void)archiveKeys { [archive setObject:_userId forKey:SF_SIFT_USER_ID]; } NSError *error; - + if ([self archivePathForKeys] != nil) { NSData* data = [NSKeyedArchiver archivedDataWithRootObject: archive requiringSecureCoding:NO error:&error]; [data writeToFile:[self archivePathForKeys] options:NSDataWritingAtomic error:&error]; SF_DEBUG(@"Write returned error: %@", [error localizedDescription]); } - + } - (void)unarchiveKeys { NSDictionary *archive; NSData *newData = [NSData dataWithContentsOfFile:[self archivePathForKeys]]; NSError *error; - + NSKeyedUnarchiver* unarchiver = [[NSKeyedUnarchiver alloc] initForReadingFromData:newData error:&error]; unarchiver.requiresSecureCoding = NO; archive = [unarchiver decodeTopLevelObjectForKey:NSKeyedArchiveRootObjectKey error:&error];