From 3da20929404b854c6a2d0e41278bacfda393e44f Mon Sep 17 00:00:00 2001 From: Rich Slogar Date: Thu, 16 Jul 2015 13:45:41 -0700 Subject: docs: studio 1.3 revisions - android plugin for gradle Change-Id: I0ce279d7b27700aaacca70aec5ea687e3ccf92a3 --- docs/html/tools/revisions/gradle-plugin.jd | 100 +++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) (limited to 'docs/html/tools') diff --git a/docs/html/tools/revisions/gradle-plugin.jd b/docs/html/tools/revisions/gradle-plugin.jd index 90ec44a..8713e6b 100644 --- a/docs/html/tools/revisions/gradle-plugin.jd +++ b/docs/html/tools/revisions/gradle-plugin.jd @@ -40,6 +40,106 @@ href="http://tools.android.com/knownissues">http://tools.android.com/knownissues

Android Plugin for Gradle, Revision 1.3.0 (July 2015) +

+ +
+ +
+
Dependencies:
+ +
+
    +
  • Gradle 2.2.1 or higher.
  • +
  • Build Tools 21.1.1 or higher.
  • +
+
+ +
General Notes:
+
+
    +
  • Added support for the com.android.build.threadPoolSize property to control + the Android task thread pool size from the build.gradle file or + the command line. The following example sets this property to 4. +
    +-Pcom.android.build.threadPoolSize=4
    +
    +
  • +
  • Set the default build behavior to exclude LICENSE and LICENSE.txt + files from APKs. To include these files in an APK, remove these files from the + packagingOptions.excludes property in the build.gradle file. + For example: +
    +android {
    +      packagingOptions.excludes = []
    +    }
    +
    +
  • +
  • Added the sourceSets task to inspect the set of all available source sets.
  • +
  • Enhanced unit test support to recognize multi-flavor and + + build variant source folders. For example, to test an app with multi-flavors + flavor1 and flavorA with the Debug build type, + the test source sets are: +
      +
    • test
    • +
    • testFlavor1
    • +
    • testFlavorA
    • +
    • testFlavor1FlavorA
    • +
    • testFlavor1FlavorADebug
    • +
    +

    Android tests already recognized multi-flavor source folders.

  • +
  • Improved unit test support to:

    +
      +
    • Run javac on main and test sources, even if the useJack + property is set to true in your build file.
    • +
    • Correctly recognize dependencies for each build type.
    • +
    +
  • +
  • Added support for specifying instrumentation test-runner arguments from the command line. + For example: +
    +./gradlew connectedCheck \
    +   -Pandroid.testInstrumentationRunnerArguments.size=medium \
    +   -Pandroid.testInstrumentationRunnerArguments.class=TestA,TestB
    +
    +
  • +
  • Added support for arbitrary additional Android Asset Packaging Tool (AAPT) parameters + in the build.gradle file. For example: +
    +android {
    +    aaptOptions {
    +      additionalParameters "--custom_option", "value"
    +    }
    +}
    +
    +
  • + +
  • Added support for a + test APK module as a separate test module, using the + targetProjectPath and targetVariant properties to set the APK + path and target variant. +

    Note: A test APK module does not support product + flavors and can only target a single variant. Also, Jacoco is not supported yet.

    +
  • +
  • Added resource name validation before merging resources.
  • +
  • When building an AAR (Android ARchive) package for library modules, do not provide an + automatic @{applicationId} placeholder in the + manifest merger settings. + Instead, use a different placeholder, such as @{libApplicationId} and + provide a value for it if you want to include application Ids in the archive library.
  • + +
+
+
+
+ + + + +
+

+ Android Plugin for Gradle, Revision 1.2.0 (April 2015)

-- cgit v1.1