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

Add dynamic dependency manager with relocation #285

Merged
merged 20 commits into from
Jun 25, 2024

Conversation

diogotcorreia
Copy link
Member

@diogotcorreia diogotcorreia commented Feb 16, 2023

Fixes #237

Uses https://github.com/AlessioDP/libby as the dependency manager, which is based on LuckPerm's code.

Adventure itself is not relocated since we need to access native Components on Paper and Velocity. If this turns out to be a problem in the future, we might consider using a converter, like LuckPerms has done.

TODO:

  • Get Adventure to work on BungeeCord
  • Dynamically decide which libraries should be loaded (i.e. based on platform and storage type)
  • Fail gracefully if libraries can't be downloaded
  • Provide ZIP with complete lib folder on GitHub releases (as GitHub action)

@diogotcorreia diogotcorreia added the type:feature A new functionality label Feb 16, 2023
@diogotcorreia diogotcorreia added this to the 4.0.0 milestone Feb 16, 2023
@diogotcorreia diogotcorreia self-assigned this Feb 16, 2023
@diogotcorreia
Copy link
Member Author

Relevant stacktrace from the latest commit: https://paste.happyareabean.cc/syYLZQtb0e04a0W

@diogotcorreia diogotcorreia marked this pull request as ready for review June 25, 2024 22:58
@diogotcorreia diogotcorreia merged commit e7dcb03 into v4 Jun 25, 2024
1 check passed
@diogotcorreia diogotcorreia deleted the feature/dynamic-dependencies branch June 25, 2024 23:08
diogotcorreia added a commit that referenced this pull request Jul 14, 2024
Due to #285, the TritonAPI class in the core module was no longer
overshadowing the same class in the api module, effectively breaking the
TritonAPI#getInstance method.

This commit works around that by saving a reference to the Triton
instance in the TritonAPI class ifself.
diogotcorreia added a commit that referenced this pull request Jul 14, 2024
Due to #285, the TritonAPI class in the core module was no longer
overshadowing the same class in the api module, effectively breaking the
TritonAPI#getInstance method.

This commit works around that by saving a reference to the Triton
instance in the TritonAPI class ifself.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature A new functionality
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant