ProGuard / R8 Rules Generator

Pick the common keep-rule you need, fill in a class/package name if it asks for one, and get the exact rule ready to paste into your proguard-rules.pro file.

Include the return type and full parameter types, exactly as they appear in the method's signature.

Generated Rule

// Rule will appear here
Pick a rule and click "Generate Rule" to see what it does.