Skip to content

Commit 7de7510

Browse files
committed
Adapt README.md and change build.sh into install_deps.sh
1 parent ba990be commit 7de7510

File tree

2 files changed

+33
-12
lines changed

2 files changed

+33
-12
lines changed

README.md

+33-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,36 @@
1-
# Libkiwix binding for Java/Kotlin
2-
31
[![Maven Central](https://img.shields.io/maven-central/v/org.kiwix.kiwixlib/kiwixlib)](https://search.maven.org/artifact/org.kiwix.kiwixlib/kiwixlib)
42
[![CodeFactor](https://www.codefactor.io/repository/github/kiwix/java-libkiwix/badge)](https://www.codefactor.io/repository/github/kiwix/java-libkiwix)
53
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
4+
5+
# Java Libkiwix binding for Java/Kotlin
6+
7+
Android Library for accessing libkiwix and libzim in android with JAVA wrapper.
8+
9+
# Steps to build
10+
11+
## Clone java-libkiwix
12+
13+
```bash
14+
git clone https://github.com/kiwix/java-libkiwix.git
15+
cd java-libkiwix
16+
```
17+
18+
## Install dependencies
19+
20+
```bash
21+
./install_deps.sh
22+
```
23+
24+
## Compile
25+
26+
27+
```bash
28+
./gradlew generateHeaderFilesFromJavaWrapper
29+
./gradlew build
30+
```
31+
32+
AAR file will be generated in directory `lib/build/outputs/aar`
33+
34+
35+
36+

build.sh install_deps.sh

-10
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ printf "${Green}Downloading libzim ${NC}\n"
1414
./gradlew downloadLibzimSoAndHeaderFiles unzipLibzim
1515
printf "\n${Green}Done! ${NC}\n"
1616

17-
hash -r
18-
1917
printf "${Green}Coping libzim header and so files ${NC}\n"
2018
./gradlew checkCurrentLibzimDate copyLibzimHeaderFiles copyLibzimAndroidArm copyLibzimAndroidArm64 copyLibzimAndroidx86 copyLibzimAndroidx86_64 copyLibzimLinux_x86_64 renameLibzimSoFile
2119
printf "\n${Green}Down! ${NC}\n"
@@ -24,14 +22,6 @@ printf "${Green}Downloading libkiwix ${NC}\n"
2422
./gradlew downloadLibkiwixSoAndHeaderFiles unzipLibkiwix
2523
printf "\n${Green}Done! ${NC}\n"
2624

27-
hash -r
28-
2925
printf "${Green}Coping libkiwix header and so files ${NC}\n"
3026
./gradlew checkCurrentLibkiwixDate copyLibkiwixHeaderFiles copyLibkiwixAndroidArm copyLibkiwixAndroidArm64 copyLibkiwixAndroidx86 copyLibkiwixAndroidx86_64 copyLibkiwixLinux_x86_64 renameLibkiwixSoFile
3127
printf "\n${Green}Done! ${NC}\n"
32-
33-
printf "${Green}Generating header files from java wrapper files ${NC}\n"
34-
./gradlew generateHeaderFilesFromJavaWrapper
35-
printf "\n${Green}Done! ${NC}\n"
36-
37-
hash -r

0 commit comments

Comments
 (0)