Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add "Getting Started" to README

  • Loading branch information...
commit afdd51ce1900ddddbe0e944d3ea1be65008dd755 1 parent da2f970
@siuying siuying authored
Showing with 22 additions and 0 deletions.
  1. +22 −0 README.md
View
22 README.md
@@ -2,6 +2,28 @@
A collection of helpers and wrappers used to wrap CocoaTouch code and provide more Ruby like APIs.
+## Getting started
+
+Add BubbleWrap as a git submodule of your RubyMotion project:
+
+ git clone https://github.com/mattetti/BubbleWrap.git vendor/BubbleWrap
+
+Add the BubbleWrap lib path to your project 'Rakefile'
+
+ Motion::Project::App.setup do |app|
+ app.name = 'myapp'
+ app.files += Dir.glob(File.join(app.project_dir, 'vendor/BubbleWrap/lib/**/*.rb'))
+ end
+
+Now, you can use BubbleWrap extension in your app:
+
+ class AppDelegate
+ def application(application, didFinishLaunchingWithOptions:launchOptions)
+ puts "#{App.name} (#{documents_path})"
+ true
+ end
+ end
+
## HTTP
`BubbleWrap::HTTP` wraps `NSURLRequest`, `NSURLConnection` and friends to provide Ruby developers with a more familiar and easier to use API.
Please sign in to comment.
Something went wrong with that request. Please try again.