From 41aa43293adb03a67523aa12b6a87e764226c915 Mon Sep 17 00:00:00 2001 From: Mygod Date: Wed, 12 Aug 2020 12:17:16 +0800 Subject: [PATCH] Fix root main being removed by Proguard Fix #181. --- mobile/proguard-rules.pro | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mobile/proguard-rules.pro b/mobile/proguard-rules.pro index 97f6f95a..b49c0c57 100644 --- a/mobile/proguard-rules.pro +++ b/mobile/proguard-rules.pro @@ -20,3 +20,10 @@ # If you keep the line number information, uncomment this to # hide the original source file name. #-renamesourcefileattribute SourceFile + +-if public class be.mygod.librootkotlinx.RootServer { + private void doInit(android.content.Context, java.lang.String); +} +-keep class be.mygod.librootkotlinx.RootServer { + public static void main(java.lang.String[]); +}