Skip to content

Commit

Permalink
Import SQLite3 through SkipFFI
Browse files Browse the repository at this point in the history
  • Loading branch information
marcprux committed Nov 1, 2023
1 parent 5ff1b15 commit 63ffded
Show file tree
Hide file tree
Showing 4 changed files with 441 additions and 695 deletions.
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ let package = Package(
.library(name: "SkipSQL", targets: ["SkipSQL"]),
],
dependencies: [
.package(url: "https://source.skip.tools/skip.git", from: "0.7.1"),
.package(url: "https://source.skip.tools/skip.git", from: "0.7.16"),
.package(url: "https://source.skip.tools/skip-foundation.git", from: "0.3.0"),
.package(url: "https://source.skip.tools/skip-ffi.git", from: "0.1.0"),
.package(url: "https://source.skip.tools/skip-ffi.git", from: "0.1.1"),
],
targets: [
.target(name: "SkipSQL", dependencies: [
Expand Down
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,23 @@

SQL module for [Skip](https://skip.tools) apps.


## Building

This project is a Swift Package Manager module that uses the
[Skip](https://skip.tools) plugin to transpile Swift into Kotlin.

Building the module requires that Skip be installed using
[Homebrew](https://brew.sh) with `brew install skiptools/skip/skip`.
This will also install the necessary build prerequisites:
Kotlin, Gradle, and the Android build tools.

## Testing

The module can be tested using the standard `swift test` command
or by running the test target for the macOS destination in Xcode,
which will run the Swift tests as well as the transpiled
Kotlin JUnit tests in the Robolectric Android simulation environment.

Parity testing can be performed with `skip test`,
which will output a table of the test results for both platforms.
Loading

0 comments on commit 63ffded

Please sign in to comment.