You can run the tasks using
gradlew.bat on windows).
gradlew is a gradle wrapper that will help you run gradle tasks without installing gradle. StackOverflow has a good comparison.
This was because the
ANDROID_HOME environment variable was set to
~/.android. So moving the CLI tools to that directory did the trick
Indeed there is. The safe_app_java project is a multi module gradle project for both desktop (
safe-app) and android (
If you want to build the libraries only for desktop without downloading the Android SDKs you can remove
:safe-app-android from the
settings.gradle file and then build the desktop JARs.
For some clarity on what the gradle tasks do:
The safe_app_java project uses native code that is written in Rust. This native code is compiled for the supported platforms in their respective formats. The
download-nativelibs task downloads these native libraries into the project directories.
The native libraries and the required Java classes can be packaged into JARs and AARs for desktop and mobile respectively. The
safe-app:pack task will build the required JARs for desktop and the
safe-app-android:build task will build the AARs for mobile.
The API documentation for the Java API is available at docs.maidsafe.net/safe_app_java. However if you prefer to build it locally the
safe-app-android:javadoc task will generate the documentation into the