Getting started¶
This section takes you from a blank machine to a plugin running on the head unit. Read the pages in order the first time; later, use the guides and reference as needed.
-
JDK 17, JDK 8, the Gradle wrapper, and mibpkg for packaging.
-
Install the
mibsdkpackage on the unit once, then verify the Plugins menu. -
Start from the template, scaffold with
newPlugin, or write the five files by hand. -
What lives in a plugin, what ships to the unit, and how the Java and native sides fit together.
-
Build the coffee-timer plugin: a Car row, a page, a slider, a status item and a toast.
-
Run the real runtime against a fake car on your computer, with no unit attached.
The short version¶
The examples use SDK 0.9.0. If you already have a working unit and a JDK:
git clone https://github.com/complex256/mib2q-plugin-sdk.git
cp -R mib2q-plugin-sdk/templates/plugin my-plugin
cd my-plugin
./gradlew test
./gradlew mibPluginJar
That produces build/mibsdk/my-plugin.jar. Install the SDK package on the unit once, then install your
plugin as a package (.mpk) or push the jar during development. See
Install and debug.
Before you install anything¶
This is experimental software for a car. Read the safety model first. The SDK has been verified on a bench unit, not yet on a car, and installing it is likely to void your warranty.