Skip to content

Commit

Permalink
Fix build warning. Issue #30
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetf committed Jan 9, 2020
2 parents c9f59f1 + 98955a6 commit eef67d3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## [3.3.1+2]
* Fix iOS build warning [Issue 30](https://github.com/mogol/flutter_secure_storage/issues/30)

## [3.3.1+1]
* Fix Android Manifest error [Issue 77](https://github.com/mogol/flutter_secure_storage/issues/77) and [Issue 79](https://github.com/mogol/flutter_secure_storage/issues/79). Thanks [nate-eisner](https://github.com/nate-eisner).

Expand Down
4 changes: 2 additions & 2 deletions ios/Classes/FlutterSecureStoragePlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,15 @@ - (void)write:(NSString *)value forKey:(NSString *)key forGroup:(NSString *)grou

status = SecItemUpdate((__bridge CFDictionaryRef)search, (__bridge CFDictionaryRef)update);
if (status != noErr){
NSLog(@"SecItemUpdate status = %d", status);
NSLog(@"SecItemUpdate status = %d", (int) status);
}
}else{
search[(__bridge id)kSecValueData] = [value dataUsingEncoding:NSUTF8StringEncoding];
search[(__bridge id)kSecMatchLimit] = nil;

status = SecItemAdd((__bridge CFDictionaryRef)search, NULL);
if (status != noErr){
NSLog(@"SecItemAdd status = %d", status);
NSLog(@"SecItemAdd status = %d", (int) status);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_secure_storage
description: Flutter Secure Storage provides API to store data in secure storage. Keychain is used in iOS, KeyStore based solution is used in Android.
version: 3.3.1+1
version: 3.3.1+2
author: German Saprykin <saprykin.h@gmail.com>
homepage: https://github.com/mogol/flutter_secure_storage

Expand Down

0 comments on commit eef67d3

Please sign in to comment.