Inspectopedia Help

Missing @Keep for Animated Properties

Missing @Keep for Animated Properties

When you use property animators, properties can be accessed via reflection. Those methods should be annotated with @Keep to ensure that during release builds, the methods are not potentially treated as unused and removed, or treated as internal only and get renamed to something shorter.

This check will also flag other potential reflection problems it encounters, such as a missing property, wrong argument types, etc.

Issue id: AnimatorKeep

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for Android 2023.3, Qodana for JVM 2023.3

Plugin:

Android, 2022.3.1 Beta 2

Last modified: 13 July 2023