Pascal Scripting Plugin Architecture Source Code For #Delphi XE8 Firemonkey On Android And IOS


I’ve been working with a developer via UpWork (formerly oDesk) to create a plugin system for Delphi XE8 Firemonkey apps and here is the source code for it. The code is pretty rough still but you can modify it as needed. It should run on Android, IOS, Windows, and OSX. We mainly developed it for use in a project on Windows and OSX but with the correct threading it should also run on Android and IOS. The demo has two types of plugins (with support for adding more). You can create a URL plugin which will launch a URL in the external browser and you can create a Pascal plugin which will run a Pascal script that can run and modify your app at runtime (including your main form). You could also modify the URL plugin to load the URL within the app using TWebBrowser. The Pascal script functionality is provided by paxCompiler. paxCompiler also supports Javascript and a Basic type language in addition to Pascal. The plugins are listed in a TListView which is contained within a TFrame for easy portability into your own apps. The plugin list is saved out and loaded from a JSON file. You can include a name and image with each plugin (for display in the TListView). The DuckDuckDelphi library is also used. You should also be able to use this demo in Appmethod.
Download the full source code for building your own plugin system in to Delphi XE8 Firemonkey apps.

Comments are closed.