1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-10-04 21:49:33 +02: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)
}