Furnyr / Dissonity

Open source project that makes it easy to create Discord activities using Unity and the Embedded App SDK
MIT License
31 stars 5 forks source link

Plan for the future #6

Closed Furnyr closed 2 weeks ago

Furnyr commented 6 months ago

TL;DR

This implementation will remain as is (npm package + Unity package) at least during the developer preview. Once the SDK is fully released, I plan to release a new version that won't specifically need a Node.js backend (only the Unity package).

Plan

I've been researching for a few days and discovered another possible implementation that wouldn't require an npm package. Instead of instantiating the SDK inside Node.js and sharing data with Unity through messages, the Dissonity package could act as the SDK instance. You would retrieve an access token from your backend and use it to authenticate the user inside Unity. The advantages are many:

Although there are also possible disadvantages, since it could be harder to implement new functionality. The npm package would still be maintained for some time to give users time to upgrade.

If you have any idea or comments, feel free to contribute in this issue!

Shout-out to kuylar for her Godot implementation and xelnath on Discord that made me rethink the current implementation lol.

Furnyr commented 5 months ago

Obviously this would be a breaking change, so I plan to continue supporting 1.x.x even after 2.0 comes out. Version 2.0 won't need the npm package and will be inside a different folder like v2 while the version 1.x.x will continue to be inside the unity folder.

Furnyr commented 2 months ago

Related to the new CSP update, I'm aware that Dissonity v1 only wraps around the DiscordSDK class, so it loses some functionality like the patchUrlMappings function.

These features will be implemented in Dissonity v2 and might be later available for v1.

Furnyr commented 1 month ago

Hi! I wanted to inform that development for Dissonity v2 is on going for a few months now! It's not just a cleaner implementation of the SDK, it's a whole set of tools that makes activity development on Unity much easier.

It's still far from stable tho, and I won't make it the "main" Dissonity version until the developer preview ends. But before that, I will look for testers once I implement everything I'm working on.

No ETA yet, stay tuned ;p

Furnyr commented 2 weeks ago

;>