Note that SkipScript will automatically be imported when it is included
as a dependency and a Swift source file imports the
import SkipScript let ctx = try JSContext() let num = ctx.evaluateScript("1 + 2.3") assert(num.toDouble() == 3.3)
On iOS and other Darwin platforms, the built-in
Android, on the other handle, does not ship JSC as part of the operating system, and so the dependency on the Android side will utilize the
.apk size by between 5-10Mb.
This project is a Swift Package Manager module that uses the Skip plugin to transpile Swift into Kotlin.
Building the module requires that Skip be installed using
brew install skiptools/skip/skip.
This will also install the necessary build prerequisites:
Kotlin, Gradle, and the Android build tools.
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
which will output a table of the test results for both platforms.