Android, ProGuard, and keepclasseswithmembernames

前端 未结 2 1962
一整个雨季
一整个雨季 2020-12-31 19:15

A common pattern in ProGuard configs for Android applications is to preserve custom View classes, since they are probably referenced only from layout XML instea

2条回答
  •  执笔经年
    2020-12-31 19:49

    The configuration in the Android SDK (at least up to version 11) is not entirely correct, indeed.

    The configuration for Android in the ProGuard documentation correctly specifies "-keepclasseswithmembers", not "-keepclasseswithmembernames".

提交回复
热议问题