<commit_before>---
docid: proguard
title: Shipping Your App with Fresco
layout: docs
redirect_from: /docs/proguard.html
permalink: /docs/shipping.html
---

Fresco's large size may seem intimidating, but it need not leave you with a large app. We strongly recommend use of the ProGuard tool as well as building split APKs to keep your app small.

### ProGuard

You can download Fresco's ProGuard file, [proguard-fresco.pro](https://raw.githubusercontent.com/facebook/fresco/master/proguard-fresco.pro), and add it to your project.

To enable ProGuard and configure it to use the Fresco configuration, modify your `build.gradle` file to include the lines contained in the `release` section below.

```groovy
android {
  buildTypes {
    release {
      minifyEnabled true
      proguardFiles getDefaultProguardFile('proguard-android.txt'),
        'proguard-fresco.pro'
    }
  }
}<commit_msg>Fix broken link to pro-guard file<commit_after>---
docid: proguard
title: Shipping Your App with Fresco
layout: docs
redirect_from: /docs/proguard.html
permalink: /docs/shipping.html
---

Fresco's large size may seem intimidating, but it need not leave you with a large app. We strongly recommend use of the ProGuard tool as well as building split APKs to keep your app small.

### ProGuard

You can download Fresco's ProGuard file, [proguard-fresco.pro](https://raw.githubusercontent.com/facebook/fresco/master/fbcore/proguard-fresco.pro), and add it to your project.

To enable ProGuard and configure it to use the Fresco configuration, modify your `build.gradle` file to include the lines contained in the `release` section below.

```groovy
android {
  buildTypes {
    release {
      minifyEnabled true
      proguardFiles getDefaultProguardFile('proguard-android.txt'),
        'proguard-fresco.pro'
    }
  }
}
{'fraction_non_alphanumeric': 0.08402432283029299, 'fraction_numerical': 0.0, 'mean_word_length': 4.055865921787709, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4854994', 'n_tokens_mistral': 551, 'n_tokens_neox': 527, 'n_words': 201}