Hello
I have a big problem with Titanium and Android, every time I make a change and run app in Android simulator, Titanium compiles all javascript resources (It tooks 30 or more seconds instead 4 or 5):
[INFO] Fastdev server running, deploying in Fastdev mode [INFO] Copying project resources.. [INFO] Tiapp.xml unchanged, skipping class generation [INFO] Force including all modules... [INFO] Compiling Javascript Resources ... [INFO] Detected custom ApplicationManifest.xml -- no Titanium version migration supported [INFO] Waiting for SDCard to become available.. [INFO] Compiling Android Resources... This could take some time [INFO] Installing application on deviceThere's no reason to recompile every time if I only change one line in app.js, so I look into Titanium code and found the reason: method build_generated_classes in file builder.py always detect files that "needs update". There are time diff between some java and class files...
In this method, you can see this comment:
# No sources are older than their classfile counterparts, we can skip javac / dexWhy sources are older? There are any problem with my system date (use Mac OS X Lion)?
I tried with all SDK versions from 1.7 to 2.0, using command line and Titanium Studio... I also tried without custom ApplicationManifest.xml, but if I change "if len(src_list) == 0:" to "if len(src_list) >= 0:" in builder.py all works great.
Thanks in advance
2 Answers
Hello David,
Have you checked out this blog?
http://developer.appcelerator.com/blog/2011/05/titanium-mobile-intro-series-fastdev-for-android.html
George
Yes, you can see fastdev in the output y posted. I tried with Titanium Studio and via command line, with the commands described in this post. The result is the same, Titanium still recompiles all files :(
Thanks
Your Answer
Think you can help? Login to answer this question!