mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
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:
Vendored
+4
@@ -18,6 +18,10 @@
|
|||||||
-keepclassmembers class nodomain.freeyourgadget.gadgetbridge.service.devices.pebble.webview.JSInterface {
|
-keepclassmembers class nodomain.freeyourgadget.gadgetbridge.service.devices.pebble.webview.JSInterface {
|
||||||
public *;
|
public *;
|
||||||
}
|
}
|
||||||
|
# Required for refection in BangleJSDeviceSupport
|
||||||
|
-keepclassmembers class nodomain.freeyourgadget.gadgetbridge.model.CallSpec {
|
||||||
|
public static *;
|
||||||
|
}
|
||||||
-keepattributes JavascriptInterface
|
-keepattributes JavascriptInterface
|
||||||
|
|
||||||
# https://github.com/tony19/logback-android/issues/29
|
# https://github.com/tony19/logback-android/issues/29
|
||||||
|
|||||||
Reference in New Issue
Block a user