From 493ef59497b98ba0fe1aa8a761cf5b19e533bbdc Mon Sep 17 00:00:00 2001 From: jtalborough Date: Fri, 28 Feb 2025 16:35:42 -0500 Subject: [PATCH] feat: enhance plugin dependency management in PluginLoader --- src/PepperDash.Essentials.Core/Plugins/PluginLoader.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/PepperDash.Essentials.Core/Plugins/PluginLoader.cs b/src/PepperDash.Essentials.Core/Plugins/PluginLoader.cs index 7a0d17d1..e20027bc 100644 --- a/src/PepperDash.Essentials.Core/Plugins/PluginLoader.cs +++ b/src/PepperDash.Essentials.Core/Plugins/PluginLoader.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using Crestron.SimplSharp; @@ -662,7 +662,10 @@ namespace PepperDash.Essentials } // Update incompatible plugins with dependency information - UpdateIncompatiblePluginDependencies(); + var pluginDependencies = new Dictionary>(); + // Populate pluginDependencies with relevant data + // Example: pluginDependencies["PluginA"] = new List { "Dependency1", "Dependency2" }; + UpdateIncompatiblePluginDependencies(pluginDependencies); // plugin dll will be loaded. Any classes in plugin should have a static constructor // that registers that class with the Core.DeviceFactory