π NeuroVerse Plugin System Overview : Continues to Optimise
The NeuroVerse plugin system empowers developers to extend the assistant's capabilities using dynamic, runtime-loaded APK plugins. These plugins can run AI requests, interact with Android APIs, and even define custom actions, all through a simple, well-documented architecture.
Develop a flexible, APK-based plugin system for NeuroVerse, enabling third-party features and dynamic automation tools to be loaded and executed at runtime.
manifest.json
.Context
, Activity
, View
).plugin-api.jar
.DexClassLoader
to load the pluginβs main class and invoke Plugin.run(Context)
.Each plugin extends the Plugin
base class:
open class Plugin(protected val context: Context) {
open fun getName(): String = "none"
open fun onStart() {}
open fun submitAiRequest(prompt: String): JSONObject = JSONObject()
open fun onAiResponse(response: JSONObject) {}
open fun onStop() {}
}
{
"name": "AppLauncherPlugin",
"description": "Launches any installed app based on user request",
"main": "com.example.plugin.AppLauncherPlugin",
"plugin-api-version": "1.0",
"permissions": ["LAUNCH_APP"]
}