r8-analyzer

Analyze Android R8 keep rules and Gradle settings for redundancies.

28|5|Updated Oct 8, 2024
One-click install
npx skills add https://github.com/kabirnayeem99/Ktor2Curl --skill r8-analyzer-kabirnayeem99
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: r8-analyzer
Source: https://github.com/kabirnayeem99/Ktor2Curl/tree/main/.agents/skills/r8-analyzer
Command: npx skills add https://github.com/kabirnayeem99/Ktor2Curl --skill r8-analyzer-kabirnayeem99

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires protobuf, and includes references (resource) components.

What problem does it solve?

This skill identifies redundant, overly broad, or conflicting R8 keep rules that prevent the Android build system from effectively shrinking, obfuscating, and optimizing your application code.

Core Features & Use Cases

  • Quantitative Analysis: Generates and processes R8 configuration analyzer reports to provide precise impact metrics for keep rules.
  • Heuristic Evaluation: Offers manual analysis paths for older R8 versions by comparing rules against known redundant patterns and reflection best practices.
  • Optimization Reporting: Generates structured reports detailing optimization, obfuscation, and shrinking scores to track build performance improvements.

Quick Start

Run the r8-analyzer skill to inspect the current project build configuration and generate an optimization report.

Frequently Asked Questions about r8-analyzer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find redundant R8 keep rules that bloat my Android app size?

R8 keep rule analysis identifies overly broad or conflicting Proguard rules that hinder code shrinking. It inspects Android build configurations to pinpoint redundancies and provides actionable recommendations for improving app size.

How does R8 configuration analysis evaluate Proguard rules for optimization?

R8 configuration analysis evaluates project-specific Proguard files and Gradle settings to identify redundancies and broad package-wide rules. It generates R8 configuration analyzer reports to provide precise impact metrics for keep rules.

Can I analyze R8 keep rules for older Android Gradle builds without quantitative reports?

Yes, heuristic evaluation offers manual analysis paths for older R8 versions. It compares project-specific Proguard rules against known redundant patterns and reflection best practices to evaluate optimization without quantitative reports.

What build files do I need to run an R8 keep rule optimization report?

You need access to project build files, including Proguard files and Gradle settings. The analysis requires the ability to execute Gradle tasks to generate the quantitative data needed for the optimization report.

Why does my Android app size stay large even with R8 shrinking enabled?

App size may remain large due to redundant or overly broad R8 keep rules preventing effective code obfuscation and optimization. Analyzing your build configuration identifies these conflicting rules so you can refine them.

What does an R8 optimization report include for Android app performance?

An R8 optimization report includes structured details on optimization, obfuscation, and shrinking scores. These metrics track build performance improvements and provide actionable recommendations for enhancing app size.