From f1c3334c5663b839bdf5283df7cd8d11902d3a3b Mon Sep 17 00:00:00 2001 From: n4n5 <56606507+Its-Just-Nans@users.noreply.github.com> Date: Wed, 9 Oct 2024 17:35:16 +0200 Subject: [PATCH] Update README.md --- librclone/README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/librclone/README.md b/librclone/README.md index 7566d3091..1241f437f 100644 --- a/librclone/README.md +++ b/librclone/README.md @@ -201,7 +201,13 @@ The `gomobile` subdirectory contains the equivalent of the C binding but suitable for using with [gomobile](https://pkg.go.dev/golang.org/x/mobile/cmd/gomobile) using something like this. - gomobile bind -v -target=android -javapkg=org.rclone github.com/rclone/rclone/librclone/gomobile +```sh +go install golang.org/x/mobile/cmd/gobind@latest +go install golang.org/x/mobile/cmd/gomobile@latest +gomobile init +# you should have nkd installed and can change the androidapi accordingly +gomobile bind -v -target=android -androidapi 30 -javapkg=org.rclone github.com/rclone/rclone/librclone/gomobile +``` The command generates an Android library (`aar`) that can be imported into an Android application project. Librclone will be contained