golang-design / clipboard

📋 cross-platform clipboard package that supports accessing text and image in Go (macOS/Linux/Windows/Android/iOS)
https://golang.design/x/clipboard
MIT License
585 stars 64 forks source link

Android support #8

Closed x777 closed 3 years ago

x777 commented 3 years ago

I've tested for Linux and it works perfectly. But for Android not working at all. Not tested with iOS. Any plans for supporting those?

changkun commented 3 years ago

Yes, it will be supported in the next versions.

changkun commented 3 years ago

After two days of investigation, I don't think it is possible to support Android individually.

Android requires running an application on JVM where it is initialized at bootstrapping time. Unfortunately, every GUI framework supports its own system of the building (packaging) into a mobile application, such as:

Either way, you must rely on their support.

Moreover, Android does not support copy/paste images, which will be incomplete support for this package even if it is supported, see Copy and Paste.

Thus, closing.

changkun commented 3 years ago

OK, I changed my mind. I think it should at least support gomobile. The rest of the platforms should have their own support.

Reopen for mobile support.