Skip to content

Commit

Permalink
added release 2.1.2 (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruslan Miestierov authored Jun 14, 2023
1 parent 6465dbd commit 118bbf6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion Sift.podspec
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
8 changes: 4 additions & 4 deletions Sift/Sift.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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];
Expand Down

0 comments on commit 118bbf6

Please sign in to comment.