Update README.md

This commit is contained in:
n4n5 2024-10-09 17:35:16 +02:00 committed by GitHub
parent 69897b97fb
commit f1c3334c56
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 1 deletions

View File

@ -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