How do you stop Proguard from removing type parameters?

后端 未结 1 1221
礼貌的吻别
礼貌的吻别 2020-12-01 10:30

I am currently attempting to obfuscate a series of libraries. My base library, which contains several classes and methods that use type parameters, is unusable by other code

相关标签:
1条回答
  • 2020-12-01 11:05

    According to the ProGuard Typical Library usage guide:

    The "Signature" attribute is required to be able to access generic types when compiling in JDK 5.0 and higher.

    Adding the following line fixed my issues with missing type parameters:

    -keepattributes Signature
    
    0 讨论(0)
提交回复
热议问题