Mobile App for RubyConf Uruguay 2011
Mobile app for the RubyConf Uruguay 2011 conference
As the xcode project allows linking the
wwwfolder to any directory outside the project tree but the android project can't do that (or we coudln't find out), we are using the android
assetsdirectory as the common resources directory (js, html and css). So if you change the
android/assets/www/index.htmlyou are changing the iPhone project
index.htmltoo. The rackup app uses the android assets folder as well. So:
android/assets/wwwis the real place where resources live.
iphone/wwwis an XCode reference to
This structure is different on platform specific resources (e.g: phonegap-1.0.0.js) so we are using different folders for this:
Running the app
For development purposes you can run the application on the iphone simulator, the android emulator or a rackup app.
Remember to first rename
config.coffee with the correct config.
Create an avd called rubyconfavd for the android simulator.
Rename local.properties.bak to local.properties and change its content to reflect your sdk path.
To manually deploy to the emulator follow this instructions) or alternatively:
- Start the android emulator device with
- Install the app with
rake server. Notice that here we use a faked version of phonegap provided by phonetap.
rake script to see all the available tasks.