Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

Autumn and Proguard

MJ edited this page Dec 17, 2017 · 1 revision

Using Autumn with Proguard

In order to use Proguard along with Autumn, you must make sure that component classes are not pruned or obfuscated.

# Keep constructors for automatic component initiation:
-keepclassmembers class com.your.company.** {
    public <init>(...);
}

# Keep all members with Autumn annotations:
-keepclassmembers,allowobfuscation class * {
    @com.github.czyzby.** *;
}

# Required LibGDX config changes:
-keepclassmembers enum com.badlogic.gdx.*$* { <fields>; }

See #61.