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
Category | Library name | Description | Example | Demostrates |
---|---|---|---|---|
Core | Swift Foundation | Access all Foundation functionality in Android | WeatherService | HTTP |
Core | Swift libdispatch | libdispatch | ||
General | Swift NIO | Use Swift NIO on Android | Networking | |
Database | SQLite | Use SQLite on Android | SimpleDB | SQLite |
Database | GRDB | Use of GRDB on Android | SimpleDB | GRDB |