Added rule to keep static members of CallSpec class

The support class for BangleJS devices uses reflection to retrieve an array of the fields and used them to generate JSON which is sent to the devices. Without the new rule ProGuard breaks alerts for incoming calls in release builds.

See also: https://github.com/espruino/BangleApps/issues/976
This commit is contained in:
Marc Nause 2022-03-22 19:50:53 +01:00
parent 3423dbde9a
commit 677d8503d9
1 changed files with 4 additions and 0 deletions

View File

@ -18,6 +18,10 @@
-keepclassmembers class nodomain.freeyourgadget.gadgetbridge.service.devices.pebble.webview.JSInterface {
public *;
}
# Required for refection in BangleJSDeviceSupport
-keepclassmembers class nodomain.freeyourgadget.gadgetbridge.model.CallSpec {
public static *;
}
-keepattributes JavascriptInterface
# https://github.com/tony19/logback-android/issues/29