Please provide working proguard config for Android

I am trying to migrate from the old asmack to the shiny new smack 4.1.2, making use of the smack-android module.

My app is working perfectly… until it’s time to generate a release version.

The release version uses proguard to minify the compiled app. This has consequences for especially where libraries use reflection or class loading at runtime. So what’s needed is a working proguard config for smack.

I have tried the blanket solution suggested in les-for-smack-4-1 to no avail.

Upon connection to the XMPP server, the app immediately crashes, here is the stack trace:

      at org.jivesoftware.smackx.privacy.PrivacyListManager.<init>(
      at org.jivesoftware.smackx.privacy.PrivacyListManager.getInstanceFor(
      at org.jivesoftware.smackx.privacy.PrivacyListManager$1.connectionCreated(
      at org.jivesoftware.smack.tcp.XMPPTCPConnection.initConnection(
      at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectInternal(
      at org.jivesoftware.smack.AbstractXMPPConnection.connect(
     Caused by: java.lang.ClassCastException: java.lang.Class cannot be cast to java.lang.reflect.ParameterizedType
      at org.jivesoftware.smack.filter.FlexibleStanzaTypeFilter.<init>(
      at org.jivesoftware.smackx.privacy.filter.SetActiveListFilter.<init>(
      at org.jivesoftware.smackx.privacy.filter.SetActiveListFilter.<clinit>(

The problem is also described in detail at roguard