From e63eb3a7dc2528da86e62fb3785831b6dd653dcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Mart=C3=ADn?= Date: Mon, 8 Jan 2024 16:12:03 +0100 Subject: [PATCH] Fix crash when sending image with latest posthog --- app/proguard-rules.pro | 5 +++++ changelog.d/+crash-sending-image-with-latest-posthog.bugfix | 1 + 2 files changed, 6 insertions(+) create mode 100644 changelog.d/+crash-sending-image-with-latest-posthog.bugfix diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 52929a81cf..c800b9d996 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -35,3 +35,8 @@ -dontwarn org.conscrypt.** -dontwarn org.bouncycastle.** -dontwarn org.openjsse.** + +# Needed for Posthog +-keepclassmembers class android.view.JavaViewSpy { + static int windowAttachCount(android.view.View); +} diff --git a/changelog.d/+crash-sending-image-with-latest-posthog.bugfix b/changelog.d/+crash-sending-image-with-latest-posthog.bugfix new file mode 100644 index 0000000000..1b299991bb --- /dev/null +++ b/changelog.d/+crash-sending-image-with-latest-posthog.bugfix @@ -0,0 +1 @@ +Fix crash sending image with latest Posthog because of an usage of an internal Android method.