-
Notifications
You must be signed in to change notification settings - Fork 34
Home
To learn more about Couchbase Lite, the underlying implementation of this module, see the Couchbase Lite Wiki. See the Building page for information on how to build the module from source.
Download the prebuilt module from the Releases tab on the main project page or use gittio:
$ gittio install com.obscure.titouchdb
Want documentation? We has some:
- The API documentation lists all of the objects, properties, methods, and events provided by the TiTouchDB module.
- Find out who is using TiTouchDB in production applications.
- Every project needs a FAQ
- We have some sample apps:
- TouchBooks is an adaptation of Apple's classic CoreDataBooks example.
- TouchBooksAlloy is the same app built with Alloy and is the current "gold standard" among the examples.
- CannedDatabase shows how to install a prepopulated database in your app.
- I've written a step-by-step tutorial for using TiTouchDB and Alloy
TiTouchDB will only run on iOS 5.0 or later. By default, Titanium applications are configured with a minimum required OS version of 4.0. With earlier versions of the Titanium SDK, you could open the generated Xcode project file and change the deployment target version to 5.0, but more recent (2.1.x) versions of the SDK, that file gets overwritten on each build. There is an open bug that promises a fix for this soon. In the meantime, you will need to edit the project file templates in your SDK directory to do the following:
- change all instances of
IPHONEOS_DEPLOYMENT_TARGET = 4.0;
toIPHONEOS_DEPLOYMENT_TARGET = 5.0;
- remove all references to
armv6
The file templates are:
iphone/iphone/Titanium.xcodeproj/project.pbxproj
module/iphone/templates/___PROJECTNAME___.xcodeproj/project.pbxproj
IMPORTANT NOTE: obviously, this will affect all the projects you build with the modified SDK. You might consider copying your current SDK file and modifying the copy.
Once you have the minimum SDK set, download the module ZIP file and install according to the instructions from Appcelerator. Edit tiapp.xml
to add the module declaration to the modules
section:
<modules>
<module platform="iphone">com.obscure.titouchdb</module>
</modules>
If you're using Titanium Studio, you can edit tiapp.xml and add the module from the fancy GUI.
Copy the module ZIP file to either the project root directory (the same directory as tiapp.xml) or your Titanium installation. Build your project to expand the module archive. Edit tiapp.xml
and add the module to the modules
section:
<modules>
<module platform="android">com.obscure.titouchdb</module>
</modules>