SweetBlue 3.0.3 - Proguard Issue with TemperatureUnit?



  • Sorry if I am posting to the wrong section, this doesn't seem like a bug in the code, but rather a discussion topic / question.

    After integrating SweetBlue 3.0.3, we began to get build failures due to Proguard.
    I believe that it was due to
    Warning: com.idevicesinc.javautils.TemperatureUnit: can’t find referenced class com.idevicesinc.javautils.R
    Warning: com.idevicesinc.javautils.TemperatureUnit: can’t find referenced class com.idevicesinc.javautils.R$string
    Warning: com.idevicesinc.javautils.TemperatureUnit: can’t find referenced class com.idevicesinc.javautils.R$string
    Warning: com.idevicesinc.javautils.TemperatureUnit: can’t find referenced class com.idevicesinc.javautils.R$string
    Warning: com.idevicesinc.javautils.TemperatureUnit: can’t find referenced class com.idevicesinc.javautils.R$string

    I added -dontwarn com.idevicesinc.javautils.TemperatureUnit which resolved our issues. I'm wondering, is there a specific proguard rule I should add to ensure we don't run into any issues?



  • What you did works, however, I would suggest using

    -dontwarn com.idevicesinc.**