diff options
author | Sebastian <sebasjm@gmail.com> | 2021-09-24 11:09:55 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2021-09-24 11:12:29 -0300 |
commit | 082420665a58ad898b47e8216484ff6ca4e2bc28 (patch) | |
tree | 4eeda3762a65688feeb0ee2604a3a31dce00aade | |
parent | 52d468141e3478523c1373f3bc81fd3a4fbfea72 (diff) | |
download | akono-082420665a58ad898b47e8216484ff6ca4e2bc28.tar.gz akono-082420665a58ad898b47e8216484ff6ca4e2bc28.tar.bz2 akono-082420665a58ad898b47e8216484ff6ca4e2bc28.zip |
added description about how to build this library
-rw-r--r-- | README | 1 | ||||
-rw-r--r-- | README.md | 36 | ||||
-rw-r--r-- | akono/.classpath | 6 | ||||
-rw-r--r-- | akono/.project | 34 | ||||
-rw-r--r-- | akono/.settings/org.eclipse.buildship.core.prefs | 2 | ||||
-rw-r--r-- | akono/build.gradle.kts | 7 |
6 files changed, 82 insertions, 4 deletions
diff --git a/README b/README deleted file mode 100644 index cf661e57..00000000 --- a/README +++ /dev/null @@ -1 +0,0 @@ -Akono is a NodeJS binding for Android+Kotlin. diff --git a/README.md b/README.md new file mode 100644 index 00000000..48e3108b --- /dev/null +++ b/README.md @@ -0,0 +1,36 @@ + +Akono is a NodeJS binding for Android+Kotlin. + +# Building + +This JNI library needs a special node building which is implemented in the `android-node-v8` repository. +You can download it by initializing the git submodule + +` +git submodule init +git submodule update -f +` + +Follow the instructions inside to generate the binaries and copy out the libraries + +` +cp -r $REPO/deps/android-node-v8/taler-android-build/compiled/ $REPO/deps/ +` + +where `$REPO` is this repo directory. + +Once you have the special node library you can now build it + +` +./gradlew assemble +` + +# Testing + +With a device connected run: + +` +./gradlew connectedAndroidTest +` + + diff --git a/akono/.classpath b/akono/.classpath new file mode 100644 index 00000000..4a04201c --- /dev/null +++ b/akono/.classpath @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11/"/> + <classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/> + <classpathentry kind="output" path="bin/default"/> +</classpath> diff --git a/akono/.project b/akono/.project new file mode 100644 index 00000000..2c7e6ba3 --- /dev/null +++ b/akono/.project @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>akono-akono</name> + <comment>Project akono-akono created by Buildship.</comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.buildship.core.gradleprojectbuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + <nature>org.eclipse.buildship.core.gradleprojectnature</nature> + </natures> + <filteredResources> + <filter> + <id>1632335668892</id> + <name></name> + <type>30</type> + <matcher> + <id>org.eclipse.core.resources.regexFilterMatcher</id> + <arguments>node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments> + </matcher> + </filter> + </filteredResources> +</projectDescription> diff --git a/akono/.settings/org.eclipse.buildship.core.prefs b/akono/.settings/org.eclipse.buildship.core.prefs new file mode 100644 index 00000000..b1886adb --- /dev/null +++ b/akono/.settings/org.eclipse.buildship.core.prefs @@ -0,0 +1,2 @@ +connection.project.dir=.. +eclipse.preferences.version=1 diff --git a/akono/build.gradle.kts b/akono/build.gradle.kts index 7f8d3a2b..8b094f96 100644 --- a/akono/build.gradle.kts +++ b/akono/build.gradle.kts @@ -22,9 +22,10 @@ android { // Tells Gradle to build outputs for the following ABIs and package // them into your APK. abiFilters("armeabi-v7a") - abiFilters("arm64-v8a") - abiFilters("x86") - abiFilters("x86_64") + // FIXME: uncomment this arch after being able to build it + // abiFilters("arm64-v8a") + // abiFilters("x86") + // abiFilters("x86_64") } externalNativeBuild { |