From what I understand, the following should work:
- compile Syncthing with
- create an implementation of
filesystem.goin Syncthing that accesses Storage Access Framework APIs directly
I have been trying to implement this, but I can’t get step 1 (compilation with gomobile) to work.
$ gomobile bind -o out.apk github.com/syncthing/syncthing/cmd/syncthing gomobile: binding 'main' package () is not supported
Does that mean we need to make a Syncthing package without a main() function?
So, what can we do to make this work?