Getting started

Library support

Use a large number of Swift 3rd party libraries on Android

General rules for use on Android

You can use and compile any Swift library on Android that fits the following criteria

Option 1: Libraries available as source code

  • Library is available as Swift source code
  • Depends only on Open Source Libraries such as Swift Foundation, Swift Dispatch
  • Does not depend on Closed Source libraries
  • Does not include objC code

Option 2: Libaries available as Android binary

  • C library that is precompiled and runs on Android ARM / x86
  • A good example is SQLite

Examples

Here is our list of libraries we tested and/or provide examples for. Remember the list of libraries that is available to you is sheer endless. They simple have to fit the general rules above.

If your library is not on the list, it doesnt mean it doesnt work, we just haven't provided an example

List of examples demonstrating use of 3rd party library

CategoryLibrary nameDescriptionExampleDemostrates
CoreSwift FoundationAccess all Foundation functionality in AndroidWeatherServiceHTTP
CoreSwift libdispatchlibdispatch
GeneralSwift NIOUse Swift NIO on AndroidNetworking
DatabaseSQLiteUse SQLite on AndroidSimpleDBSQLite
DatabaseGRDBUse of GRDB on AndroidSimpleDBGRDB