File tree Expand file tree Collapse file tree 2 files changed +33
-12
lines changed Expand file tree Collapse file tree 2 files changed +33
-12
lines changed Original file line number Diff line number Diff line change 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+
Original file line number Diff line number Diff line change @@ -14,8 +14,6 @@ printf "${Green}Downloading libzim ${NC}\n"
1414./gradlew downloadLibzimSoAndHeaderFiles unzipLibzim
1515printf " \n${Green} Done! ${NC} \n"
1616
17- hash -r
18-
1917printf " ${Green} Coping libzim header and so files ${NC} \n"
2018./gradlew checkCurrentLibzimDate copyLibzimHeaderFiles copyLibzimAndroidArm copyLibzimAndroidArm64 copyLibzimAndroidx86 copyLibzimAndroidx86_64 copyLibzimLinux_x86_64 renameLibzimSoFile
2119printf " \n${Green} Down! ${NC} \n"
@@ -24,14 +22,6 @@ printf "${Green}Downloading libkiwix ${NC}\n"
2422./gradlew downloadLibkiwixSoAndHeaderFiles unzipLibkiwix
2523printf " \n${Green} Done! ${NC} \n"
2624
27- hash -r
28-
2925printf " ${Green} Coping libkiwix header and so files ${NC} \n"
3026./gradlew checkCurrentLibkiwixDate copyLibkiwixHeaderFiles copyLibkiwixAndroidArm copyLibkiwixAndroidArm64 copyLibkiwixAndroidx86 copyLibkiwixAndroidx86_64 copyLibkiwixLinux_x86_64 renameLibkiwixSoFile
3127printf " \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
You can’t perform that action at this time.
0 commit comments