My andorid app depends on an aar file. The aar comes with its own proguard file inside. So I unzipped the aar and added the following in the proguard file:
-assumenosideeffects class android.util.Log {
public static *** d(...);
public static *** v(...);
public static *** i(...);
public static *** w(...);
public static *** e(...);
}
I then rezipped the aar and compiled my app. Here is the relevant part of my apps’s build.gradle:
release {
signingConfig signingConfigs.debug
shrinkResources (findProperty('android.enableShrinkResourcesInReleaseBuilds')?.toBoolean() ?: false)
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
}
Proguard is removing all logs from my own app. But I can still see logs coming from the aar.
What am I missing?