NightscoutFoundation / xDrip

Nightscout version of xDrip+
https://jamorham.github.io/#xdrip-plus
GNU General Public License v3.0
1.41k stars 1.15k forks source link

ProGuard rule to ignore kotlinx.serialization.Serializable missing class warning #3521

Closed tolot27 closed 5 months ago

tolot27 commented 5 months ago

The class AAPSStatusHandler uses info.nightscout.sdk.localmodel.devicestatus.NSDeviceStatus (ns-sdk-full-release:@aar) which is annotated with @Serializable this throws the following compile time warning:

Missing classes detected while running R8. Please add the missing classes or apply additional keep rules that are generated in ...\missing_rules.txt.

Missing class kotlinx.serialization.Serializable (referenced from: info.nightscout.sdk.localmodel.devicestatus.NSDeviceStatus$Configuration and 5 other contexts)

Since we only deserialize a Json string into an NSDeviceStatus object, we can ignore this warning and disable it with a ProGuard rule.