From fab018782c3b9c0c3753b63cc4ad0f2ea0b70a07 Mon Sep 17 00:00:00 2001 From: Patrick Honkonen <1883101+SaintPatrck@users.noreply.github.com> Date: Wed, 30 Oct 2024 10:48:49 -0400 Subject: [PATCH] [PM-14254] Keep Android verifier for JNI usage (#4197) --- app/proguard-rules.pro | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index e7a10029e..d4963ef3c 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -6,6 +6,10 @@ # we keep it here. -keep class com.bitwarden.** { *; } +# The Android Verifier component must be kept because it looks like dead code. Proguard is unable to +# see any JNI usage, so our rules must manually opt into keeping it. +-keep, includedescriptorclasses class org.rustls.platformverifier.** { *; } + ################################################################################ # Bitwarden Models ################################################################################