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.
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/
Licensed under MPLv2, see the LICENSE file for details.
Copyright © Delta Chat and Chatmail contributors.