From 4ed4e8f71ca2c1a74751dd87e9b911fe597b7fa8 Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Fri, 13 Sep 2019 14:33:58 +0200 Subject: [PATCH] Don't compile android.jar contents into smack-android jar gradles compile command (which is deprecated and should be replaced with implementation) includes the arguments resources into the result jar. That means that smack-android will contain resources found at the android boot classpath. This results in a +~11mb increase in size of the resulting apk when including Smack as a composite build. The increase comes from 11mb of Android resources, mainly drawables. compileOnly (formerly provided) on the other hand will assert that the android.jar classes are provided by the system, which is probably what we want in this case. --- smack-android/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smack-android/build.gradle b/smack-android/build.gradle index 97fd7c120..46d83633d 100644 --- a/smack-android/build.gradle +++ b/smack-android/build.gradle @@ -24,5 +24,5 @@ dependencies { } // Add the Android jar to the Eclipse .classpath. - compile files(androidBootClasspath) + compileOnly files(androidBootClasspath) }