RoboVM strips out classes not being referenced to keep down the size of the
app. The compiler has to be told about classes that get loaded using
reflection. That's what the -roots command line option and the <roots>
section in the robovm.xml file are for. You may have to add a <root> there
for the class(es) containing the effect code. Or you could just add
<root>**.*</root> and RoboVM will compile and link in everything.
This bug [1] can be useful for knowing classes loaded by name or JNI callbacks, like, by example:

-keep class com.sun.javafx.font.FontConfigManager$FontConfigFont {
    <fields>;
}

-keep class com.sun.javafx.font.FontConfigManager$FcCompFont {
    <fields>;
}

[1]: https://javafx-jira.kenai.com/browse/RT-27590

Reply via email to