Merge pull request #534 from kiwix/libkiwix-13

Support for libkiwix main (13)
This commit is contained in:
Kelson 2023-11-17 16:59:03 +01:00 committed by GitHub
commit c3e3aa49f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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];