110 likes | 1.76k Views
ustry Report 2015Consistent with our stated policy of making available the best research material from across the globe to our ever-growing list of erudite c
E N D
Apple's Swift for Android Development
Apple’s Swift Language Apple’s Swift Language which was intended only for iOS and OS X apps will become available for Android development as Apple has decided to open source Swift.
LLVM LLVM actually generates assembly for an imaginary machine instead of generating a code for specific architecture.
Swift Compiler ● The Swift compiler is asked to generate LLVM-IR (Intermediate Representation); ● The LLVM also generates the ARM ELF file format. ● Later, the Android Native Development Kit (NDK) which lets you use native code languages generates binary linking against the generated object file.
SwiftCore Library ● The biggest issue in using Swift for Android app development is the missing SwiftCore library. ● But it has to be noted that, not all the Swift code requires SwiftCore Library.
Apple’s Open-Sourcing Effort Apple to include SwiftCore in its Swift outsourcing effort. If it is included, getting a SwiftCore library on Android will just be a matter of rebuilding it.
Swift Code The Swift code was written in Apple’s Xcode IDE. Eventually, the code was moved to Android Studio IDE to complete the build process and produce an Android APK.
As a programming language Swift is very much similar to Java and C#. So it is not that hard to get Swift to compile towards Android. Though, it’s not very clear that Swift is better than Java, it certainly has some newer constructs.Swift code. Fortune Softtech | Blog | News