Hi I have a compose multiplafrom library with lot...
# compose
a
Hi I have a compose multiplafrom library with lot's of drawables (~ 9 MB) If the consuming android app did not use most of the the drawables, i was hoping R8 will remove them But it seams it did not remove them as seen in below screen shot of release apk (minify enabled and resources shrink enabled) I'm suspecting something to do with the generated
Res
class R8 is flagging the drawable as used
Copy code
compose.resources {
    publicResClass = true
    packageOfResClass = "io.telereso.kmp.core.symbols.resources"
    generateResClass = always
}
So • Are composeResources targeted by R8 ? • For iOS , Web And Desktop , is there any tool like R8 that will slim down un-used resources ?
r
Did the app use isShrinkResources = true in its build file?
a
@romainguy yes
Copy code
buildTypes {
    release {
        signingConfig signingConfigs.debug
        shrinkResources true
        minifyEnabled true
        proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), '<http://proguard-rules.pro|proguard-rules.pro>'
    }
}