-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add RuneShare plugin #7156
Add RuneShare plugin #7156
Conversation
|
This looks like it will also block the client thread and swing thread. Please inject our okhttp client and use enqueue. |
Thanks for taking a look! I'll implement the changes. |
* Add defaults for configs * Use `okHttpClient` and `enqueue` the request so it doesn't block the client thread and swing thread
@LlemonDuck @raiyni Thanks for the feedback. I think I fixed those issues correctly but let me know if I didn't and need to make a change. Thanks! |
The client thread and the Swing thread are different things, don't use Client#invokeLater to perform Swing operations: https://github.com/kcdragon/runeshare-plugin/blob/f84a42f818694a38252035f5b1b81f0d0cf9639a/src/main/java/app/runeshare/RuneSharePlugin.java#L102-L104 |
@LlemonDuck Ah I think I see what you mean now. I changed the |
RuneShare is a web app and plugin I'm developing to share and discover bank tabs. This plugin sends bank tag tab data (from the Bank Tabs plugin) to https://osrs.runeshare.app/. Each player has their own account on RuneShare and they use an API token to configure the plugin. It's currently a one way sync. Changes are sent to the web app but not from the web app to the plugin.
There are two sync modes: auto sync and manual sync. By default, manual sync is enabled and the player chooses which bank tag tabs to sync. If auto sync is enabled, the active bank tag tab will be synced.
The README describes the setup instructions for the plugin.
Let me know if I can add any more details to help the review process. I appreciate you reviewing. Thanks!