Skip to content
Adrian Papari edited this page Jan 6, 2019 · 3 revisions

Warning

The GWT target in general requires some effort to get working and can be hard to debug. Not recommended for beginners.

This module depends on BOTH gdx and odb gwt reflection caches! Make absolutely certain you register all your components and related types with both reflection caches, or you will spend hours debugging! See step 4 below.

GWT Setup

In addition to the Basic Setup, GWT applications require a few additional steps.

  1. Add compile "net.onedaybeard.artemis:artemis-odb-serializer-json-libgdx:2.2.0:sources" to your html module.
  2. Add the gwt json module to GdxDefinition.gwt.xml <inherits name='com.artemis-json-libgdx' />
  3. Register all classes (or parent packages) in GdxDefinition.gwt.xml, example:
<extend-configuration-property name="gdx.reflect.include" value="net.mypackage.components"/>
<extend-configuration-property name="artemis.reflect.include" value="net.mypackage.components"/>
Clone this wiki locally