Yahor
01/11/2021, 1:53 PMGreg Rynkowski
05/12/2022, 9:25 AMinterface Intent
sealed classes HomeIntent : Intent {
data class TextChanged(val text: String) : HomeIntent
object Exit : HomeIntent
}
I want to keep all the sealed classes like HomeIntent
, with all of the sub- data classes and objects extending sealed classes.
How would you tackle it without adding @Keep to every selead class
, every object
and every data class
?
I tried this:
-keepclasseswithmembers class ** implements my.package.Intent {
**;
}
-keepnames class ** implements my.package.Intent {
**;
}
but it doesn't seem to keep objects' names. Any ideas?Michael Marshall
07/24/2023, 1:28 AMEdna Bueno
01/23/2024, 5:38 AMMirza
11/14/2024, 8:52 AMNot optimizing method 'packageToClass/ActualClass.method(Landroid/graphics/Canvas;Landroid/graphics/Paint;IIIIILjava/lang/CharSequence;III)V'
Unexpected error while shrinking instructions after partial evaluation:
Class = [{}]
Method = [{}{}]
Exception = [{}] ({})
com.guardsquare.dexguard.bkt: Unexpected error while marking instruction usage after partial evaluation:
Class = [{}]
Method = [{}{}]
Exception = [{}] ({})
Anyone is having any idea. I tried with keep, dontwarn etc. without any luck.