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 1.1.4
Swift/Java interface and bindings for macOS and Linux
⭐️ 0
🕓 1 year ago
iOS macOS watchOS tvOS
.package(url: "https://github.com/jectivex/Kanji.git", from: "1.1.4")

Swift Kotlin Android Native Java Interface (Kanji)

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

See the API documentation:

To run tests on macOS 12, install a JDK (e.g., with brew install openjdk@11) 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: 0
Last commit: 1 year ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

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