Adopting KeePassKit API changes

This commit is contained in:
michael starke
2016-11-07 19:32:38 +01:00
parent abb450eed7
commit cfd559b759
16 changed files with 54 additions and 54 deletions

View File

@@ -17,8 +17,8 @@
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
typeToUTI = @{
@(KPKDatabaseTypeBinary) : MPLegacyDocumentUTI,
@(KPKDatabaseTypeXml) : MPXMLDocumentUTI
@(KPKDatabaseFormatKdb) : MPKdbDocumentUTI,
@(KPKDatabaseFormatKdbx) : MPKdbxDocumentUTI
};
});
return typeToUTI;
@@ -26,7 +26,7 @@
- (NSString *)typeForData:(NSData *)data {
KPKFileInfo fileInfo = [self fileInfoForData:data];
return [self _typeToUTIdictionary][@(fileInfo.type)];
return [self _typeToUTIdictionary][@(fileInfo.format)];
}
- (NSString *)typeForContentOfURL:(NSURL *)url {