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 PreLoadedPlugin mixin for pre-initialized plugins #19

Merged
merged 8 commits into from
Sep 18, 2024

Conversation

vishal-kr-barnwal
Copy link
Contributor

This will help us to mark any plugin to be preloaded without any Change to Vyuh Core.

Revamped the handling of preloaded plugins by introducing the PreLoadedPlugin mixin. Applied this mixin to DIPlugin, AnalyticsPlugin, and NetworkPlugin to ensure they are initialized before the platform. Removed the static list of preloadedPlugins from VyuhPlatform.

Revamped the handling of preloaded plugins by introducing the PreLoadedPlugin mixin. Applied this mixin to DIPlugin, AnalyticsPlugin, and NetworkPlugin to ensure they are initialized before the platform. Removed the static list of preloadedPlugins from VyuhPlatform.
@vishal-kr-barnwal vishal-kr-barnwal marked this pull request as draft September 15, 2024 11:49
Convert plugin storage mechanism to a cacheable list for better performance. Change abstract class to use getters instead of final fields, and update methods to work with the new plugin handling structure.
This update modifies the addAll method in default_platform.dart to clear the lookup cache whenever new plugins are added. This ensures that the cache remains consistent with the latest set of plugins.
Replaced the PluginType enumeration with a PluginDescriptor class to handle plugin dependency management. Simplified plugin initialization and retrieval logic, and streamlined the code by removing redundant checks for required plugins.
@pavanpodila pavanpodila marked this pull request as ready for review September 16, 2024 02:28
Copy link
Contributor

@pavanpodila pavanpodila left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changes done

@vishal-kr-barnwal
Copy link
Contributor Author

vishal-kr-barnwal commented Sep 16, 2024

Keeping it in draft, for few more changes.

@vishal-kr-barnwal vishal-kr-barnwal marked this pull request as draft September 16, 2024 02:31
@pavanpodila pavanpodila marked this pull request as ready for review September 18, 2024 05:03
@pavanpodila pavanpodila merged commit 3ffa6da into vyuh-tech:main Sep 18, 2024
8 checks passed
@pavanpodila
Copy link
Contributor

Fixed the developer feature and also improved the ergonomics of PluginDescriptor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants