[TIMOB-2662] android SDK > 1.5.0 "Compiling Javascript Resources" each time
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Trivial |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2013-11-11T19:10:17.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 2013 Sprint 21, 2013 Sprint 21 Core |
Components | Android, Tooling |
Labels | android, androidbuild, ay-verified, cb-verified, compile, defect, reported-1.5.0, sdk |
Reporter | Stephane |
Assignee | Chris Barber |
Created | 2011-04-15T03:26:19.000+0000 |
Updated | 2013-11-16T00:57:19.000+0000 |
Description
With SDK older than 1.5.0, when Ti developer "Launch" button is clicked, application is immediately displaying in the emulator:
[INFO] Building test for Android ... one moment
[INFO] Copying project resources..
[INFO] Tiapp.xml unchanged, skipping class generation
[INFO] Manifest unchanged, skipping Java build
[INFO] Re-launching application ... test
[INFO] Relaunched test ... Application should be running.
With 1.5.0 & 1.5.1 each time I get a "compiling Android Resources":
[INFO] Building test for Android ... one moment
[INFO] Titanium SDK version: 1.5.1 (12/16/10 16:25 16bbb92)
[INFO] Copying project resources..
[INFO] Tiapp.xml unchanged, skipping class generation
[INFO] Compiling Javascript Resources ...
[INFO] Compiling Android Resources... This could take some time
i've done a pastie for :
1.2 SDK TRACE : http://pastie.org/1465943">http://pastie.org/1465943
1.5.1 SDK TRACE : http://pastie.org/1465947">http://pastie.org/1465947
this is the default app those traces are the second click (not first build)
1.5.1 is doing a bunch of other thing even if files aren't modified
I had a quick (& first time) look at builder.py : in 1.5.1 it looks like generated_classes_built (line 1378) is always set to true, changing it to False by-pass the compilation.(what a time saving!)
in 1.2.0 there was this test :
but it does not enter elif (line 1447) to print message : info("Re-launching application ... %s" % self.name)
The "not entering elif on line 1447" matter is a problem with the if "not self.sdcard_copy" (line 1439)
removing it leads to :
[INFO] Re-launching application ... Project name [INFO] Relaunched Project Name ... Application should be running.
BUT modificatons on files are not seen (for example changing a text in a file isn't pushed on the Simulator)
PR: https://github.com/appcelerator/titanium_mobile/pull/4781