In our existing iPhone app built with XCode and Objective-C, we replace SQLite with a customized version by including the files sqlite3.c, sqlite3.h, and sqlite3ext.h in the project. Can this be done in Titanium so we can take advantage of custom Sqlite features? If so, how or where would we do this?
you would have to build your own database module (just like ours) with your custom version - you can look at our database module source in github
to clone you can do:
git clone firstname.lastname@example.org:appcelerator/titanium_mobile.git
We have the database module already – the question, I guess, is how to integrate it into the project so it can be called. We can't even create a simple custom module (as referenced in another thread) because there's no updated documentation for creating custom modules, and the old documentation doesn't seem to work, and there's no example in the Kitchen Sink code.
Does anybody have a simple example of creating a custom module? A simple hello, world example would be great.
The problem here is that your database module calls the internal version of Sqlite that's included in the iPhone SDK. We want to override the internal version with our own copy of Sqlite, so we need a push in the right direction.
We are able to do this just fine in our native XCode iPhone project. Making it work with Titanium Mobile, though, is where we need a little help.