https://kotlinlang.org logo
Join SlackCommunities
Powered by
# proguard
  • y

    Yahor

    01/11/2021, 1:53 PM
    set the channel description: Everything related to obfuscation
  • g

    Greg Rynkowski

    05/12/2022, 9:25 AM
    In my project I have lots of sealed classes implementing certain interface.
    Copy code
    interface 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:
    Copy code
    -keepclasseswithmembers class ** implements my.package.Intent {
        **;
    }
    
    -keepnames class ** implements my.package.Intent {
        **;
    }
    but it doesn't seem to keep objects' names. Any ideas?
    • 1
    • 1
  • m

    Michael Marshall

    07/24/2023, 1:28 AM
    Does anyone know if Proguard can rearrange the order of parameters in a function?
  • e

    Edna Bueno

    01/23/2024, 5:38 AM
    Newbie here, 🙌🏻 I want to ask, What is the difference between R8 and proguard?
    e
    • 2
    • 1
  • m

    Mirza

    11/14/2024, 8:52 AM
    A dexguard question, while using dexguard and creating release build. I am getting the below error :
    Not 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.