Skip to content

Strings remain in the release APK since 0.4.0 #122

@mxkmn

Description

@mxkmn

I don't understand what happened, but now R8 (proguard-android-optimize.txt config) doesn't remove strings from the release APK.

I don't call log.dispatcher.install. But on version 0.3.0 the strings are not stored in release optimized APK, but on version 0.4.0 and above they are.

I checked the changes, but didn't find anything odd. Could you please help me @twyatt? The only meaningful change I see is a change in Kotlin version.


To reproduce this bug, just add some logs without installing a logger. When building the APK, enable R8 as shown below:

release {
	isMinifyEnabled = true
	isShrinkResources = true
	proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"))
}

Next, build the release APK, unzip it to .smali with APKTool and try to find the logged string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions