File tree 2 files changed +33
-12
lines changed
2 files changed +33
-12
lines changed Original file line number Diff line number Diff line change 1
- # Libkiwix binding for Java/Kotlin
2
-
3
1
[ ![ Maven Central] ( https://img.shields.io/maven-central/v/org.kiwix.kiwixlib/kiwixlib )] ( https://search.maven.org/artifact/org.kiwix.kiwixlib/kiwixlib )
4
2
[ ![ CodeFactor] ( https://www.codefactor.io/repository/github/kiwix/java-libkiwix/badge )] ( https://www.codefactor.io/repository/github/kiwix/java-libkiwix )
5
3
[ ![ 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"
14
14
./gradlew downloadLibzimSoAndHeaderFiles unzipLibzim
15
15
printf " \n${Green} Done! ${NC} \n"
16
16
17
- hash -r
18
-
19
17
printf " ${Green} Coping libzim header and so files ${NC} \n"
20
18
./gradlew checkCurrentLibzimDate copyLibzimHeaderFiles copyLibzimAndroidArm copyLibzimAndroidArm64 copyLibzimAndroidx86 copyLibzimAndroidx86_64 copyLibzimLinux_x86_64 renameLibzimSoFile
21
19
printf " \n${Green} Down! ${NC} \n"
@@ -24,14 +22,6 @@ printf "${Green}Downloading libkiwix ${NC}\n"
24
22
./gradlew downloadLibkiwixSoAndHeaderFiles unzipLibkiwix
25
23
printf " \n${Green} Done! ${NC} \n"
26
24
27
- hash -r
28
-
29
25
printf " ${Green} Coping libkiwix header and so files ${NC} \n"
30
26
./gradlew checkCurrentLibkiwixDate copyLibkiwixHeaderFiles copyLibkiwixAndroidArm copyLibkiwixAndroidArm64 copyLibkiwixAndroidx86 copyLibkiwixAndroidx86_64 copyLibkiwixLinux_x86_64 renameLibkiwixSoFile
31
27
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
You can’t perform that action at this time.
0 commit comments