Skip to content

chatmail/jni

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JNI bindings for Chatmail Core library

The repository contains Nix development environment described in flake.nix file. If you don't have Nix installed, the easiest way is to follow the Lix installation instructions as this results in a setup with Flakes feature enabled out of the box and can be cleanly uninstalled with /nix/nix-installer uninstall once you don't need it anymore.

Once you have Nix with Flakes feature set up start the development environment shell:

nix develop

Nix development environment contains Rust with cross-compilation toolchains and Android SDK.

Generate JSON-RPC bindings

To generate the JSON-RPC bindings (ex. chat.delta.rpc.* package) install the dcrpcgen tool then generate the schema.json file:

# check the version of core matches:
deltachat-rpc-server --version
# generate the schema:
deltachat-rpc-server --openrpc > schema.json

then pass the schema file to the dcrpcgen tool to generate the code:

dcrpcgen java --schema schema.json -o ./src/main/java/

License

Licensed under MPLv2, see the LICENSE file for details.

Copyright © Delta Chat and Chatmail contributors.

About

JNI bindings for chatmail core library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published