Building Your First Native iOS Salesforce App with Rubymotion

686 views

Published on

Rubymotion is a revolutionary new toolchain that enables developers to rapidly create native iOS applications using Ruby. Rubymotion is a statically compiled, extensive subset of Ruby 1.9 designed to run seamlessly, at full speed, on top of the Objective-C runtime. Thus, Rubymotion apps are distributable via the iTunes App Store, and are interoperable with all of the hardware and software features of iOS. Additionally, and perhaps most importantly, Rubymotion has a "toll-free" bridge to existing Objective-C libraries and frameworks allowing, for instance, Rubymotion apps to utilize the Salesforce Mobile SDK. Join us to learn, through a mix of live coding and presentation, how to build iOS apps using Rubymotion.

Published in: Technology, Education
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
686
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
3
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Building Your First Native iOS Salesforce App with Rubymotion

  1. 1. Building your first native iOS Salesforce App in Ruby Kevin Poorman Technical Architect at Madrona Solutions group & Force.com MVP @CodeFriar
  2. 2. Kevin Poorman Technical Architect at Madrona Solutions Group & Force.com MVP Twitter: @CodeFriar
  3. 3. Agenda • What is RubyMotion? • Objective-c to Ruby • Why use RubyMotion? • Demo App walkthrough • Considerations • Code walkthrough • Getting started • Commas Save Lives • Project Management • The Rakefile • Q/A
  4. 4. What is RubyMotion? • Toolchain • Ruby! • Static Ruby • Command Line based • Http://rubymotion.com
  5. 5. Why RubyMotion? Feature Objective-C RubyMotion Memory Mgmt. Manual or ARC Automatically Managed Editor Generally XCode Any editor you’d like Build system XCode Command Line (Rake) Language Objective-C Ruby ;) Product Native iOS App Native iOS App Lib Systems Cocoa Pods, TestFlight Cocoa Pods, TestFlight, MotionGems Code example [[UIAlertView alloc] init] UIAlertView.alloc.init
  6. 6. Considerations • Commercial, $199.99 • Require • *Eval
  7. 7. Getting Started. 1. Motion create <app name> 2. Edit 3. Simulate
  8. 8. The Rakefile Explained • Build System. • Project Management • 3rd Party Libraries, e.g. Salesforce Mobile iOS SDK • System frameworks and libraries • Distribution details • Name etc.
  9. 9. Obj-c to Ruby • “THIS”.to_lower() • application(application, didFinishLaunchingWithOptions:launchOptions) • Translation • Obj-c: [[Obj StaticMethod] Param1:value1 Param2:Value2]; • RubyMotion: Obj.StaticMethod.Param1(value1, Param2:Value2)
  10. 10. Demo App and Code Walkthrough
  11. 11. Additional Resources • http://rubymotion-tutorial.com/ • http://rubymotion-wrappers.com/ • Esp. Bubblewrap and Sugarcube • http://www.rubymotion.com/
  12. 12. Kevin Poorman Technical Architect & Force. com MVP, @CodeFriar https://github. com/noeticpenguin/DfD emoApp

×