Project

dens

0.0
No commit activity in last 3 years
No release in over 3 years
Moves different density assets to their respective Android resource directories
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.5
~> 0
~> 0
 Project Readme

Dens

Moves different density assets to their respective Android resource directories.

Installation

$ gem install dens

Usage

dens [origin_directory] [resource_directory]

Moves any file suffixed with a density into it's respective resource directory. For example image-hdpi.png will be moved into [resource_directory]/drawable-hdpi/image.png. If the destination directory does not exist the image will be moved into the regular drawable directory.

Image files must be have the .png extension and the density must be seperated from the image name using '-' as the seperator. These image names work:

  • image.png
  • image-hdpi.png
  • image-something.png (will be moved into the drawable directory unless your resource folder contains a drawable-something directory)

These image names won't work (as expected):

  • image_hdpi.png
  • image.jpg

This is a very early implementation. There will be issues!

Contributing

  1. Fork it ( http://github.com/klaaspieter/dens/fork )
  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