You should start by reading the blog post where I explain how to run Swift code on Android. All the concepts are explained there.
It will look like this:
You'll need Xcode, the Android SDK and the Android NDK. Then you'll need to run this :
- Edit the Makefile
make clean && make
ant debug install
And that's it!
I dedicate all this code to the public domain. Note that part of this come from the "hello-jni" sample code from the AOSP so some restrictions may apply.