Skip to content

Commit

Permalink
add to README.md, update ruby script
Browse files Browse the repository at this point in the history
  • Loading branch information
iamkoch committed Oct 25, 2013
1 parent 332c850 commit 3f92a2e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions README.md
Expand Up @@ -23,3 +23,11 @@ Credits (based on):

* [Blundell's list of devices](http://blog.blundell-apps.com/list-of-android-devices-with-pixel-density-buckets/)
* [Wikipedia List of Android devices](http://en.wikipedia.org/wiki/List_of_displays_by_pixel_density)

Searching BUILD.Model csv
-------------------------

I've written a ruby script which can search the models CSV for one or more given phone names. The following are valid and print out the matches

ruby search-models.rb "Galaxy S III"
ruby search-models.rb "Galaxy S III" "Nexus S" "Galaxy S4"
2 changes: 1 addition & 1 deletion search-models.rb
Expand Up @@ -8,7 +8,7 @@
file.each_line do |line|
spl = line.split(',')
if spl[1].include?(a)
answers << "SUPPORTED_DEVICES.add(\"#{spl[0]}\"); // #{spl[1]} - #{spl[3]}"
answers << "#{spl[0]} - #{spl[3]}"
end
end

Expand Down

0 comments on commit 3f92a2e

Please sign in to comment.