From 878361eda098cf8b4ddb647782afdc03dfb4d024 Mon Sep 17 00:00:00 2001 From: Kyle Scheuing Date: Wed, 3 Jan 2024 18:15:48 -0500 Subject: [PATCH] fix(android): proguard removing native methods --- android/app/proguard-rules.pro | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/android/app/proguard-rules.pro b/android/app/proguard-rules.pro index 2d9eb9f1..4e0f0a3c 100644 --- a/android/app/proguard-rules.pro +++ b/android/app/proguard-rules.pro @@ -23,4 +23,6 @@ # Some of the methods are native, and others are called by native code. We can do 'native ' # to match native methods, but there's no easy way to do the same for java methods called from # native code. Just keep everything native related instead. --keep class com.oppzippy.openscq30.lib.** { *; } +-keep class com.oppzippy.openscq30.lib.bindings.** { *; } +-keep class com.sun.jna.** { *; } +-dontwarn java.awt.*