iOS: Adjust to ObjFW changes
FossilOrigin-Name: 604513acba904b54db0279d35290e075101a9745f62154e78bfaa604bd091178
This commit is contained in:
parent
4c744c922a
commit
48eba5104f
2 changed files with 2 additions and 3 deletions
|
@ -378,7 +378,6 @@
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"$(PROJECT_DIR)/ObjFW/Frameworks",
|
"$(PROJECT_DIR)/ObjFW/Frameworks",
|
||||||
);
|
);
|
||||||
HEADER_SEARCH_PATHS = ObjFW/include;
|
|
||||||
INFOPLIST_FILE = Info.plist;
|
INFOPLIST_FILE = Info.plist;
|
||||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
||||||
MARKETING_VERSION = 1.3;
|
MARKETING_VERSION = 1.3;
|
||||||
|
@ -404,7 +403,6 @@
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"$(PROJECT_DIR)/ObjFW/Frameworks",
|
"$(PROJECT_DIR)/ObjFW/Frameworks",
|
||||||
);
|
);
|
||||||
HEADER_SEARCH_PATHS = ObjFW/include;
|
|
||||||
INFOPLIST_FILE = Info.plist;
|
INFOPLIST_FILE = Info.plist;
|
||||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
||||||
MARKETING_VERSION = 1.3;
|
MARKETING_VERSION = 1.3;
|
||||||
|
|
|
@ -45,7 +45,8 @@ class SiteStorage: OFObject {
|
||||||
|
|
||||||
var storage: [String: [NSNumber: AnyObject]]? = nil
|
var storage: [String: [NSNumber: AnyObject]]? = nil
|
||||||
OFException.try({
|
OFException.try({
|
||||||
let decoded = (OFData(contentsOfFile: path).messagePackValue)
|
let decoded = (OFData(contentsOfFile: path)
|
||||||
|
.objectByParsingMessagePack)
|
||||||
as? OFDictionary<OFString, OFDictionary<OFNumber, AnyObject>>
|
as? OFDictionary<OFString, OFDictionary<OFNumber, AnyObject>>
|
||||||
storage =
|
storage =
|
||||||
(decoded?.nsObject as? [String: [NSNumber: AnyObject]]) ?? [:]
|
(decoded?.nsObject as? [String: [NSNumber: AnyObject]]) ?? [:]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue