Jetpack Keep
A Jetpack library introduced by Google that automatically generates precise keep rules through annotations and a Gradle plugin. It reduces manual maintenance and improves the effectiveness of R8 optimization.
Timeline (last 90 days)
Jetpack Keep consists of a Gradle plugin and an annotation library; at build time it analyzes all reflection behavior within methods via lint, automatically generates annotations, and then generates keep rules from the annotations.
Jetpack Keep requires AGP 8.7 and can be applied to apps, Android libraries, AARs, KMP libraries and jars; even if consumers use older versions of R8 or third-party tools, the library still exports standard consumer rules and does not introduce incompatible formats.
All Facts (2)
Jetpack Keep consists of a Gradle plugin and an annotation library; at build time it analyzes all reflection behavior within methods via lint, automatically generates annotations, and then generates keep rules from the annotations.
50%UnverifiedJetpack Keep requires AGP 8.7 and can be applied to apps, Android libraries, AARs, KMP libraries and jars; even if consumers use older versions of R8 or third-party tools, the library still exports standard consumer rules and does not introduce incompatible formats.
50%