Repository is archived
No commit activity in last 3 years
No release in over 3 years
DSL to schedule events on app launch and keeps track of app launch for you.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

>= 0
 Project Readme

motion-launchpad

Provides a simple DSL to easily schedule events, on the 1st, 3rd, 500th, or every launch. This gem requires RubyMotion.

Installation

Add the following to your project's Gemfile to work with bundler:

gem 'motion-launchpad'

Install with bundler:

bundle install

Using

After installation, you can use the gem in your project like so:

class AppDelegate
  def application(app, didFinishLaunchingWithOptions: options)

    setup_schedule
    Motion::Launchpad.run!
  end

  private

  def setup_schedule
    Motion::Launchpad.configure do |config|
      config.on :every do
        # maybe track app launch with analytics?
      end

      config.on 1 do
        # first launch, maybe show user a tutorial?
      end
    end
  end

  # You can call `configure` multiple times
  Motion::Launchpad.configure do |config|
    config.on 5 do
      # ask user to rate your app? Hate doing that, but best I could come up with
    end
  end
end