create mobile project from command line
Hello,
I am working on some further automation for creating mobile applications and would need more flexibility how to use the Titanium Mobile tooling/SDK.
Is it possible to create projects (mobile) from the command line? I was able to use the following to create a skeleton project:
./project.py TestApp com.test /tmp/appcel iphone
But after import into Titanium Developer (and manually creating a manifest) it does not run in the emulator … as the created project seems to be incomplete.
Would it be also possible to run the emulator and do the other necessary tasks from a command line interface (script)?
Maybe there is a documentation for the SDK which I can't find?
Thanks in advance for your help,
~Wolfgang
6 Answers
-
Hi there,
I dived into the details of the titanium_developer source code and found all the JavaScript and Python that is executed to create a new project and to compile the source and run it in the emulator. This looks very cumbersome and nearly impossible to automate these processes as the tooling part of the SDK is very tightly coupled with the UI (Titanium Developer) and the logic for the basic tasks to
- create project
- compile project
- run project in emulator
seem to be spread widely …
Aren't there any plain simple CLI scripts (.sh, .py, …) available for the key SDK tasks?
I am particulary working on a (better) integration into Eclipse of Titanium Mobile … this would allow for a very efficient way to leverage existing development tools, a plugin mechanism and higher productivity. We would be pleased to contribute our work back to the Open Source community but first we might need some help to take the steps to identify the right integration mechanisms with the core tooling of Titanium (without the UI).
Is there someone who could help?
Best Regards,
Wolfgang -
The scripts are driven from Developer http://github.com/appcelerator/titanium_developer you might look there for hints.
-
This would be very helpful. The UI application is great for getting started, but it quickly gets in the way of having a nice code/test debug workflow.
-
Any news about this?
-
For anyone looking for the documents:
-
Hi there,
we finally figured it out to do it using the provided .py scripts in the mobilde sdk. After using them we had to patch some artefacts but then we were able to step through the main development processes without the Titanium Developer UI.
We will do some testing of the approach this week and will share our experience in this forum afterwards.
Any further tips also welcome …
~Wolfgang