Search code examples
javaiosbindinglibgdx

Forcelink classes using intel moe (java to ios)?


How can I force link classes using intel moe with a libgdx project.

Using roboVM I could easily add this to robovm.xml

<forceLinkClasses>
   <pattern>com.badlogic.gdx.scenes.scene2d.ui.*</pattern>
</forceLinkClasses>

How can I do the same using intel moe? I am using json to create classes via reflection so this is a necessity.

Thanks


Solution

  • For anyone else in the future, I had to create the file proguard.append.cfg, which allows you to define java packages which must be kept in the build; an example:

    -keep class com.mypackage.** { *; }