Swift on Android - Sample1
In this sample I created a Native Android Activity with its Layout and then created a listener to call the swift funcion
sum() and implemented an Interface Response to receive the response from Swift to Java.
swift-android-gradle on macOS
This tool adds some gradle scripts on the build life cycle to generate Swift code and copy the binaries
*.so on jniLibs folder.
Download the Swift Android Toolchain.
*.tgzand change directory to the
export ANDROID_HOME=/Users/jmarkstar/Library/Android/sdk export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home