-
Notifications
You must be signed in to change notification settings - Fork 3
Install
You must have Titanium Developer 1.2.2 or later and XCode 3.4.x or later installed.
-
git clone https://github.com/pegli/couchdb_client
-
cd mobile/ios/couchdb_client
-
./build.py
-
cp com.obscure.couchdb_client-iphone-1.0.zip /Library/Application\ Support/Titanium/
You must have the Android SDK, JDK 1.6, and Ant installed.
-
git clone https://github.com/pegli/couchdb_client
-
cd mobile/android/couchdb_client
-
ant dist
-
cp dist/com.obscure.couchdb_client-android-1.0.zip /Library/Application\ Support/Titanium/
-
Create a mobile project in Titanium Developer if you have not done so already, then cd into your project directory.
-
Edit tiapp.xml and add
<module version="1.0">com.obscure.couchdb_client</module>
to the<modules/>
section near the end of the file. -
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);
-
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.