motion-smarticons for RubyMotion

motion-smarticons lets you overlay information text like commit hash and version number on top of RubyMotion app icons:

Default smarticons

Installation

  • gem install motion-smarticons
  • require 'motion-smarticons'

or add it to your Gemfile:

  • gem 'motion-smarticons'

Usage

Add the smarticons commands at the end of your Motion::Project::App.setup block to ensure your icons and app info is finalized before generating the new icons.

By default, smarticons will display the app.version and latest commit hash, using the #smarticons! method:

Motion::Project::App.setup do |app|
  # ...

  app.smarticons!
end

Default smarticons

If you want to display a custom string, simply use #smarticons=:

Motion::Project::App.setup do |app|
  # ...

  app.smarticons = "Hello World"
end

Custom smarticons

Gotchas

iOS will cache old app icons, even after a clean build. If your icon hasn't updated, move it in and out of a folder to update it to the latest version.

Credits

Shoutout to @merowing_ for his article on generating app icons.

Contact

Clay Allsopp (http://clayallsopp.com)

License

motion-smarticons is available under the MIT license. See the LICENSE file for more info.