eclipse-paho / paho.mqtt.java

Eclipse Paho Java MQTT client library. Paho is an Eclipse IoT project.
https://eclipse.org/paho
Other
2.15k stars 895 forks source link

Android ProGuard/R8 rules? #776

Open gajicm93 opened 4 years ago

gajicm93 commented 4 years ago

Please fill out the form below before submitting, thank you!

Hi, first to be clear, I'm using this Java library directly in Android, I'm NOT using the "Android Service" library.

With that said, library breaks when I activate ProGuard/R8 on release builds, because some classes are missing and/or are renamed..

Around the internet I find solutions like -keep class org.eclipse.paho.** { *; } and it seems to be working, but this is just a bad workaround because it just disables R8 on the whole library.

Can we get an actual specific minimal R8 rules for this library to work?

Thanks.

sickkick commented 3 months ago

Bump