android-proguard-snippets

Proguard configurations for common Android libraries

android-proguard-snippets

Example Proguard configurations for common Android libraries.

This project assumes that your ProGuard configuration is based off of the latest official proguard-android.txt config as shown below. Each library configuration should only be the rules required for that specific library, not a complete Android ProGuard configuration. The various library configurations are combined by the Gradle build system. The library rules should be universal, any app specific rules (such as preserving model classes) should be added in a custom proguard-project.pro file.

Request additional libraries through issues. Pull requests are welcome.

Android Arsenal

Usage

android {
  buildTypes {
    release {
      minifyEnabled true
      // Library specific proguard files
      proguardFile 'proguard-google-play-services.pro'
      proguardFile 'proguard-gson.pro'
      ...
      // Default proguard files
      proguardFile 'proguard-project.pro'
      proguardFile getDefaultProguardFile('proguard-android.txt')
    }
  }
}

Libraries

Related Repositories

android-proguard-snippets

android-proguard-snippets

Proguard configurations for common Android libraries ...

android-proguard-snippets

android-proguard-snippets

Proguard configurations for common Android libraries ...

android-proguard-snippets

android-proguard-snippets

Proguard configurations for common Android libraries ...

android-proguard-snippets

android-proguard-snippets

Proguard configurations for common Android libraries ...

android-proguard-snippets

android-proguard-snippets

Proguard configurations for common Android libraries ...