From ee6c54a3391f132bfa1ec5fb6886b9b763d592ed Mon Sep 17 00:00:00 2001 From: silentbil Date: Wed, 17 Jun 2026 21:04:52 +0300 Subject: [PATCH] fix crash due to r8 --- app/proguard-rules.pro | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 9a9209d7..bb235c27 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -232,6 +232,13 @@ -keep class org.drinkless.tdlib.** { *; } -dontwarn org.drinkless.tdlib.** +# ============================================ +# org.json — Android provides these at runtime; any bundled copy must not be +# renamed or R8 will produce org.json.b/c names that collide with the system +# classes and fail ART bytecode verification (VerifyError on app launch). +# ============================================ +-keep class org.json.** { *; } + # ============================================ # App-specific keeps # ============================================