No commit activity in last 3 years
No release in over 3 years
motion-smarticons lets you overlay informational text like commit hash and version number on top of RubyMotion app icons
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 2.13
 Project Readme

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.