A Java/Android library for Etebase
This package is implemented in Rust and exposes a Java API for people to use.
In addition to the API documentation, there are docs available at https://docs.etebase.com
Make sure you have the Android NDK in your build path:
export PATH="$PATH:/opt/android-sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/linux-x86_64/bin/"
Add relevant toolchains:
rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android
Start the build
./build.sh
Push a tag named vX.Y.Z, vX.Y.Z-betaNN or vX.Y.Z-SNAPSHOT (note the v): CI builds every native library and publishes com.etebase:client and com.etebase:client-jvm to Maven Central.
To publish without a tag, run the Build workflow by hand on master and fill in the version (without the v).
The publish job runs in the Release environment, which holds the Maven Central and signing secrets.
In the repository settings, limit that environment's deployments to the master branch and v* tags.
Gradle checks every dependency against the SHA-256 checksums in gradle/verification-metadata.xml, so after adding or upgrading a dependency or plugin, regenerate it:
./gradlew --write-verification-metadata sha256 :client:assembleRelease :client-jvm:assemble
Review the new entries before committing them. If an IDE sync fails on an artifact that is not listed (sources jars, for example), run the same command with the task that fetches it.