summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorRich Slogar <rslogar@google.com>2015-07-16 13:45:41 -0700
committerRich Slogar <rslogar@google.com>2015-07-24 13:48:34 -0700
commit3da20929404b854c6a2d0e41278bacfda393e44f (patch)
tree395138291c8569ecc51698e0ef59262ea1f13252 /docs
parenta758133566e030275988fb3bf253a432e6803d8f (diff)
downloadframeworks_base-3da20929404b854c6a2d0e41278bacfda393e44f.zip
frameworks_base-3da20929404b854c6a2d0e41278bacfda393e44f.tar.gz
frameworks_base-3da20929404b854c6a2d0e41278bacfda393e44f.tar.bz2
docs: studio 1.3 revisions - android plugin for gradle
Change-Id: I0ce279d7b27700aaacca70aec5ea687e3ccf92a3
Diffstat (limited to 'docs')
-rw-r--r--docs/html/tools/revisions/gradle-plugin.jd100
1 files changed, 100 insertions, 0 deletions
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
<div class="toggle-content opened">
<p><a href="#" onclick="return toggleContent(this)">
<img src="{@docRoot}assets/images/triangle-opened.png" class="toggle-content-img"
+ alt=""/>Android Plugin for Gradle, Revision 1.3.0</a> <em>(July 2015)</em>
+ </p>
+
+ <div class="toggle-content-toggleme">
+
+ <dl>
+ <dt>Dependencies:</dt>
+
+ <dd>
+ <ul>
+ <li>Gradle 2.2.1 or higher.</li>
+ <li>Build Tools 21.1.1 or higher.</li>
+ </ul>
+ </dd>
+
+ <dt>General Notes:</dt>
+ <dd>
+ <ul>
+ <li>Added support for the <code>com.android.build.threadPoolSize</code> property to control
+ the <code>Android</code> task thread pool size from the <code>build.gradle</code> file or
+ the command line. The following example sets this property to 4.
+<pre>
+-Pcom.android.build.threadPoolSize=4
+</pre>
+ </li>
+ <li>Set the default build behavior to exclude <code>LICENSE</code> and <code>LICENSE.txt</code>
+ files from APKs. To include these files in an APK, remove these files from the
+ <code>packagingOptions.excludes</code> property in the <code>build.gradle</code> file.
+ For example:
+<pre>
+android {
+ packagingOptions.excludes = []
+ }
+</pre>
+ </li>
+ <li>Added the <code>sourceSets</code> task to inspect the set of all available source sets. </li>
+ <li>Enhanced unit test support to recognize multi-flavor and
+ <a href="{@docRoot}tools/building/configuring-gradle.html#workBuildVariants">
+ build variant</a> source folders. For example, to test an app with multi-flavors
+ <code>flavor1</code> and <code>flavorA</code> with the <code>Debug</code> build type,
+ the test source sets are:
+ <ul>
+ <li>test </li>
+ <li>testFlavor1 </li>
+ <li>testFlavorA </li>
+ <li>testFlavor1FlavorA </li>
+ <li>testFlavor1FlavorADebug </li>
+ </ul>
+ <p>Android tests already recognized multi-flavor source folders. </p> </li>
+ <li>Improved unit test support to:</p>
+ <ul>
+ <li>Run <code>javac</code> on main and test sources, even if the <code>useJack</code>
+ property is set to <code>true</code> in your build file. </li>
+ <li>Correctly recognize dependencies for each build type. </li>
+ </ul>
+ </li>
+ <li>Added support for specifying instrumentation test-runner arguments from the command line.
+ For example:
+<pre>
+./gradlew connectedCheck \
+ -Pandroid.testInstrumentationRunnerArguments.size=medium \
+ -Pandroid.testInstrumentationRunnerArguments.class=TestA,TestB
+</pre>
+ </li>
+ <li>Added support for arbitrary additional Android Asset Packaging Tool (AAPT) parameters
+ in the <code>build.gradle</code> file. For example:
+<pre>
+android {
+ aaptOptions {
+ additionalParameters "--custom_option", "value"
+ }
+}
+</pre>
+ </li>
+
+ <li>Added support for a <a href="{@docRoot}tools/studio/studio-features.html#test-module">
+ test APK module</a> as a separate test module, using the
+ <code>targetProjectPath</code> and <code>targetVariant</code> properties to set the APK
+ path and target variant.
+ <p class="note"><strong>Note:</strong> A test APK module does not support product
+ flavors and can only target a single variant. Also, Jacoco is not supported yet.</p>
+ </li>
+ <li>Added resource name validation before merging resources. </li>
+ <li>When building an AAR (Android ARchive) package for library modules, do not provide an
+ automatic <code>&#64;{applicationId}</code> placeholder in the
+ <a href="{@docRoot}tools/building/manifest-merge.html">manifest merger</a> settings.
+ Instead, use a different placeholder, such as <code>&#64;{libApplicationId}</code> and
+ provide a value for it if you want to include application Ids in the archive library. </li>
+
+ </ul>
+ </dd>
+ </div>
+</div>
+
+
+
+
+<div class="toggle-content closed">
+ <p><a href="#" onclick="return toggleContent(this)">
+ <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img"
alt=""/>Android Plugin for Gradle, Revision 1.2.0</a> <em>(April 2015)</em>
</p>