Slide 1

Slide 1 text

Your first RubyMotion Application Amit Kumar

Slide 2

Slide 2 text

About me

Slide 3

Slide 3 text

About me • Ruby’ist

Slide 4

Slide 4 text

About me • Ruby’ist • Consultant: Tata Consultancy Services Ltd

Slide 5

Slide 5 text

About me • Ruby’ist • Consultant: Tata Consultancy Services Ltd • Github: toamitkumar

Slide 6

Slide 6 text

About me • Ruby’ist • Consultant: Tata Consultancy Services Ltd • Github: toamitkumar • Twitter: toamit

Slide 7

Slide 7 text

About me • Ruby’ist • Consultant: Tata Consultancy Services Ltd • Github: toamitkumar • Twitter: toamit • toamitkumar.github.com

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

RubyMotion

Slide 10

Slide 10 text

RubyMotion

Slide 11

Slide 11 text

revolutionary toolchain for native iOS application development using Ruby language RubyMotion

Slide 12

Slide 12 text

revolutionary toolchain for native iOS application development using Ruby language neighbor's envy coder’s delight; happiness; RubyMotion

Slide 13

Slide 13 text

A What ??

Slide 14

Slide 14 text

A What ??

Slide 15

Slide 15 text

Fork of MacRuby A What ??

Slide 16

Slide 16 text

Fork of MacRuby A What ?? Compiles into optimized machine code

Slide 17

Slide 17 text

Fork of MacRuby Automatic object memory allocation and reclaim A What ?? Compiles into optimized machine code

Slide 18

Slide 18 text

Fork of MacRuby Automatic object memory allocation and reclaim A What ?? Compiles into optimized machine code

Slide 19

Slide 19 text

Ruby-runtime tightly integrated with Obj-C runtime Fork of MacRuby Automatic object memory allocation and reclaim A What ?? Compiles into optimized machine code

Slide 20

Slide 20 text

Ruby-runtime tightly integrated with Obj-C runtime Fork of MacRuby Automatic object memory allocation and reclaim A What ?? Same ancestor as Obj-C Compiles into optimized machine code

Slide 21

Slide 21 text

Ruby-runtime tightly integrated with Obj-C runtime Fork of MacRuby Object can be shared with no performance cost Automatic object memory allocation and reclaim A What ?? Same ancestor as Obj-C Compiles into optimized machine code

Slide 22

Slide 22 text

Download & Install

Slide 23

Slide 23 text

Download & Install

Slide 24

Slide 24 text

Download & Install http://sites.fastspring.com/hipbyte/product/rubymotion

Slide 25

Slide 25 text

The ‘motion’ command

Slide 26

Slide 26 text

The ‘motion’ command

Slide 27

Slide 27 text

The ‘motion’ command

Slide 28

Slide 28 text

The ‘motion’ command

Slide 29

Slide 29 text

The ‘motion’ command

Slide 30

Slide 30 text

The ‘motion’ command Protip: Forcing update to a particular version:

Slide 31

Slide 31 text

The ‘motion’ command Protip: Forcing update to a particular version:

Slide 32

Slide 32 text

The ‘motion’ command Protip: Forcing update to a particular version: sudo motion update --force-version=1.2

Slide 33

Slide 33 text

The ‘motion’ command

Slide 34

Slide 34 text

the ‘motion’ support The ‘motion’ command

Slide 35

Slide 35 text

the ‘motion’ support The ‘motion’ command

Slide 36

Slide 36 text

the ‘motion’ support The ‘motion’ command

Slide 37

Slide 37 text

the ‘motion’ support The ‘motion’ command

Slide 38

Slide 38 text

The famous ‘Rake’

Slide 39

Slide 39 text

The famous ‘Rake’

Slide 40

Slide 40 text

The famous ‘Rake’

Slide 41

Slide 41 text

The famous ‘Rake’

Slide 42

Slide 42 text

The famous ‘Rake’

Slide 43

Slide 43 text

The famous ‘Rake’

Slide 44

Slide 44 text

The famous ‘Rake’

Slide 45

Slide 45 text

Configuration ‘options’

Slide 46

Slide 46 text

Configuration ‘options’

Slide 47

Slide 47 text

Configuration ‘options’

Slide 48

Slide 48 text

Configuration ‘options’

Slide 49

Slide 49 text

Configuration ‘options’

Slide 50

Slide 50 text

Configuration ‘options’

Slide 51

Slide 51 text

The Soul

Slide 52

Slide 52 text

The Soul Console REPL - Read Evaluate Print Loop

Slide 53

Slide 53 text

The Soul Console REPL - Read Evaluate Print Loop You feel in-control

Slide 54

Slide 54 text

The Soul Console REPL - Read Evaluate Print Loop You feel in-control

Slide 55

Slide 55 text

The Soul Console REPL - Read Evaluate Print Loop You feel in-control An excellent in-browser demo of REPL: https://www.pieceable.com/rubymotion-console

Slide 56

Slide 56 text

RubyGems

Slide 57

Slide 57 text

RubyGems Normal RubyGems won’t work

Slide 58

Slide 58 text

RubyGems Normal RubyGems won’t work Load gems in Rakefile of the application

Slide 59

Slide 59 text

RubyGems Normal RubyGems won’t work Load gems in Rakefile of the application Use Bundler

Slide 60

Slide 60 text

RubyGems Normal RubyGems won’t work Load gems in Rakefile of the application Use Bundler

Slide 61

Slide 61 text

RubyGems Normal RubyGems won’t work Load gems in Rakefile of the application Use Bundler source :rubygems gem 'rake' gem 'bubble-wrap' gem 'motion-cocoapods' gem 'motion-redgreen' Gemfile

Slide 62

Slide 62 text

RubyGems Normal RubyGems won’t work Load gems in Rakefile of the application Use Bundler source :rubygems gem 'rake' gem 'bubble-wrap' gem 'motion-cocoapods' gem 'motion-redgreen' Gemfile

Slide 63

Slide 63 text

RubyGems Normal RubyGems won’t work Load gems in Rakefile of the application Use Bundler source :rubygems gem 'rake' gem 'bubble-wrap' gem 'motion-cocoapods' gem 'motion-redgreen' Gemfile require ‘bundler’ Bundler.require Rakefile

Slide 64

Slide 64 text

RubyGems contd...

Slide 65

Slide 65 text

RubyGems contd... Bubblewrap

Slide 66

Slide 66 text

RubyGems contd... Bubblewrap teacup

Slide 67

Slide 67 text

RubyGems contd... Bubblewrap teacup sugarcube

Slide 68

Slide 68 text

RubyGems contd... Bubblewrap teacup sugarcube formotion

Slide 69

Slide 69 text

RubyGems contd... Bubblewrap teacup sugarcube formotion Nitron

Slide 70

Slide 70 text

RubyGems contd... Bubblewrap teacup sugarcube formotion Nitron motion-redgreen

Slide 71

Slide 71 text

RubyGems contd... Bubblewrap teacup sugarcube formotion Nitron motion-redgreen motion-logger

Slide 72

Slide 72 text

RubyGems contd... Bubblewrap teacup sugarcube formotion Nitron motion-redgreen motion-logger MotionData

Slide 73

Slide 73 text

RubyGems contd... Bubblewrap teacup sugarcube formotion Nitron motion-redgreen motion-logger MotionData NativeJSBridge

Slide 74

Slide 74 text

RubyGems contd... Bubblewrap teacup sugarcube formotion Nitron motion-redgreen motion-logger MotionData NativeJSBridge SegmentTab

Slide 75

Slide 75 text

SURVEY APP

Slide 76

Slide 76 text

The ‘Survey’ app

Slide 77

Slide 77 text

The ‘Survey’ app Dynamically create Surveys on the fly without code compilation

Slide 78

Slide 78 text

The ‘Survey’ app Dynamically create Surveys on the fly without code compilation Survey question data is JSON based

Slide 79

Slide 79 text

The ‘Survey’ app Dynamically create Surveys on the fly without code compilation Survey question data is JSON based Controls for question should be controlled by JSON

Slide 80

Slide 80 text

The ‘Survey’ app Dynamically create Surveys on the fly without code compilation Survey question data is JSON based Collect response in JSON and make a server API call to POST data Controls for question should be controlled by JSON

Slide 81

Slide 81 text

The ‘Survey’ app

Slide 82

Slide 82 text

The ‘Survey’ app JSON Structure

Slide 83

Slide 83 text

The ‘Survey’ app JSON Structure

Slide 84

Slide 84 text

The ‘Survey’ app JSON Structure

Slide 85

Slide 85 text

The ‘Survey’ app JSON Structure

Slide 86

Slide 86 text

The ‘Survey’ app JSON Structure

Slide 87

Slide 87 text

The ‘Survey’ app JSON Structure

Slide 88

Slide 88 text

The ‘Survey’ app JSON Structure

Slide 89

Slide 89 text

The ‘Survey’ app DEMO

Slide 90

Slide 90 text

THANK YOU