From 0a9811002d862b1d6f3ea077a8bcb7122cd78a3c Mon Sep 17 00:00:00 2001 From: James Rich <2199651+jamesarich@users.noreply.github.com> Date: Sat, 21 Feb 2026 18:28:11 -0600 Subject: [PATCH] chore(ble): Add Proguard rules for Nordic BLE library This commit adds Proguard rules to prevent warnings and ensure the necessary classes from the Nordic BLE library are kept during the release build process. Specifically, rules have been added for the `mock` and `compose` packages to avoid issues with code shrinking and obfuscation. Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com> --- app/proguard-rules.pro | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 4a23bfe284..cc6a765180 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -43,3 +43,8 @@ # R8 optimization for Kotlin null checks (AGP 9.0+) -processkotlinnullchecks remove + +# Nordic BLE +-dontwarn no.nordicsemi.kotlin.ble.environment.android.mock.** +-keep class no.nordicsemi.kotlin.ble.environment.android.mock.** { *; } +-keep class no.nordicsemi.kotlin.ble.environment.android.compose.** { *; }