Baibel provides Bible Translations and Media to remote users where there may be no wifi or internet service. The app functions completely offline and uses no external API or http requests.
All the data is bundled statically with the app -- .mp3 audio files, and html for reading. Currently this app has only been tested and optimized for Android.
-
Make sure you have the react-native CLI installed globally
-
then
cd
to the root of the project, and run
npm i
-
Give that some time to run, and then edit the files at
android/
...gradle.properties
andlocal.properties
You have to have the java SDK and JRE all set up correctly. -
Now, you can run the following command
react-native run-android
You'll have to address any errors you get here before moving ahead.
-
Create a
static
directory in the root of the project. -
Make sure there is an empty directory called
raw
atandroid/app/src/main/res
-
Copy your listen and read files into the
static
directory made in Step 1. (The structure should resemble below)
-
Run the compilation script.
node generate-app-data.js
. If you have issues running ensure your node version is12.15.0
. This will compile your assets into the proper directories and formats to be consumed by the app. -
Next either run the app for development or generate an apk file.
- Ensure you have latest version of android studio installed.
- cd into the
android
folder. - Run
./gradlew assembleRelease
. The APK will exist in the following folder.