How can I use ProGuard with the Android mPOS SDK?

In case you use ProGuard to obfuscate your App, you have to add the following rules for the mPOS SDK:
# Jackson
-keep
class com.fasterxml.
**
{ *; }
-dontwarn
com.fasterxml.**
# Bolts
-keep
class bolts.
**
{ *; }
-dontwarn
bolts.**
# Couchbase
-keep
class com.couchbase.
**
{ *; }
-dontwarn
com.couchbase.**
# OkHttp
-keepattributes
Signature
-keepattributes
*Annotation*
-dontwarn
com.squareup.okhttp.**
-keep
class com.squareup.okhttp.* { *; }
-dontwarn
okio.**
# Otto
-keepclassmembers
class ** {
@com.squareup.otto.Subscribe public *;
@com.squareup.otto.Produce public *;
}
# Payworks
-keep
class io.mpos.** { *; }
-dontwarn
io.mpos.**
The
mpos.android.accessories.pax
requires a bunch more:
-dontwarn
com.pax.**
-keep
class com.pax.** { *; }