Support for multi-flavor builds.
authorXavier Ducrohet <xav@android.com>
Thu, 20 Sep 2012 22:18:05 +0000 (15:18 -0700)
committerXavier Ducrohet <xav@android.com>
Fri, 21 Sep 2012 02:52:04 +0000 (19:52 -0700)
commit484f4ca1cf05865ea77403b2c8a21e21fa39bdca
tree9117d88b0afb0d3d19609adb10167f94ceefceb5
parent58d6448c2bb8d6772c76472bad1700b837ce0460
Support for multi-flavor builds.

Also adds a new multi-flavored test apps.

Tests are broken for flavored builds that don't
customize the package as all the apps are first installed
then all the tests are run and then all the apps
are uninstall. It needs to be install/run/uninstall
per variant.

Change-Id: Ieb4f498431af304ba58bbfa7bc178fe37bb62fe1
28 files changed:
gradle/src/main/groovy/com/android/build/gradle/AndroidExtension.groovy
gradle/src/main/groovy/com/android/build/gradle/AndroidPlugin.groovy
gradle/src/main/groovy/com/android/build/gradle/internal/ApplicationVariant.groovy
gradle/src/main/groovy/com/android/build/gradle/internal/BuildTypeDsl.groovy
gradle/src/main/groovy/com/android/build/gradle/internal/ProductFlavorData.groovy
gradle/src/main/groovy/com/android/build/gradle/internal/ProductFlavorDsl.groovy
gradle/src/main/groovy/com/android/build/gradle/internal/ProductionAppVariant.groovy
testapps/flavors/build.gradle [new file with mode: 0644]
testapps/flavors/proguard-project.txt [new file with mode: 0644]
testapps/flavors/src/f1/java/com/android/tests/flavors/group1/SomeClass.java [new file with mode: 0644]
testapps/flavors/src/f1/res/values/strings.xml [new file with mode: 0644]
testapps/flavors/src/f2/java/com/android/tests/flavors/group1/SomeClass.java [new file with mode: 0644]
testapps/flavors/src/f2/res/values/strings.xml [new file with mode: 0644]
testapps/flavors/src/fa/java/com/android/tests/flavors/group2/SomeClass.java [new file with mode: 0644]
testapps/flavors/src/fa/res/values/strings.xml [new file with mode: 0644]
testapps/flavors/src/fb/java/com/android/tests/flavors/group2/SomeClass.java [new file with mode: 0644]
testapps/flavors/src/fb/res/values/strings.xml [new file with mode: 0644]
testapps/flavors/src/main/AndroidManifest.xml [new file with mode: 0644]
testapps/flavors/src/main/java/com/android/tests/flavors/MainActivity.java [new file with mode: 0644]
testapps/flavors/src/main/res/drawable-hdpi/icon.png [new file with mode: 0644]
testapps/flavors/src/main/res/drawable-ldpi/icon.png [new file with mode: 0644]
testapps/flavors/src/main/res/drawable-mdpi/icon.png [new file with mode: 0644]
testapps/flavors/src/main/res/layout/main.xml [new file with mode: 0644]
testapps/flavors/src/main/res/values/strings.xml [new file with mode: 0644]
testapps/flavors/src/testF1/java/com/android/tests/flavors/MainActivityTest.java [new file with mode: 0644]
testapps/flavors/src/testF2/java/com/android/tests/flavors/MainActivityTest.java [new file with mode: 0644]
testapps/flavors/src/testFA/java/com/android/tests/flavors/MainActivityTest.java [new file with mode: 0644]
testapps/flavors/src/testFB/java/com/android/tests/flavors/MainActivityTest.java [new file with mode: 0644]