eclipse-paho / eclipse-paho/paho.mqtt.java

Android ProGuard/R8 rules?

Open
#776 2 comments 2 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.3k
Forks
919
PR merge metrics
No merged PRs in 30d

Description

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

- [x ] Bug exists Release Version 1.2.4 ( Master Branch)

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.