Fresco’s large download may seem intimidating, but it need not leave you with a large application. We strongly recommend use of the ProGuard tool.

You can download Fresco’s ProGuard file, proguard-fresco.pro, and add it to your project.

Android Studio / Gradle

Place a stanza like this in your build.gradle file.

1
2
3
4
5
6
7
8
9
android {
  buildTypes {
    release {
      minifyEnabled true
      proguardFiles getDefaultProguardFile('proguard-android.txt'),
        'proguard-fresco.pro'
    }
  }
}

Eclipse

Edit your proguard.cfg file to include the contents of proguard-fresco.pro.