5,419,468 AI resources indexedWorking toward the world’s largest AI resource index.

PDF

Android Deployment Standards

Standards for App Distribution (Signing, Obfuscation, App Bundles)

Installable skillApache-2.0By David-Li0406Updated Oct 27, 2026
INTENDED FORClaude CodeCodexCursorChatGPTInstall in a listed agent.

instructions.md

---
name: android-deployment
description: Standards for App Distribution (Signing, Obfuscation, App Bundles)
metadata:
  labels: [android, deployment, release, proguard]
  triggers:
    files: ['build.gradle.kts', 'proguard-rules.pro']
    keywords: ['signingConfigs', 'proguard', 'minifyEnabled', '.aab']
---

# Android Deployment Standards

## **Priority: P0**

## Implementation Guidelines

### Build Configuration

- **Minification**: Always enable `isMinifyEnabled = true` and `isShrinkResources = true` for Release builds (R8).
- **Format**: Publish using **App Bundles (.aab)** for Play Store optimization.
- **Signing**: NEVER commit keystores or passwords. Use Environment Variables / Secrets.

### Proguard / R8

- **Rules**: Keep rules minimal. Use annotations (`@Keep`) for reflection-heavy classes instead of broad wildcard rules.
- **Mapping**: Upload `mapping.txt` to Play Console for crash de-obfuscation.

## Anti-Patterns

- **Debug in Release**: `**No Debug Flags**: Ensure debuggable = false.`
- **Hardcoded Secrets**: `**No Secrets in Repo**: Use local.properties or Env Vars.`

## References

- [Signing & R8](references/implementation.md)

Discuss this resource

Platform guidance

Imported from the listed AgentSkill.sh category. Complete supplied package files and notices are retained. Required external tools and credentials are not installed. No bundled code was executed during import. Individual agent task behavior has not been tested.