iOS Compatibility Kit¶
MicroEJ provides a set of tools and libraries to run applications powered by MicroEJ on iOS. This allows for the same application to be developed, simulated, tested, and executed on MicroEJ VEE and iOS alike.
Thanks to the iOS Compatibility Kit, watch faces can be developed once and deployed on both a smartwatch (MicroEJ VEE) and its companion smartphone app (iOS), enabling consistent functionality and appearance across both devices. This provides a good user experience for the user while minimizing code duplication and maintenance for the developer.
The iOS Compatibility Kit provides a JDK which can be used to compile and run Java code on iOS. The code of the MicroEJ Application and of the libraries it depends on is executed on a Java VM started by the iOS app.
The iOS app can be developed and built on Xcode as a regular iOS application. To run a MicroEJ Application, the Xcode project is configured to embed:
- the runtime libraries of the JDK (JARs and native libraries),
- the implementation of the MicroEJ Foundation Libraries compiled against Java SE and JavaFX APIs,
- the code and resources of the MicroEJ Application and of the Add-On Libraries that it depends on.