-
Notifications
You must be signed in to change notification settings - Fork 723
Home
Hrishikesh Kadam edited this page Dec 31, 2018
·
17 revisions
FolioReader-Android is an EPUB reader written in Java and Kotlin.
Add following dependency to your root project build.gradle
file:
allprojects {
repositories {
...
jcenter()
maven { url "https://jitpack.io" }
...
}
}
Add following dependency to your app module build.gradle
file:
dependencies {
...
implementation "com.folioreader:folioreader:0.5.3"
...
}
Enable Multidex support as explained in this Android Doc
Get singleton object of FolioReader
:
FolioReader folioReader = FolioReader.get();
Call the function openBook()
:
folioReader.openBook("file:///android_asset/TheSilverChair.epub");
folioReader.openBook(R.raw.adventures);