Hi,

In the project I am currently working on, we use a single source base (1 
main project + 5 library projects) and build bunch of apks (10 ~ 20) for 
every release, which only differ by several meta-data values in 
AndroidManifest.xml, for statistics and marketing purpose.

I have been following the new build system for a while and have a play with 
it, I am able to get the Product Flavor running as expected.

Here comes the question, each Product Flavor run the complete build life 
cycle, from compile source to merge libs to package apk. As you can see in 
our case, we don't need manipulate complex stuff like image resource or 
java source, only the contents of AndroidManifest.xml, the build script 
hence repeatedly doing same tasks in most of time with a different flavor 
prefix dexXXXRelease, packageYYYRelease and etc. As the result, 
dramatically increase the build time.

Profile in Maven has the same dilemma, the current approach we used base on 
our own python script with apktool manipulate the apk to generate batch. 
Not sure if Gradle has the built-in feature to optimize this. As most of 
assembles (class, res and etc) are generate by the first flavor, I am 
thinking if it is possible to customize gradle to run only some specific 
task like packageRelease and dexRelease multiple time for each build type 
instead of once for every flavor. to boost performance in this case.

Thanks for reading.
York



-- 
You received this message because you are subscribed to the Google Groups 
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to