mirror of
https://github.com/kiwix/java-libkiwix.git
synced 2025-08-03 19:16:10 -04:00
Adapt README.md and change build.sh
into install_deps.sh
This commit is contained in:
parent
ba990be6c5
commit
7de75101fb
35
README.md
35
README.md
@ -1,5 +1,36 @@
|
||||
# Libkiwix binding for Java/Kotlin
|
||||
|
||||
[](https://search.maven.org/artifact/org.kiwix.kiwixlib/kiwixlib)
|
||||
[](https://www.codefactor.io/repository/github/kiwix/java-libkiwix)
|
||||
[](https://www.gnu.org/licenses/gpl-3.0)
|
||||
|
||||
# Java Libkiwix binding for Java/Kotlin
|
||||
|
||||
Android Library for accessing libkiwix and libzim in android with JAVA wrapper.
|
||||
|
||||
# Steps to build
|
||||
|
||||
## Clone java-libkiwix
|
||||
|
||||
```bash
|
||||
git clone https://github.com/kiwix/java-libkiwix.git
|
||||
cd java-libkiwix
|
||||
```
|
||||
|
||||
## Install dependencies
|
||||
|
||||
```bash
|
||||
./install_deps.sh
|
||||
```
|
||||
|
||||
## Compile
|
||||
|
||||
|
||||
```bash
|
||||
./gradlew generateHeaderFilesFromJavaWrapper
|
||||
./gradlew build
|
||||
```
|
||||
|
||||
AAR file will be generated in directory `lib/build/outputs/aar`
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -14,8 +14,6 @@ printf "${Green}Downloading libzim ${NC}\n"
|
||||
./gradlew downloadLibzimSoAndHeaderFiles unzipLibzim
|
||||
printf "\n${Green}Done! ${NC}\n"
|
||||
|
||||
hash -r
|
||||
|
||||
printf "${Green}Coping libzim header and so files ${NC}\n"
|
||||
./gradlew checkCurrentLibzimDate copyLibzimHeaderFiles copyLibzimAndroidArm copyLibzimAndroidArm64 copyLibzimAndroidx86 copyLibzimAndroidx86_64 copyLibzimLinux_x86_64 renameLibzimSoFile
|
||||
printf "\n${Green}Down! ${NC}\n"
|
||||
@ -24,14 +22,6 @@ printf "${Green}Downloading libkiwix ${NC}\n"
|
||||
./gradlew downloadLibkiwixSoAndHeaderFiles unzipLibkiwix
|
||||
printf "\n${Green}Done! ${NC}\n"
|
||||
|
||||
hash -r
|
||||
|
||||
printf "${Green}Coping libkiwix header and so files ${NC}\n"
|
||||
./gradlew checkCurrentLibkiwixDate copyLibkiwixHeaderFiles copyLibkiwixAndroidArm copyLibkiwixAndroidArm64 copyLibkiwixAndroidx86 copyLibkiwixAndroidx86_64 copyLibkiwixLinux_x86_64 renameLibkiwixSoFile
|
||||
printf "\n${Green}Done! ${NC}\n"
|
||||
|
||||
printf "${Green}Generating header files from java wrapper files ${NC}\n"
|
||||
./gradlew generateHeaderFilesFromJavaWrapper
|
||||
printf "\n${Green}Done! ${NC}\n"
|
||||
|
||||
hash -r
|
Loading…
x
Reference in New Issue
Block a user