Skip to content
pegli edited this page May 11, 2011 · 3 revisions

Build instructions for iOS version:

You must have Titanium Developer 1.2.2 or later and XCode 3.4.x or later installed.

  1. git clone https://github.com/pegli/couchdb_client

  2. cd mobile/ios/couchdb_client

  3. ./build.py

  4. cp com.obscure.couchdb_client-iphone-1.0.zip /Library/Application\ Support/Titanium/

Build instructions for Android:

You must have the Android SDK, JDK 1.6, and Ant installed.

  1. git clone https://github.com/pegli/couchdb_client

  2. cd mobile/android/couchdb_client

  3. ant dist

  4. cp dist/com.obscure.couchdb_client-android-1.0.zip /Library/Application\ Support/Titanium/

How to include the module in your project:

  1. Create a mobile project in Titanium Developer if you have not done so already, then cd into your project directory.

  2. Edit tiapp.xml and add <module version="1.0">com.obscure.couchdb_client</module> to the <modules/> section near the end of the file.

  3. Edit your app.js file and add the following to load the client module:

     var couchdb = require('com.obscure.couchdb_client');
     Ti.API.info("module is => "+couchdb);
    
  4. Build and run the app. You should see the following in the log:

     [INFO] Detected third-party module: com.obscure.couchdb_client/1.0
    

    If that line isn't present, try unzipping the com.obscure.couchdb_client-*-1.0.zip file.