Swiftpack.co - jectivex/Kanji as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by jectivex.
jectivex/Kanji 0.1.1
Swift Kotlin Android Native Java Interface (K.A.N.J.I.)
⭐️ 0
🕓 3 weeks ago
iOS macOS watchOS tvOS
.package(url: "https://github.com/jectivex/Kanji.git", from: "0.1.1")

Swift Kotlin Android Native Java Interface (Kanji)

A cross-platform (macOS / Android / Linux) bridge from Swift to Java.

See the API documentation at: https://www.jective.org/Kanji/documentation/kanjivm/

To run tests on macOS 12, install a JDK (e.g., with brew install [email protected]) and ensure that $JAVA_HOME exists, then run:

swift test -Xlinker -L${JAVA_HOME}/lib/jli -Xlinker -ljli

On Linux, run:

LD_LIBRARY_PATH=${JAVA_HOME}/lib/:${JAVA_HOME}/lib/server/:${JAVA_HOME}/lib/jli/:${LD_LIBRARY_PATH} swift test -Xlinker -L${JAVA_HOME}/lib/ -Xlinker -L${JAVA_HOME}/lib/server/ -Xlinker -L${JAVA_HOME}/lib/jli/ -Xlinker -ljli -Xlinker -ljvm

See the ci.yml workflow to see how this is done on the CI runners.

GitHub

link
Stars: 1
Last commit: 4 hours ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics