From f3af041415814341881a444556b66666e0d876db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20M=C3=BCller?= Date: Thu, 19 Dec 2024 17:31:12 +0100 Subject: [PATCH] Fix Android crash in release build due to ProGuard ProGuard optimizes out methods it considers unused in release build, but methods only called from native code appear unused. The ProGuard rule was broken from renaming the main activity and also did not consider the server service yet. --- scripts/android/files/proguard-rules.pro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/android/files/proguard-rules.pro b/scripts/android/files/proguard-rules.pro index 53c691af5c4..4f105e51fd0 100644 --- a/scripts/android/files/proguard-rules.pro +++ b/scripts/android/files/proguard-rules.pro @@ -16,7 +16,7 @@ # debugging stack traces. -keepattributes SourceFile,LineNumberTable --keepclassmembers, allowoptimization public class org.ddnet.client.NativeMain { +-keepclassmembers, allowoptimization public class org.ddnet.client.* { *; }