Add the following code to your project's shard.yml under:
dependencies
to use in production
- OR -
development_dependencies
to use in development
Crystal bindings for the Android Native Development Kit (NDK), manually written
based on $ANDROID_NDK_HOME/toolchains/llvm/prebuilt/<host>/sysroot/usr/include
Partially inspired by https://github.com/ysbaddaden/android.cr and https://github.com/ysbaddaden/java.cr (JNI bindings are taken from there)
Extremely incomplete! Only has enough functionality for https://github.com/HertzDevil/crystal-android-hello-world
Add the dependency to your shard.yml
:
dependencies:
android_ndk:
github: HertzDevil/android-ndk.cr
Run shards install
require "android_ndk"
TODO: Write usage instructions here
TODO: Write development instructions here
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)