Port of dawgdic C++ library to Java.
- SWIG 4.0.0 (the class generated by
std_map.i
required to be iterable)
Run: ./gradlew build
.
If you encounter UnsatisfiedLinkError
when run test from Android Studio:
Open Edit Configuration
-> Templates
-> Android JUnit
, under VM Options
change to:
-ea -Djava.library.path=../dawg-jni/build/lib/main/debug
Make sure Working directory
is still $MODULE_DIR$
.
- https://docs.gradle.org/current/userguide/building_cpp_projects.html
- https://github.com/vladsoroka/GradleJniSample
- https://www.jetbrains.com/help/idea/setting-up-jni-development-in-gradle-project.html
- https://gist.github.com/santa4nt/4a8fd626335e36c94356 Sample JNI/C++ HelloWorld
- https://developer.android.com/training/articles/perf-jni RegisterNatives
Wrapper code is licensed under MIT License. Bundled dawgdic C++ library is licensed under BSD license. Bundled libb64 is Public Domain.