An IntelliJ / Android Studio plugin that automatically detects Kotlin
data classes missing the @Keep annotation and offers a one-click fix.
When Android apps are minified using ProGuard or R8, data classes can get renamed or removed causing runtime crashes. This plugin warns you and fixes it automatically.
When Android apps are minified using ProGuard or R8, data classes can
get renamed or removed, causing runtime crashes. The @Keep annotation
prevents this — but it's easy to forget to add it.
- Shows a warning on any
data classmissing@Keep - Detects Retrofit response classes missing
@Keep - Offers a one-click quick fix to add it automatically
- Works in both IntelliJ IDEA and Android Studio
When a data class is missing @Keep, the plugin shows a warning
and offers a one-click fix directly in the editor.
Coming soon
- Download the latest
.zipfrom Releases - In IntelliJ/Android Studio →
Settings → Plugins → ⚙️ → Install Plugin from Disk - Select the downloaded
.zip - Restart the IDE
- Open any Kotlin file with a data class
- If
@Keepis missing, you'll see a yellow warning underline - Click the 💡 lightbulb → select "Add @Keep"
Before:
data class User(
val name: String,
val age: Int
)After:
@androidx.annotation.Keep
data class User(
val name: String,
val age: Int
)- Detect Room DAOs missing proper annotations
- Batch fix — add
@Keepto all data classes at once
- Kotlin
- IntelliJ Platform SDK
- IntelliJ Platform Gradle Plugin
MIT License — see LICENSE for details
