Getting started

Installation

Installation instructions for the Swift Toolchain for Android

Prerequisites

ComponentMinMax
Swift5.86.1.2
macOS13.015.4
Xcode14.316.4
Android versionAndroid 10 (API 29)Android 16 (API 36)
Android NDK2525

IDE installations

  • We assume that you have Apple Xcode installed
  • We assume that you have Android Studio installed

Install Android NDK

Android developers might not have installed the Android NDK which is necessary for mobile app development.

If you havent installed Android NDK version (see above), please follow these instructions:

  1. In Android Studio, choose Tools > SDK Manager
  2. Click on the SDK Tools tab
  3. Click on Show Package details
  4. Scroll down to NDK (Side by Side) and choose NDK version
  5. Press OK for installation img

Installation

There is no manual installation necessary.

You as the developer don't have to manually install anything. The toolchain and libraries are automatically pulled from SCADE github site when you add the library dependencies in Xcode and Android Studio and start the build process.

Just remember that when you build a project the very first time, it takes 1 - 2 minutes to download all the dependencies.

Components

Here is the list of components installed as part of the SCADE platform

On Xcode

  • Compiler plugin (to provide error messages and compiler hints in case something is wrong)
  • Swift4J library (provides @jvm macro)

On Android

  • Swift for Android Compiler
  • Swift Foundation for Android
  • Swift libDispatch for Android