Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement the share button when finishing the game #17

Closed
3 of 4 tasks
Tracked by #5
opatry opened this issue Jan 11, 2022 · 2 comments
Closed
3 of 4 tasks
Tracked by #5

Implement the share button when finishing the game #17

opatry opened this issue Jan 11, 2022 · 2 comments
Labels
android Android version compose Compose version enhancement New feature or request mosaic Compose Mosaic console version

Comments

@opatry
Copy link
Owner

opatry commented Jan 11, 2022

This is a bit tedious to achieve given that it's dependent on underlying platform internals.

In this SO answer, it is suggested to use a CompositionLocalProvider to delegate the impl: https://stackoverflow.com/a/68389985/2551689

@opatry opatry mentioned this issue Jan 11, 2022
4 tasks
@opatry opatry changed the title ideally, we could use pbcopy when finishing the game to directly copy the ASCII/Emoji results in clipboard Implement the share button when finishing the game Jan 11, 2022
@opatry opatry added android Android version compose Compose version enhancement New feature or request mosaic Compose Mosaic console version labels Jan 11, 2022
@opatry
Copy link
Owner Author

opatry commented Jan 12, 2022

LocalClipboardManager is a thing we can use. Tested on Desktop, should work on Android too.
For Mosaic, we could imagine implementing the same logic.

@opatry
Copy link
Owner Author

opatry commented Jan 13, 2022

For Mosaic, maybe relying on lordcodes/turtle would be the simplest?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android Android version compose Compose version enhancement New feature or request mosaic Compose Mosaic console version
Projects
None yet
Development

No branches or pull requests

1 participant