From 9d2d0697ff0d1a15649f7864f06b6ff99331275b Mon Sep 17 00:00:00 2001 From: Albert Vaca Date: Wed, 31 Oct 2018 15:23:36 +0100 Subject: [PATCH] Fix SFTP not working due to proguard removing classes --- build.gradle | 2 +- proguard-rules.pro | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 1d8a48d0..ed1efe37 100644 --- a/build.gradle +++ b/build.gradle @@ -54,7 +54,7 @@ android { minifyEnabled false useProguard false } - release { //keep on 'release', set to 'all' when testing to make sure proguard is not deleting important stuff + release { //keep on 'release' for faster builds, set to 'all' when testing to make sure proguard is not deleting important stuff minifyEnabled true useProguard true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' diff --git a/proguard-rules.pro b/proguard-rules.pro index 8d76cc04..02c0919a 100644 --- a/proguard-rules.pro +++ b/proguard-rules.pro @@ -35,6 +35,7 @@ # SSHd requires mina, and mina uses reflection so some classes would get deleted -keep class org.apache.mina.** {*;} +-keep class org.apache.sshd.** {*;} -keep class org.kde.kdeconnect.** {*;}