Skip to content
/ Kanji Public

Swift/Java interface and bindings for macOS and Linux

License

Notifications You must be signed in to change notification settings

jectivex/Kanji

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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, install a JDK (e.g., with brew install openjdk) 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.

About

Swift/Java interface and bindings for macOS and Linux

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages