Add support to build and bundle library projects.
authorXavier Ducrohet <xav@android.com>
Wed, 29 Aug 2012 00:31:49 +0000 (17:31 -0700)
committerXavier Ducrohet <xav@android.com>
Wed, 29 Aug 2012 01:47:14 +0000 (18:47 -0700)
commit9fa7b6f02282ba06961e05c78d12e4809408d781
tree9b3b671758b4bf288769a3f50f22bb6528a20ae0
parenta1891743f03fc7bf906f8f98983a6a00cf814ae0
Add support to build and bundle library projects.

The unarchived bundle is saved under build/bundle.

The generated manifest is directly saved under there
to avoid copying it.
The resources are copied there but the built-type
res folder is not properly merged in there. Need
to fix this.
The crunched resources are copied on top of it.

Also add a library test app.

Change-Id: Iab2d437b6f98ca5f842ca9720aafa206691fc1f0
27 files changed:
.gitignore
builder/.gitignore
builder/src/main/java/com/android/builder/AndroidBuilder.java
gradle/src/main/groovy/com/android/build/gradle/AndroidBasePlugin.groovy
gradle/src/main/groovy/com/android/build/gradle/AndroidExtension.groovy
gradle/src/main/groovy/com/android/build/gradle/AndroidLibraryPlugin.groovy
gradle/src/main/groovy/com/android/build/gradle/AndroidPlugin.groovy
gradle/src/main/groovy/com/android/build/gradle/BaseAndroidExtension.groovy
testapps/tictactoe/README.txt [new file with mode: 0644]
testapps/tictactoe/app/build.gradle [new file with mode: 0644]
testapps/tictactoe/app/src/main/AndroidManifest.xml [new file with mode: 0755]
testapps/tictactoe/app/src/main/java/com/example/android/tictactoe/MainActivity.java [new file with mode: 0755]
testapps/tictactoe/app/src/main/res/drawable/icon.png [new file with mode: 0755]
testapps/tictactoe/app/src/main/res/layout/main.xml [new file with mode: 0755]
testapps/tictactoe/app/src/main/res/values/strings.xml [new file with mode: 0755]
testapps/tictactoe/build.gradle [new file with mode: 0644]
testapps/tictactoe/lib/build.gradle [new file with mode: 0644]
testapps/tictactoe/lib/src/main/AndroidManifest.xml [new file with mode: 0755]
testapps/tictactoe/lib/src/main/java/com/example/android/tictactoe/library/GameActivity.java [new file with mode: 0755]
testapps/tictactoe/lib/src/main/java/com/example/android/tictactoe/library/GameView.java [new file with mode: 0755]
testapps/tictactoe/lib/src/main/res/drawable/lib_bg.9.png [new file with mode: 0755]
testapps/tictactoe/lib/src/main/res/drawable/lib_circle.png [new file with mode: 0755]
testapps/tictactoe/lib/src/main/res/drawable/lib_cross.png [new file with mode: 0755]
testapps/tictactoe/lib/src/main/res/layout-land/lib_game.xml [new file with mode: 0755]
testapps/tictactoe/lib/src/main/res/layout/lib_game.xml [new file with mode: 0755]
testapps/tictactoe/lib/src/main/res/values/strings.xml [new file with mode: 0755]
testapps/tictactoe/settings.gradle [new file with mode: 0644]