Using GPT-4o to Create a Titanium Module

Posted on Tags: , , , ,

The Gist

I used GPT-4o to create a Titanium module that I have been missing in one of my apps for at least two years now. My SocialNote app is one of my most popular apps downloaded. When I initially released it, you could share your image with Instagram (albeit in a pretty rough way).

Then, I found a module that allowed me to share using the native iOS UI (where it shows various sharing options). When Titanium discontinued support via Appcelerator, the module was not longer supported or updated either.

Fast forward to now, I’m apart of the Titanium Slack community and someone used GPT-4o today to build a module for one of their apps. Since I have access to the OpenAI API, I figured why not give it a try myself. Boom! It worked with a little tweaking. I had to place some of the code in files that already existed instead of creating new ones per gpt’s recommendation. After that, I built the module and included it in my tiapp.xml file, called the function in my app and it worked like a charm.

I have been using GPT-4o to push the limits on coding possibilities, usually in areas where I’m not well versed or want to learn more. This was a perfect example of a great use case.

Here’s a direct link to my transcript.

Here’s a link to the GitHub Repo.

If you have any questions, feel free to reach out to me. I hope this helps someone!

Leave a Reply