smartmobilefactory / EpubReaderAndroid

MIT License
24 stars 7 forks source link

Uncompressed ePub? #18

Closed voipworld closed 6 years ago

voipworld commented 6 years ago

hello team

is it pocible by any way to keep the uncompressed epub, and get rid of the .epub file? or caching the allready decompressed epub, and load it in the next opening of the app without redecompressing the file? i have tryed opening a huge book composed of 35 books inside, taking lot lot lot of times if you can find a solution i'll donate...! i love this sdk, good for blind people... what to say...!

timfreiheit commented 6 years ago

Hi, since the version 0.2.2 possible to load uncompressed epubs by using: Epub.fromFolder(folder). If you load the load a compressed epub the resulted uncompressed ePub will be cached in the app cache directory for the next load. I also tried your provided example from http://d.shamela.ws/epubs/072/7289.epub which should be a lot faster now.

voipworld commented 6 years ago

woo woo woo! good news...! how to add it from gradle bro? thanks!

On 2/20/18, Tim Freiheit notifications@github.com wrote:

Hi, since the version 0.2.2 possible to load uncompressed epubs by using: Epub.fromFolder(folder). If you load the load a compressed epub the resulted uncompressed ePub will be cached in the app cache directory for the next load. I also tried your provided example from http://d.shamela.ws/epubs/072/7289.epub which should be a lot faster now.

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/smartmobilefactory/EpubReaderAndroid/issues/18#issuecomment-366911295

timfreiheit commented 6 years ago

see the installations section in readme. add

maven { url "https://jitpack.io" }

as a new repository in your root build.gradle

and

compile 'com.github.smartmobilefactory:EpubReaderAndroid:0.2.2'

in your apps build.gradle

voipworld commented 6 years ago

hello i done all your suggestions all is 100% working even without uncompressed epub, will try the folder caching was not working befaure, now its pretty fast

how do i know the latest version of the sdk? thanks!

timfreiheit commented 6 years ago

you can find the current releases with their changelogs at https://github.com/smartmobilefactory/EpubReaderAndroid/releases