mirror of
https://github.com/kiwix/kiwix-apple.git
synced 2025-09-29 15:05:21 -04:00
Merge pull request #534 from kiwix/libkiwix-13
Support for libkiwix main (13)
This commit is contained in:
commit
c3e3aa49f5
@ -18,7 +18,7 @@
|
||||
|
||||
@interface OPDSParser ()
|
||||
|
||||
@property kiwix::Library *library;
|
||||
@property kiwix::LibraryPtr library;
|
||||
|
||||
@end
|
||||
|
||||
@ -27,15 +27,11 @@
|
||||
- (instancetype _Nonnull)init {
|
||||
self = [super init];
|
||||
if (self) {
|
||||
self.library = new kiwix::Library();
|
||||
self.library = kiwix::Library::create();
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)dealloc {
|
||||
delete self.library;
|
||||
}
|
||||
|
||||
- (BOOL)parseData:(nonnull NSData *)data {
|
||||
try {
|
||||
NSString *content = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
|
||||
|
Loading…
x
Reference in New Issue
Block a user