1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-21 13:52:06 +01:00

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.
This commit is contained in:
Paul Schaub 2019-09-13 14:33:58 +02:00
parent 5b23b9a6ae
commit 4ed4e8f71c
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -24,5 +24,5 @@ dependencies {
}
// Add the Android jar to the Eclipse .classpath.
compile files(androidBootClasspath)
compileOnly files(androidBootClasspath)
}