-
Notifications
You must be signed in to change notification settings - Fork 0
Native Libraries
Alexandr Esilevich edited this page Apr 1, 2024
·
21 revisions
This article describes how to use native prebuilt libraries with the Swift toolchain for Android. An example of such a library is the sqlite3 library, which is required for using the GRDB.swift and SQLite.swift libraries.
There are two ways to use native libraries in SPM projects:
- The .systemLibrary SPM target
- The .binaryTarget SPM target
The scd build tool from the Swift toolchain for Android supports both methods and automatically embeds all required dynamic libraries into the resulting Android archive.