Skip to content

Commit

Permalink
Removed libraryFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
s-ayush2903 committed Dec 13, 2020
1 parent 7b1bca6 commit 0ea288d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 30 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,15 @@ package org.kiwix.kiwixmobile.webserver
import android.util.Log
import org.kiwix.kiwixlib.JNIKiwixException
import org.kiwix.kiwixlib.JNIKiwixServer
import org.kiwix.kiwixmobile.nav.destination.library.LibraryFactory
import org.kiwix.kiwixlib.Library
import javax.inject.Inject

private const val TAG = "KiwixServer"

class KiwixServer @Inject constructor(kiwixLibraryFactory: LibraryFactory) {
private val libFactory = kiwixLibraryFactory
class KiwixServer @Inject constructor() {

fun createKiwixServer(selectedBooksPath: ArrayList<String>): JNIKiwixServer? {
val kiwixLibrary = libFactory.createKiwixLibrary()
val kiwixLibrary = Library()
selectedBooksPath.forEach { path ->
try {
kiwixLibrary.addBook(path)
Expand Down

0 comments on commit 0ea288d

Please sign in to comment.