RubyMotion-Converser
Allows RubyMotion projects to easily embed the Converser SDK.
Requirements
- RubyMotion 1.0 or greater (see http://www.rubymotion.com).
Setup
Download the Converser SDK from http://converser.io/downloads/ and copy the
ios-converser-sdkfolder intovendordirectory (or alternatively just create a symbolic link). Create thevendordirectory if it does not exist. You should have something like this.$ ls vendor/ios-converser-sdk /ConverserResources/ libVGConversationKit_universal.a include/Edit the
Rakefileof your RubyMotion project and add the following require lines.require 'rubygems' require 'motion-converser'Still in the
Rakefile, set up theapp_api_key,server_urlandframeworkvariables in your application configuration block.Motion::Project::App.setup do |app| # ... app.converser.framework = 'vendor/ios-converser-sdk' app.converser.app_api_key = 'APP API KEY' app.converser.server_url = 'SERVER URL' endThe
ConverserEnginesingleton is available from any class in your application. You access this singleton by calling theConverserEngine.instancemethod.See included sample-app for further information.