1
0
mirror of https://github.com/foobnix/LibreraReader.git synced 2025-10-06 00:02:43 +02:00
Files
LibreraReader/README.md

144 lines
4.2 KiB
Markdown
Raw Permalink Normal View History

2018-03-16 12:17:37 +02:00
![Logo](https://raw.githubusercontent.com/foobnix/LirbiReader/master/logo.jpg)
2023-04-20 11:45:18 +03:00
**The development and support of Librera is frozen for an unpredictable time, there is a big war in my country
Ukraine.**
2022-03-01 08:50:22 +02:00
[Russian invasion of Ukraine](https://en.wikipedia.org/wiki/2022_Russian_invasion_of_Ukraine)
2022-03-01 08:48:41 +02:00
2023-02-24 11:21:15 +02:00
[OFFICIAL FUNDRAISING PLATFORM OF UKRAINE](https://u24.gov.ua/)
# Librera Reader
2023-04-20 11:45:18 +03:00
Librera Reader is an e-book reader for Android devices;
it supports the following formats: PDF, EPUB, EPUB3, MOBI, DjVu, FB2, TXT, RTF, AZW, AZW3, HTML, CBZ, CBR, DOC, DOCX,
and OPDS Catalogs
2017-04-13 22:45:50 +03:00
# Download application
2017-04-13 22:45:50 +03:00
2023-02-24 11:21:15 +02:00
[Librera Reader on Google Play](https://play.google.com/store/apps/details?id=com.foobnix.pdf.reader)
2022-09-16 17:40:52 +03:00
2023-02-24 11:21:15 +02:00
[Librera PRO on Google Play](https://play.google.com/store/apps/details?id=com.foobnix.pro.pdf.reader)
2019-10-16 15:10:57 +03:00
2023-02-24 11:21:15 +02:00
[Librera F-Droid](https://f-droid.org/en/packages/com.foobnix.pro.pdf.reader/)
2017-04-13 22:45:50 +03:00
2023-02-24 11:21:15 +02:00
[Beta testing .apk](http://beta.librera.mobi/)
2017-08-24 20:37:11 +03:00
2023-04-20 11:45:18 +03:00
[Application Fonts.zip](https://github.com/foobnix/LirbiReader/tree/master/Builder/fonts)
2017-08-24 20:37:11 +03:00
2024-05-29 15:45:10 +03:00
[Web browser Librera Book Reader](https://librera.mobi/online-book-reader/)
2024-05-05 17:43:59 +03:00
2024-05-05 19:05:11 +03:00
https://librera.mobi/online-book-reader/?file=https://pdfobject.com/pdf/sample.pdf
2024-07-19 14:56:38 +03:00
[Google Chrome Extension](https://chromewebstore.google.com/detail/epub-reader-librera/kfpiokccdkdlbjmgiajpfcdefcbdbphe)
[zip Chrome Extension](https://github.com/foobnix/LibreraReader/raw/master/Builder/librara-chrome-extension.zip)
2023-02-24 11:21:15 +02:00
### Links
2018-03-22 17:21:14 +02:00
2023-02-24 11:21:15 +02:00
[web: https://librera.mobi/](https://librera.mobi/)
2018-02-16 12:03:19 +02:00
2023-02-24 11:21:15 +02:00
[What is new/Changes](https://librera.mobi/what-is-new/)
[FAQ](https://librera.mobi/faq/)
2019-11-28 12:14:35 +02:00
2023-02-24 12:05:02 +02:00
[Telegram Info](https://t.me/LibreraReader)
2019-02-12 16:37:25 +02:00
2023-02-24 12:05:02 +02:00
[Telegram Chat](https://t.me/librera_reader_chat)
2023-02-24 11:21:15 +02:00
2023-02-24 11:24:07 +02:00
[Support/Donations on Patreon](https://www.patreon.com/librera)
2022-01-18 12:19:43 +02:00
2023-02-24 11:21:15 +02:00
[Email: librera.reader@gmail.com](mailto:librera.reader@gmail.com)
2021-12-20 13:27:51 +02:00
2019-09-09 16:39:00 +03:00
## Required build libs
~~~~
2021-12-13 13:55:48 +02:00
mesa-common-dev libxcursor-dev libxrandr-dev libxinerama-dev libglu1-mesa-dev libxi-dev pkg-config libgl-dev
2019-02-12 16:40:34 +02:00
~~~~
2019-03-06 15:47:17 +02:00
2020-03-31 11:00:17 +03:00
You also need the Android NDK in version 20+
Please ensure to download it using android studio and add the NDK to your PATH.
## Create a keystore
Even if you do not plan to upload a version yourself you need a keystore with a certificate to build.
The keystore needs to be in PKCS12 format.
You can create a keystore in your actual directory using the following call
(replace ALIAS by your alias, it is just a name):
~~~~
keytool -genkey -v -storetype PKCS12 -keystore keystore.pkcs12 -alias ALIAS -keyalg RSA -keysize 2048 -validity 10000
~~~~
Now edit or create the file ~/.gradle/gradle.properties and set following values
2023-04-20 11:45:18 +03:00
(replacing PASSWD by the password you typed while creating the keystore, ALIAS as before and using the path to your
keystore):
~~~~
RELEASE_STORE_FILE=/PATH/TO/YOUR/keystore.pkcs12
RELEASE_STORE_PASSWORD=PASSWD
RELEASE_KEY_PASSWORD=PASSWD
RELEASE_KEY_ALIAS=ALIAS
~~~~
## Create Firebase Authentication file
To build with firebase support (all version but the ones for Fdroid) you need to get an
authentication file for firebase services offered by google. Therefore please follow
https://firebase.google.com/docs/android/setup to create your own project. You need to
register for the packages com.foobnix.pdf.info and com.foobnix.pdf.reader.a1. This way
2023-04-20 11:45:18 +03:00
you will get a google-services.json file that you have to place in the app folder of
the repository.
For this project only Analytics is used, so a spakling plan is all you need.
2023-04-20 11:45:18 +03:00
## Librera Build on MuPdf
2019-09-09 16:39:00 +03:00
~~~~
2019-09-28 18:07:49 +03:00
cd Builder
2023-04-20 11:45:18 +03:00
./link_to_mupdf_x.x.x.sh (Change the paths to mupdf and jniLibs folders)
cd ..
2019-09-28 18:07:49 +03:00
./gradlew assembleLibrera
2019-02-12 16:40:34 +02:00
~~~~
2017-04-13 22:45:50 +03:00
2023-04-20 11:45:18 +03:00
## Building for F-Droid for Android
2022-08-31 15:47:42 +03:00
If you wish to build for F-Droid (e.g. not using google services, Internet) you can run the build with
~~~~
cd Builder
2023-04-20 11:45:18 +03:00
./link_to_mupdf_x.x.x.sh
cd ..
./gradlew assembleFdroid
~~~~
2020-03-31 11:00:17 +03:00
F-Droid build does also not need a **google-services.json**
## Librera depends on:
2017-05-08 10:51:45 +03:00
2019-09-09 16:39:00 +03:00
MuPDF - (AGPL License) https://mupdf.com/downloads/archive/
2018-01-29 23:47:09 +02:00
2020-03-31 11:00:17 +03:00
* ebookdroid
2018-01-29 23:47:09 +02:00
* djvulibre
* hpx
* junrar
2020-03-31 11:00:17 +03:00
* glide
2018-01-29 23:47:09 +02:00
* libmobi
* commons-compress
* eventbus
* greendao
* jsoup
* juniversalchardet
2019-02-12 12:16:28 +02:00
* commons-compress
2019-02-18 13:18:29 +02:00
* okhttp3
2019-02-12 12:16:28 +02:00
* okhttp-digest
* okio
* rtfparserkit
2019-02-18 15:07:51 +02:00
* java-mammoth
2020-03-31 11:00:17 +03:00
* zip4j
2017-04-13 22:45:50 +03:00
2017-08-19 23:10:46 +03:00
Librera is distributed under the GPL
2017-04-13 22:45:50 +03:00
## License
2017-04-13 22:53:05 +03:00
See the [LICENSE](LICENSE.txt) file for license rights and limitations (GPL v.3).