Travis Reitter
09/15/2023, 8:37 PMfoo_
) were failing to load in my Android release builds until I worked what what I needed to add to my `proguard-rules.pro`:
# prevent stripping out dynamically-loaded drawables used for art
-keepclassmembers class <http://com.example.shared.MR|com.example.shared.MR>$images {
public final dev.icerock.moko.resources.ImageResource getFoo_*();
public static final dev.icerock.moko.resources.ImageResource foo_*;
}
I believe this is the minimal cut-out required so it shouldn't retain excessive resources or functions (though, as I say that, I'm not 100% sure the line with foo_
is needed but it should be pretty safe)
One thing that tripped me up, especially, is the fact that I needed to include the ()
for the functions since the *
doesn't match themalex009
09/17/2023, 4:43 PMTravis Reitter
09/19/2023, 2:13 PM