6 years agoSDK support improvements.
Xavier Ducrohet [Wed, 30 Jan 2013 21:24:03 +0000]
SDK support improvements.

Move figuring out the path to aidl/aapt/dx/llvm-rs-cc from IAndroidTarget
to SdkParser (in preparation of the build-tools).

Also change android.target to android.compileSdkVersion to make it
less confusing with regards to min/targetSdkVersion and also change it
to take either an int or a string.

Change-Id: I8642cb84f67cf75b49abe905b2a65f4d26668e98

6 years agoMerge "Fix tests running on the server."
Xavier Ducrohet [Thu, 7 Feb 2013 00:46:51 +0000]
Merge "Fix tests running on the server."

6 years agoFix tests running on the server.
Xavier Ducrohet [Thu, 7 Feb 2013 00:45:34 +0000]
Fix tests running on the server.

Change-Id: Ie74170cc51c16545c6a004aaba570c2bf11d7314

6 years agoMerge "Minor fix + more verbose assert in test to debug issue."
Xavier Ducrohet [Thu, 7 Feb 2013 00:24:47 +0000]
Merge "Minor fix + more verbose assert in test to debug issue."

6 years agoMinor fix + more verbose assert in test to debug issue.
Xavier Ducrohet [Thu, 7 Feb 2013 00:23:43 +0000]
Minor fix + more verbose assert in test to debug issue.

Change-Id: If201822e568f670f41866f490651b7060a8416e1

6 years agoMerge "Add findbugs plugin."
Xavier Ducrohet [Wed, 6 Feb 2013 23:29:55 +0000]
Merge "Add findbugs plugin."

6 years agoAdd findbugs plugin.
Xavier Ducrohet [Wed, 6 Feb 2013 23:29:05 +0000]
Add findbugs plugin.

Change-Id: Id262ee77473e6c39fd98e2b4975bd9430c9dd79a

6 years agoMerge "Add multi assets folder support + assets in libraries."
Xavier Ducrohet [Wed, 6 Feb 2013 23:27:09 +0000]
Merge "Add multi assets folder support + assets in libraries."

6 years agoMerge "Fix BuildTypeDsl.initWith."
Xavier Ducrohet [Wed, 6 Feb 2013 18:03:00 +0000]
Merge "Fix BuildTypeDsl.initWith."

6 years agoFix BuildTypeDsl.initWith.
Xavier Ducrohet [Wed, 6 Feb 2013 03:22:20 +0000]
Fix BuildTypeDsl.initWith.

It was missing the duplication of the renderscript value.

Changed the test to catch this.

Change-Id: I3fda4fef7e7f7bf4787a5f4c70be8ab5d29c9646

6 years agoAdd multi assets folder support + assets in libraries.
Xavier Ducrohet [Tue, 29 Jan 2013 22:46:16 +0000]
Add multi assets folder support + assets in libraries.

Because managing those is very similar to resources,
this changeset refactors Resource(Item*), ResourceFile,
ResoureSet and ResourceMerger into base classes DataItem,
DataFile, DataSet and DataMerger providing most of the
mechanism to incrementally merge any type of data.

(* for consistency, Resource is renamed ResourceItem)

New classes to support the assets: AssetItem, AssetFile,
AssetSet, AssetMerger.

Also refactors the test data and add new test and test data
specifically for the asset.

Change-Id: I75d0a95aa330ab9ce25132800fe9ba2e57710b87

6 years agoMerge "Add some javadoc."
Xavier Ducrohet [Fri, 1 Feb 2013 18:58:57 +0000]
Merge "Add some javadoc."

6 years agoAdd some javadoc.
Xavier Ducrohet [Fri, 1 Feb 2013 18:19:41 +0000]
Add some javadoc.

Change-Id: Id487fe605d1241eb64df67da9ac54c0dd98af9a9

6 years agoMerge "Misc clean up."
Xavier Ducrohet [Fri, 1 Feb 2013 00:20:20 +0000]
Merge "Misc clean up."

6 years agoMisc clean up.
Xavier Ducrohet [Fri, 1 Feb 2013 00:19:05 +0000]
Misc clean up.

Change-Id: I18bc1d9567ebd91e67f0ca54d6bc420880af3953

6 years agoMerge "Fix generation of R class for libraries."
Xavier Ducrohet [Fri, 1 Feb 2013 00:14:36 +0000]
Merge "Fix generation of R class for libraries."

6 years agoMerge "Remove unneeded property on the rs task."
Xavier Ducrohet [Fri, 1 Feb 2013 00:13:37 +0000]
Merge "Remove unneeded property on the rs task."

6 years agoMerge "Clean dependencies of published libraries."
Xavier Ducrohet [Fri, 1 Feb 2013 00:13:13 +0000]
Merge "Clean dependencies of published libraries."

6 years agoFix generation of R class for libraries.
Xavier Ducrohet [Thu, 31 Jan 2013 20:57:38 +0000]
Fix generation of R class for libraries.

This adds support for libraries that shares the same package names
and libraries that use the app package name.

Also added two libraries to libsTest so that
lib2b shares the package name with lib2
libapp shares the package name with app.

Change-Id: I0c0fdb6fe553857e67227fad8d4f793d414de120

6 years agoRemove unneeded property on the rs task.
Xavier Ducrohet [Thu, 31 Jan 2013 22:24:12 +0000]
Remove unneeded property on the rs task.

Change-Id: I0be2c08a7d4a9c3619c2f748c16af1e25945a2da

6 years agoMerge "Update the report merger task to not depend on test."
Xavier Ducrohet [Thu, 31 Jan 2013 18:50:21 +0000]
Merge "Update the report merger task to not depend on test."

6 years agoClean dependencies of published libraries.
Xavier Ducrohet [Thu, 31 Jan 2013 02:01:08 +0000]
Clean dependencies of published libraries.

Change-Id: Icb3a75c7e79cbb58c0e529018f318323c649b475

6 years agoMerge "Fix renderscript compilation."
Xavier Ducrohet [Wed, 30 Jan 2013 17:54:27 +0000]
Merge "Fix renderscript compilation."

6 years agoMerge "Move to gradle 1.4"
Xavier Ducrohet [Wed, 30 Jan 2013 17:53:30 +0000]
Merge "Move to gradle 1.4"

6 years agoFix renderscript compilation.
Xavier Ducrohet [Wed, 30 Jan 2013 02:24:56 +0000]
Fix renderscript compilation.

After checking with the renderscript team, it seems incremental support
cannot work as the compiler must be called with all .rs files.

This is broken in the other build system.

Change-Id: I045e1aa22f9a961d36fd32f71bd5158f40b765c4

6 years agoMove to gradle 1.4
Xavier Ducrohet [Tue, 29 Jan 2013 02:38:39 +0000]
Move to gradle 1.4

Also update the build tests to be automatically generated
using a custom TestSuite.

Temporarily fix the renderscript support by disabling
parallelization compilation. Needs investigation.

Change-Id: I993aaf80871100b903d637f60044278a66646dd8

6 years agoMerge "Add version code to dependency data store."
Xavier Ducrohet [Tue, 29 Jan 2013 22:39:35 +0000]
Merge "Add version code to dependency data store."

6 years agoUpdate the report merger task to not depend on test.
Xavier Ducrohet [Tue, 29 Jan 2013 03:00:07 +0000]
Update the report merger task to not depend on test.

It's better to simply call it after the test task:
    gradle test mergeAndroidReports

Change-Id: Ie03e67b808d0badce153f22f36721aa5ac4b8d1f

6 years agoMerge "Add Renderscript support."
Xavier Ducrohet [Tue, 29 Jan 2013 02:45:43 +0000]
Merge "Add Renderscript support."

6 years agoAdd version code to dependency data store.
Xavier Ducrohet [Tue, 29 Jan 2013 01:49:53 +0000]
Add version code to dependency data store.

Also add some missing javadoc.

Change-Id: I30e9ab065339bd34df063405693068e6d45eabf4

6 years agoAdd Renderscript support.
Xavier Ducrohet [Fri, 25 Jan 2013 23:59:06 +0000]
Add Renderscript support.

Change-Id: I4787cc88fddd23afdb7c8f6ac127318da7b0cff7

6 years agoMerge changes Ib73cff2d,Iac0a88ff,I3c2205d1
Xavier Ducrohet [Mon, 28 Jan 2013 23:27:37 +0000]
Merge changes Ib73cff2d,Iac0a88ff,I3c2205d1

* changes:
  Refactor tasks.
  Refactor the dependency support into a base task class.
  Update the AIDL task to the new incremental framework.

6 years agoRefactor tasks.
Xavier Ducrohet [Fri, 25 Jan 2013 21:49:05 +0000]
Refactor tasks.

I previously split the tasks into an internal class
and a non-internal class to separate the public
and private api of the tasks, but all this did
was introduce complication for a split that
was not enforced at the DSL level anyway.

So this merges back the internal and non-internal
task classes.

Change-Id: Ib73cff2d6f3bc04e546a6f64844faaa8500ad2bb

6 years agoMerge "For java project to use 1.6."
Xavier Ducrohet [Fri, 25 Jan 2013 21:53:42 +0000]
Merge "For java project to use 1.6."

6 years agoFor java project to use 1.6.
Xavier Ducrohet [Fri, 25 Jan 2013 21:53:05 +0000]
For java project to use 1.6.

Change-Id: Ie266cc78ba634c19b2e67e4e60303ed48040dd8e

6 years agoRefactor the dependency support into a base task class.
Xavier Ducrohet [Fri, 25 Jan 2013 21:13:02 +0000]
Refactor the dependency support into a base task class.

The dependency support in the aidl compile task will be
reused in the renderscript compiler.

Change-Id: Iac0a88fff9d7adefab989bbdba73d4a34b7b862e

6 years agoUpdate the AIDL task to the new incremental framework.
Xavier Ducrohet [Tue, 22 Jan 2013 21:12:06 +0000]
Update the AIDL task to the new incremental framework.

Before, the aidl task would rely on the .d files created during
compilation to figure out what files needed recompilation.
The main drawback was that all .d files were created next to
the output files, making searching them before running the
compilation cumbersome.

This changes the mechanism to process the .d files right
after the compilation (when we know where to find them),
process them into a DependencyData object and later store
all those objects into a single file through DependencyDataStore.

Before the task run, it is much simpler to reload all the
DependencyData objects from the single file.

This now also relies on the IncrementalTask which provides
the exact list of changed files so this can be compared
to the DependencyData to know what files to recompile
and which output to update/remove.

Compilation of multiple aidl files now also use a
WaitableExecutor to run them in parallel.

Misc fix to dex task to ensure incremental command
receives all the parameters that are needed.

Change-Id: I3c2205d137072839c868decc4a98ae058f844948

6 years agoMerge "Add signing report task."
Xavier Ducrohet [Tue, 22 Jan 2013 21:21:41 +0000]
Merge "Add signing report task."

6 years agoAdd signing report task.
Xavier Ducrohet [Mon, 21 Jan 2013 22:32:44 +0000]
Add signing report task.

This lets users figure out which signing configuration
is used for each build variant. it also displays signing
information like fingerprints.

Also update the SigningConfig API around the store
location to make it a File instead of a String.

Change-Id: I8292cb9fa7e80a77f2503bdf092c041d8fa315a2

6 years agoMerge "Ensures debug keystores are created."
Xavier Ducrohet [Tue, 22 Jan 2013 21:17:59 +0000]
Merge "Ensures debug keystores are created."

6 years agoEnsures debug keystores are created.
Xavier Ducrohet [Thu, 17 Jan 2013 00:24:59 +0000]
Ensures debug keystores are created.

For Each SigningConfig object, create a ValidateSigningTask
that creates the keystore if:
- the path match the default debug keystore
- the keystore is missing

Packaging tasks are made to depend on the validate task
matching the SigningConfig they are configured with.

The main reason to do that versus doing the creation
inside the packaging app is that the way gradle
handles input file, the file has to exist.
The optional annotation let the input be null,
but not be a value that doesn't match an existing

Also adds the store type in the SigningConfig as it's necessary for
both creating and loaded a keystore.

Finally, this fixes the API of the packaging a bit:
- pass the SigningConfig directly everywhere.
- have the Builder throw the actual exceptions instead of
  RuntimeException (so that the caller can decide what to do)
- Make SigningConfigDsl extend the getters to be able to
  annotate them with @Input
- Clean up the DebugKeyHelper vs. KeystoreHelper.

Change-Id: If5eda8e2c2e759ace393d0689fa76699e3a9b6ba

6 years agoMerge "Incremental support for dex"
Xavier Ducrohet [Mon, 21 Jan 2013 18:55:50 +0000]
Merge "Incremental support for dex"

6 years agoMerge "Add suppor for 1.4"
Xavier Ducrohet [Mon, 21 Jan 2013 18:51:25 +0000]
Merge "Add suppor for 1.4"

6 years agoIncremental support for dex
Scott Barta [Wed, 16 Jan 2013 23:15:37 +0000]
Incremental support for dex

Enables existing incremental dex support in the dx tool in Gradle
build files. Uses existing incremental task infrastructure to
determine the set of changed .class files to pass to dx. Makes
incremental dexing a configurable option that developers can
disable via their build files if need be, though it's enabled by

Testing against the Google Play client build, incremental dexing
for single .java file changes improves dexing performance by
about 14x and reduces overall build times by 70% (when comparing
incremental-Gradle to non-incremental Gradle; non-incremental
Gradle is very roughly equivalent to Eclipse build times).

Change-Id: Icbc935f66594812f6dbf02217b03e3ba72566df9

6 years agoAdd suppor for 1.4
Xavier Ducrohet [Wed, 16 Jan 2013 22:37:25 +0000]
Add suppor for 1.4

Change-Id: I52712bc285ea8d65e46b09f1c3abee12f46025ce

6 years agoMerge "Allow resource files without a filename extension"
Xavier Ducrohet [Wed, 16 Jan 2013 20:19:16 +0000]
Merge "Allow resource files without a filename extension"

6 years agoMerge "Improvements to SigningConfig/BuildType initialization."
Xavier Ducrohet [Wed, 16 Jan 2013 19:38:53 +0000]
Merge "Improvements to SigningConfig/BuildType initialization."

6 years agoImprovements to SigningConfig/BuildType initialization.
Xavier Ducrohet [Wed, 16 Jan 2013 03:12:28 +0000]
Improvements to SigningConfig/BuildType initialization.

Moved the init code out of the main classes in Builder and into
the Dsl children classes.

This fixes some issues around sharing the SigningConfig.debug
object instead of creating a new disconnected one, so that
customizing it does update the BuildType.debug object.

This also improve error handling so that Builder doesn't
throw a RuntimeException but the Gradle plugin can (actually
a BuildException) if the debug keystore path cannot be found.
It's better that the client of the Builder library decides
what to do instead of the library throwing.

Also added debug signing config customization support in the
library plugin.

Finally added a initWith() method to both SigningConfig and
BuildType to allow easy duplication from the DSL.
Will probably need to do the same for ProductFlavor.

Change-Id: I931be800f42346899655d66631029b7f4acc42a2

6 years agoAllow resource files without a filename extension
Scott Barta [Wed, 16 Jan 2013 19:29:08 +0000]
Allow resource files without a filename extension

Change-Id: I6702deeb9de5562a1a7e61473d446cf4a7ed66b2

6 years agoMerge "Rename the keystore API/DSL by SigningConfig."
Xavier Ducrohet [Wed, 16 Jan 2013 18:26:44 +0000]
Merge "Rename the keystore API/DSL by SigningConfig."

6 years agoRename the keystore API/DSL by SigningConfig.
Xavier Ducrohet [Wed, 16 Jan 2013 01:04:59 +0000]
Rename the keystore API/DSL by SigningConfig.

android {
    signingConfigs {
        foo {
            storeLocation = ...

    buildTypes {
        debug {
            signingConfig signingConfigs.foo

Change-Id: I63640326660307a592e5ade1ba276ab7795526ff

6 years agoMerge "Default to Java 1.6 when building and allow customization."
Xavier Ducrohet [Tue, 15 Jan 2013 21:36:31 +0000]
Merge "Default to Java 1.6 when building and allow customization."

6 years agoDefault to Java 1.6 when building and allow customization.
Xavier Ducrohet [Tue, 15 Jan 2013 20:13:47 +0000]
Default to Java 1.6 when building and allow customization.

New DSL to customize source/targetCompatibility:

android {
    compileOptions {
        sourceCompatibility = "1.6"
        targetCompatibility = "1.6"

dex options will probably all move in there too in the future.

Change-Id: Ibab6fb8c44e7193274720f7340f0f1f409c6e3a4

6 years agoMerge "Add a way to make the build succeed on test failures."
Xavier Ducrohet [Tue, 15 Jan 2013 19:00:02 +0000]
Merge "Add a way to make the build succeed on test failures."

6 years agoAdd a way to make the build succeed on test failures.
Xavier Ducrohet [Tue, 15 Jan 2013 18:54:19 +0000]
Add a way to make the build succeed on test failures.

This is to differentiate between broken build and broken tests
on Jenkins.

Change-Id: I0334850321f5c9384e8d47a97d5654899e9539f9

6 years agoMerge "Fix tests after redirected buildDir."
Xavier Ducrohet [Tue, 15 Jan 2013 02:57:47 +0000]
Merge "Fix tests after redirected buildDir."

6 years agoFix tests after redirected buildDir.
Xavier Ducrohet [Tue, 15 Jan 2013 02:56:56 +0000]
Fix tests after redirected buildDir.

Change-Id: I93b63dd09a47a35c9c87c23f71a742de277b6e6a

6 years agoMerge "Fix rootDir reference."
Xavier Ducrohet [Tue, 15 Jan 2013 02:36:06 +0000]
Merge "Fix rootDir reference."

6 years agoFix rootDir reference.
Xavier Ducrohet [Tue, 15 Jan 2013 02:35:38 +0000]
Fix rootDir reference.

Change-Id: Ie042ac0d061399505b043eb19351304a5b4a01dd

6 years agoMerge "Fix the aggregate reports."
Xavier Ducrohet [Tue, 15 Jan 2013 02:11:40 +0000]
Merge "Fix the aggregate reports."

6 years agoFix the aggregate reports.
Xavier Ducrohet [Tue, 15 Jan 2013 02:10:04 +0000]
Fix the aggregate reports.

When running manually we don't actually need the report.

When running from jenkins (or other CI) we really don't need
the report either as the CI server will take care of it.

We do need to aggregate the results though but we can't have that
depend on the result of the test themselves or it won't run in
case of failure.

Therefore I removed all the dependency (and the custom report).
The way to run for a CI server is:

./gradlew check aggregateResults --continue

Change-Id: I968bfd8696994c9fbc05288cd78c0b9a00e5a846

6 years agoMerge "Properly exclude non resource files from the ResourceSet."
Xavier Ducrohet [Tue, 15 Jan 2013 00:53:57 +0000]
Merge "Properly exclude non resource files from the ResourceSet."

6 years agoMerge "Change gradle to output to the android out dir"
Raphael Moll [Tue, 15 Jan 2013 00:46:10 +0000]
Merge "Change gradle to output to the android out dir"

6 years agoMerge "Makes the duplicate resource error friendlier"
Scott Barta [Tue, 15 Jan 2013 00:21:47 +0000]
Merge "Makes the duplicate resource error friendlier"

6 years agoChange gradle to output to the android out dir
Raphael Moll [Tue, 8 Jan 2013 23:16:12 +0000]
Change gradle to output to the android out dir

Change-Id: I569afd35f76891390aad27b0ab75e2106cc0fe18

6 years agoMerge "Allow for easier relocation of full sourcesets."
Xavier Ducrohet [Sat, 12 Jan 2013 02:32:46 +0000]
Merge "Allow for easier relocation of full sourcesets."

6 years agoMakes the duplicate resource error friendlier
Scott Barta [Fri, 11 Jan 2013 23:46:06 +0000]
Makes the duplicate resource error friendlier

In the duplicate resource error, adds both offending files and lines.

Change-Id: I05d3e3b6ccc0e4d2027ea1f3ed1a65feb9103ced

6 years agoAllow for easier relocation of full sourcesets.
Xavier Ducrohet [Fri, 11 Jan 2013 00:47:30 +0000]
Allow for easier relocation of full sourcesets.

You can now call

and it will move all of src/test/* to blah/test/*

It makes it easier to migrate older project by relocating
non src/main outside of src/

Updated the 'migrated' samples to reflect this + other
misc fixes.

Change-Id: I2b98ada80a9b8d564370e00e3ed63a3d68c60412

6 years agoProperly exclude non resource files from the ResourceSet.
Xavier Ducrohet [Sat, 12 Jan 2013 00:07:05 +0000]
Properly exclude non resource files from the ResourceSet.

Change-Id: I9f21207b7f2812eab47f1ef96fafc4a107258dd9

6 years agoMerge "Custom Junit test report."
Xavier Ducrohet [Fri, 11 Jan 2013 23:45:06 +0000]
Merge "Custom Junit test report."

6 years agoMerge "Update changelog."
Xavier Ducrohet [Fri, 11 Jan 2013 16:38:08 +0000]
Merge "Update changelog."

6 years agoUpdate changelog.
Xavier Ducrohet [Fri, 11 Jan 2013 02:20:39 +0000]
Update changelog.

Change-Id: I0df828ebb747d9bb3320bf2a33cec22088b900a1

6 years agoCustom Junit test report.
Xavier Ducrohet [Fri, 4 Jan 2013 22:58:14 +0000]
Custom Junit test report.

Duplicated the report classes from Gradle to customize them
in order to show the device the test run on, or which flavor
and project the test is coming from.
This duplicated code is in its own source folder to separate
this from AOSP code and retains the original copyright.

The "test" tasks which runs all test<Flavor> tasks now also
aggregate the results of the test<Flavor> tasks and is designed
to run even when those fails by telling them to ignore errors
if the "test" task is set to run.

Added a new plugin strictly to do aggregate for the subprojects.
Plugin is called 'android-reporting'
It's meant to be used by the root project. It behaves similarly
as the "test" class in the android project, by telling sub
tasks to ignore errors.

The aggregate tasks will throw an exception if the sub test tasks
saw errors in order to ensure that the caller to gradle can
manage errors still.

Change-Id: I2c1df77cf8073fb74b4145b09aa7609d7999ef6c

6 years agoMerge "Fix wrong name on property due to multi-project change."
Xavier Ducrohet [Fri, 4 Jan 2013 23:06:23 +0000]
Merge "Fix wrong name on property due to multi-project change."

6 years agoFix wrong name on property due to multi-project change.
Xavier Ducrohet [Fri, 4 Jan 2013 22:59:33 +0000]
Fix wrong name on property due to multi-project change.

Change-Id: I6d26ec7a46bb16b983451ca242a0897adca08544

6 years agoMerge "Move BuildTypeDsl out of BuildTypeFactory to workaround some groovy bug."
Xavier Ducrohet [Fri, 4 Jan 2013 22:57:14 +0000]
Merge "Move BuildTypeDsl out of BuildTypeFactory to workaround some groovy bug."

6 years agoMerge "Add options to the test reporting."
Xavier Ducrohet [Fri, 4 Jan 2013 22:54:20 +0000]
Merge "Add options to the test reporting."

6 years agoMove BuildTypeDsl out of BuildTypeFactory to workaround some groovy bug.
Xavier Ducrohet [Fri, 4 Jan 2013 20:29:37 +0000]
Move BuildTypeDsl out of BuildTypeFactory to workaround some groovy bug.

As an inner class it prevented access to its parent in a closure.

See http://jira.codehaus.org/browse/GROOVY-5875

Change-Id: I29e5563173f8c5fec795cbd145ae02c941b0f47b

6 years agoAdd options to the test reporting.
Xavier Ducrohet [Fri, 4 Jan 2013 19:44:01 +0000]
Add options to the test reporting.

Support for customized results and report location.

Queries the IDevice to construct a name.

Copied the flavorlib samples to flavorlibWithFailedTests and
removed the failing tests from flavorlib as it's still useful to
have as a project with no failing test.

Change-Id: Iea3f2ab0828ab93c2ace3ed41b4a5dda7554bbe3

6 years agoMerge "Refactor some class from internal in subpackages."
Xavier Ducrohet [Fri, 4 Jan 2013 20:43:48 +0000]
Merge "Refactor some class from internal in subpackages."

6 years agoMerge "Improve on-device test result reporting."
Xavier Ducrohet [Fri, 4 Jan 2013 20:32:20 +0000]
Merge "Improve on-device test result reporting."

6 years agoRefactor some class from internal in subpackages.
Xavier Ducrohet [Fri, 4 Jan 2013 02:04:13 +0000]
Refactor some class from internal in subpackages.

It was starting to be a mess in there.

Change-Id: I49807fabd070326e31dd26c6e7535e50aeb0a033

6 years agoMerge "Move DebugKeyProvider into the Builder library."
Xavier Ducrohet [Fri, 4 Jan 2013 01:25:47 +0000]
Merge "Move DebugKeyProvider into the Builder library."

6 years agoImprove on-device test result reporting.
Xavier Ducrohet [Thu, 3 Jan 2013 18:43:22 +0000]
Improve on-device test result reporting.

Use ddmlib to run and gather the test results. The
library provides a test runner that can read the output
of the tests running on the device and generate Junit compatible
XML result reports.

This is then fed to gradle's report generator to make a standard report.

Also change the run test task to also do the install/uninstall
so that we can run tests on all connected devices in parallel.

The existing install/uninstall tasks can probably be removed.

Change-Id: I8d3baa848923a399de78dbdc7fc25d5548f56be2

6 years agoMove DebugKeyProvider into the Builder library.
Xavier Ducrohet [Thu, 3 Jan 2013 00:53:30 +0000]
Move DebugKeyProvider into the Builder library.

Change-Id: I815dc7caff9056af4a7462bf976ddfd7824ef772

6 years agoMerge "Misc fixes from previous comments."
Xavier Ducrohet [Thu, 3 Jan 2013 00:14:36 +0000]
Merge "Misc fixes from previous comments."

6 years agoMerge "Enforce a given version of platform-tools."
Xavier Ducrohet [Thu, 3 Jan 2013 00:04:50 +0000]
Merge "Enforce a given version of platform-tools."

6 years agoMisc fixes from previous comments.
Xavier Ducrohet [Thu, 3 Jan 2013 00:02:53 +0000]
Misc fixes from previous comments.

Change-Id: I00e1f1d12b8f8659e24972991840d72ffd734d2e

6 years agoMerge "Add crunch support to the ResourceManager."
Xavier Ducrohet [Thu, 3 Jan 2013 00:02:31 +0000]
Merge "Add crunch support to the ResourceManager."

6 years agoEnforce a given version of platform-tools.
Xavier Ducrohet [Wed, 2 Jan 2013 20:10:01 +0000]
Enforce a given version of platform-tools.

Change-Id: I8178b4ec7435a5091fdc1dcb892285ed3ecf55b0

6 years agoAdd crunch support to the ResourceManager.
Xavier Ducrohet [Sat, 22 Dec 2012 00:16:05 +0000]
Add crunch support to the ResourceManager.

This relies on a newer version of aapt that is able to
do single file crunch.

All crunching is done through a thread controlled by an executor.

Change-Id: I578f970660f152031ed1a4f4074382fcf4d7b2b8

6 years agoMerge "Update docs."
Xavier Ducrohet [Wed, 2 Jan 2013 21:16:51 +0000]
Merge "Update docs."

6 years agoUpdate docs.
Xavier Ducrohet [Wed, 2 Jan 2013 21:11:54 +0000]
Update docs.

Change-Id: Iced8cbbb3774fe534510db30a397a469956d3832

6 years agoMerge "Remove the prebuilts for builder."
Xavier Ducrohet [Wed, 2 Jan 2013 20:03:28 +0000]
Merge "Remove the prebuilts for builder."

6 years agoMerge "Add task on gradle plugin to run android tests on a device."
Xavier Ducrohet [Wed, 2 Jan 2013 19:41:24 +0000]
Merge "Add task on gradle plugin to run android tests on a device."

6 years agoRemove the prebuilts for builder.
Xavier Ducrohet [Fri, 21 Dec 2012 02:32:26 +0000]
Remove the prebuilts for builder.

Instead use the repo that is the output of publishLocal on

For now those dependencies are still baked into the resulting

Change-Id: Iae0dabfc1932e188218b590170d18401c8df673a

6 years agoAdd task on gradle plugin to run android tests on a device.
Xavier Ducrohet [Fri, 21 Dec 2012 01:46:16 +0000]
Add task on gradle plugin to run android tests on a device.

This is not final as the on-device errors are not properly processed.
When it's final it'll get added to the check task.

This also fixes some issue with installing/uninstalling due to the
incremental changes that went in today.

Change-Id: I280a1b8c4cfd4daae99fd68e4c93e52f9b3a9c0e

6 years agoMerge "Fix build tests under Windows."
Raphael Moll [Fri, 21 Dec 2012 23:43:51 +0000]
Merge "Fix build tests under Windows."

6 years agoFix build tests under Windows.
Raphael Moll [Fri, 21 Dec 2012 23:18:53 +0000]
Fix build tests under Windows.

Change-Id: I27bce90c5a8b05bc149b4a3d8a9a113d74b050e8

6 years agoMerge "Keystore objects."
Scott Barta [Fri, 21 Dec 2012 22:01:54 +0000]
Merge "Keystore objects."