Skip to content

birmacher/lagunitas

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lagunitas

Easy iOS IPAs inspection.

Installation

Add this line to your application's Gemfile:

gem 'lagunitas'

And then execute:

$ bundle

Or install it yourself as:

$ gem install lagunitas

Usage

ipa = Lagunitas::IPA.new('path/to/Your.ipa')

# Unzip and create app
app = ipa.app             #=> Lagunitas::App

# Get information about the app
app.identifier            #=> com.samsoffes.Sample
app.display_name          #=> Sample
app.version               #=> 13
app.short_version         #=> 2.2
app.size                  #=> 77808
app.creation_date         #=> 2013-10-30 17:23:25 UTC
app.expiration_date       #=> 2014-10-30 17:23:25 UTC
app.provision_devices     #=> [d25facd478d644a646603f91c1bc3edec71c55db, ...]

# Get an icon path at a specific size
app.icon(40)              #=> '/absolute/path/to/Icon20x20@2x.png'

# It's worth noting that if you get a path to an image in the bundle,
# it will be crushed with Apple's special PNGCrush.
# To get the original image use the following

app.uncrushed_icon(40)   #=> '/absolute/path/to/Icon20x20@2x_u.png'

# You can also get all of the icons with their dimensions
app.icons                #=> [{path:'...', uncrushed_path:'...', width: 40, height: 40}, ...]

# Remove unzipped app
ipa.cleanup

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

A Ruby gem for inspecting iOS IPAs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%