Socket
Book a DemoInstallSign in
Socket

motion-smarticons

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

motion-smarticons

0.2
bundlerRubygems
Version published
Maintainers
1
Created
Source

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.

FAQs

Package last updated on 11 Mar 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.