feat: enhance plugin dependency management in PluginLoader

This commit is contained in:
jtalborough
2025-02-28 16:35:42 -05:00
parent 488dda2c0c
commit 493ef59497

View File

@@ -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<string, List<string>>();
// Populate pluginDependencies with relevant data
// Example: pluginDependencies["PluginA"] = new List<string> { "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