Remove unused localizations from your app
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.bundle version bump May 23, 2016
lib Release 0.3.1 Oct 19, 2016
spec Updated tests to work under hostile Dir.chdir Oct 19, 2016
.gitignore Release 0.3.0 May 31, 2016
.rspec Tests! May 23, 2016
Gemfile Tests! May 23, 2016
Gemfile.lock Tests! May 23, 2016
LICENSE.txt Initial commit Mar 12, 2015
README.md Improve README to note options are no longer required Apr 5, 2015
Rakefile Tests! May 23, 2016
cocoapods-prune-localizations.gemspec Initial commit Mar 12, 2015

README.md

Prune Localizations

This plugin removes unused localized files from your app.

Localized resources provided by third parties increase the size of your app and keeping resources your app will never use only bloats it.

##Requirements

Requires CocoaPods 0.36

Installation

$ gem install cocoapods-prune-localizations

Usage

In your Podfile, add this line:

plugin 'cocoapods-prune-localizations'

Localizations will be inferred from your project.

or if you would prefer to specify the localizations:

plugin 'cocoapods-prune-localizations', {:localizations => ["en", "es"]}

This will keep the English and Spanish localizations in the Pods. Modify the localizations to your needs.

##How it works

The plugin traverses the resources provided by Pods and removes references in the Xcode project of .lproj files that don't match the list provided.

A special case are .bundle file references because they are a package of different resources. As such, if any localized files are found unnecessary, a new bundle is created without those files and replaces the original in the project. These new bundles are located at Pods/Pruned Localized Bundles

Note: No file is actually removed from your computer, only references to them in the project