forked from google/android-gradle-dsl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcom.android.build.gradle.internal.dsl.PackagingOptions.html
12 lines (10 loc) · 11.7 KB
/
com.android.build.gradle.internal.dsl.PackagingOptions.html
1
2
3
4
5
6
7
8
9
10
11
12
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>PackagingOptions - Android Plugin 1.3.1 DSL Reference</title><link type="text/css" rel="stylesheet" href="base.css"><link type="text/css" rel="stylesheet" href="docs.css"><link type="text/css" rel="stylesheet" href="dsl.css"><meta content="DocBook XSL Stylesheets V1.75.2" name="generator"><link rel="home" href="index.html" title="Android Plugin 1.3.1 DSL Reference"><link rel="up" href="index.html" title="Android Plugin 1.3.1 DSL Reference"><link rel="prev" href="com.android.build.gradle.internal.dsl.LintOptions.html" title="LintOptions - Android Plugin 1.3.1 DSL Reference"><link rel="next" href="com.android.build.gradle.internal.dsl.Splits.html" title="Splits - Android Plugin 1.3.1 DSL Reference"></head><body><div class="sidebar"><ul><li><a xmlns:xslthl="http://xslthl.sf.net" href="index.html" title="Android Plugin 1.3.1 DSL Reference">Home</a></li><li class="sidebarHeading selected">PackagingOptions</li><ul class="sections"><li><a xmlns:xslthl="http://xslthl.sf.net" href="com.android.build.gradle.internal.dsl.PackagingOptions.html#N1118F" title="Properties">Properties</a></li><li><a xmlns:xslthl="http://xslthl.sf.net" href="com.android.build.gradle.internal.dsl.PackagingOptions.html#N111AD" title="Methods">Methods</a></li></ul><li class="sidebarHeading">Android configuration blocks</li><li><a class="link" href="com.android.build.gradle.BaseExtension.html#com.android.build.gradle.BaseExtension:aaptOptions(org.gradle.api.Action)"><code class="literal">aaptOptions { }</code></a></li><li><a class="link" href="com.android.build.gradle.BaseExtension.html#com.android.build.gradle.BaseExtension:buildTypes(org.gradle.api.Action)"><code class="literal">buildTypes { }</code></a></li><li><a class="link" href="com.android.build.gradle.BaseExtension.html#com.android.build.gradle.BaseExtension:compileOptions(org.gradle.api.Action)"><code class="literal">compileOptions { }</code></a></li><li><a class="link" href="com.android.build.gradle.BaseExtension.html#com.android.build.gradle.BaseExtension:defaultConfig(org.gradle.api.Action)"><code class="literal">defaultConfig { }</code></a></li><li><a class="link" href="com.android.build.gradle.BaseExtension.html#com.android.build.gradle.BaseExtension:dexOptions(org.gradle.api.Action)"><code class="literal">dexOptions { }</code></a></li><li><a class="link" href="com.android.build.gradle.BaseExtension.html#com.android.build.gradle.BaseExtension:jacoco(org.gradle.api.Action)"><code class="literal">jacoco { }</code></a></li><li><a class="link" href="com.android.build.gradle.BaseExtension.html#com.android.build.gradle.BaseExtension:lintOptions(org.gradle.api.Action)"><code class="literal">lintOptions { }</code></a></li><li><a class="link" href="com.android.build.gradle.BaseExtension.html#com.android.build.gradle.BaseExtension:packagingOptions(org.gradle.api.Action)"><code class="literal">packagingOptions { }</code></a></li><li><a class="link" href="com.android.build.gradle.BaseExtension.html#com.android.build.gradle.BaseExtension:productFlavors(org.gradle.api.Action)"><code class="literal">productFlavors { }</code></a></li><li><a class="link" href="com.android.build.gradle.BaseExtension.html#com.android.build.gradle.BaseExtension:signingConfigs(org.gradle.api.Action)"><code class="literal">signingConfigs { }</code></a></li><li><a class="link" href="com.android.build.gradle.BaseExtension.html#com.android.build.gradle.BaseExtension:sourceSets(org.gradle.api.Action)"><code class="literal">sourceSets { }</code></a></li><li><a class="link" href="com.android.build.gradle.BaseExtension.html#com.android.build.gradle.BaseExtension:splits(org.gradle.api.Action)"><code class="literal">splits { }</code></a></li><li><a class="link" href="com.android.build.gradle.BaseExtension.html#com.android.build.gradle.BaseExtension:testOptions(org.gradle.api.Action)"><code class="literal">testOptions { }</code></a></li><li class="sidebarHeading">DSL types</li><li><a class="link" href="com.android.build.gradle.AppExtension.html"><code class="literal">AppExtension</code></a></li><li><a class="link" href="com.android.build.gradle.BaseExtension.html"><code class="literal">BaseExtension</code></a></li><li><a class="link" href="com.android.build.gradle.LibraryExtension.html"><code class="literal">LibraryExtension</code></a></li><li><a class="link" href="com.android.build.gradle.TestExtension.html"><code class="literal">TestExtension</code></a></li><li><a class="link" href="com.android.build.gradle.api.AndroidSourceDirectorySet.html"><code class="literal">AndroidSourceDirectorySet</code></a></li><li><a class="link" href="com.android.build.gradle.api.AndroidSourceFile.html"><code class="literal">AndroidSourceFile</code></a></li><li><a class="link" href="com.android.build.gradle.api.AndroidSourceSet.html"><code class="literal">AndroidSourceSet</code></a></li><li><a class="link" href="com.android.build.gradle.internal.CompileOptions.html"><code class="literal">CompileOptions</code></a></li><li><a class="link" href="com.android.build.gradle.internal.api.VariantFilter.html"><code class="literal">VariantFilter</code></a></li><li><a class="link" href="com.android.build.gradle.internal.coverage.JacocoExtension.html"><code class="literal">JacocoExtension</code></a></li><li><a class="link" href="com.android.build.gradle.internal.dsl.AaptOptions.html"><code class="literal">AaptOptions</code></a></li><li><a class="link" href="com.android.build.gradle.internal.dsl.BuildType.html"><code class="literal">BuildType</code></a></li><li><a class="link" href="com.android.build.gradle.internal.dsl.DexOptions.html"><code class="literal">DexOptions</code></a></li><li><a class="link" href="com.android.build.gradle.internal.dsl.LintOptions.html"><code class="literal">LintOptions</code></a></li><li><a class="link" href="com.android.build.gradle.internal.dsl.PackagingOptions.html"><code class="literal">PackagingOptions</code></a></li><li><a class="link" href="com.android.build.gradle.internal.dsl.ProductFlavor.html"><code class="literal">ProductFlavor</code></a></li><li><a class="link" href="com.android.build.gradle.internal.dsl.SigningConfig.html"><code class="literal">SigningConfig</code></a></li><li><a class="link" href="com.android.build.gradle.internal.dsl.Splits.html"><code class="literal">Splits</code></a></li><li><a class="link" href="com.android.build.gradle.internal.dsl.TestOptions.UnitTestOptions.html"><code class="literal">UnitTestOptions</code></a></li><li><a class="link" href="com.android.build.gradle.internal.dsl.TestOptions.html"><code class="literal">TestOptions</code></a></li></ul></div><div class="content"><div class="chapter"><div class="titlepage"><div><div><h1 xmlns:xslthl="http://xslthl.sf.net"><a name="com.android.build.gradle.internal.dsl.PackagingOptions"></a>PackagingOptions</h1></div></div></div><p>DSL objects for configuring APK packaging options.</p><div class="section"><div class="titlepage"><div><div><h3 class="title"><a name="N1118F"></a>Properties</h3></div></div></div><div xmlns:xslthl="http://xslthl.sf.net" class="table"><div class="table-contents"><table id="N11192"><thead><tr><td>Property</td><td>Description</td></tr></thead><tr><td><a class="link" href="com.android.build.gradle.internal.dsl.PackagingOptions.html#com.android.build.gradle.internal.dsl.PackagingOptions:excludes"><code class="literal">excludes</code></a></td><td><p>The list of excluded paths.
</p></td></tr><tr><td><a class="link" href="com.android.build.gradle.internal.dsl.PackagingOptions.html#com.android.build.gradle.internal.dsl.PackagingOptions:pickFirsts"><code class="literal">pickFirsts</code></a></td><td><p>The list of paths where the first occurrence is packaged in the APK.</p></td></tr></table></div></div></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a name="N111AD"></a>Methods</h3></div></div></div><div xmlns:xslthl="http://xslthl.sf.net" class="table"><div class="table-contents"><table id="N111B0"><thead><tr><td>Method</td><td>Description</td></tr></thead><tr><td><code class="literal"><a class="link" href="com.android.build.gradle.internal.dsl.PackagingOptions.html#com.android.build.gradle.internal.dsl.PackagingOptions:exclude(java.lang.String)">exclude</a>(path)</code></td><td><p>Adds an excluded paths.</p></td></tr><tr><td><code class="literal"><a class="link" href="com.android.build.gradle.internal.dsl.PackagingOptions.html#com.android.build.gradle.internal.dsl.PackagingOptions:pickFirst(java.lang.String)">pickFirst</a>(path)</code></td><td><p>Adds a firstPick path. First pick paths do get packaged in the APK, but only the first
occurrence gets packaged.</p></td></tr></table></div></div></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a name="N111CD"></a>Script blocks</h3></div></div></div><p>No script blocks</p></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a name="N111D2"></a>Property details</h3></div></div></div><div class="section"><div class="titlepage"><div><div><h4 class="signature"><a name="com.android.build.gradle.internal.dsl.PackagingOptions:excludes"></a><code class="classname"><a class="ulink" href="http://download.oracle.com/javase/7/docs/api/java/util/Set.html" target="_top"><code class="classname">Set</code></a><<a class="ulink" href="http://download.oracle.com/javase/7/docs/api/java/lang/String.html" target="_top"><code class="classname">String</code></a>></code> <code class="literal">excludes</code></h4></div></div></div><p>The list of excluded paths.
</p><p>Contains "LICENSE.txt" and "LICENSE" by default, since they often cause
packaging conflicts.</p></div><div class="section"><div class="titlepage"><div><div><h4 class="signature"><a name="com.android.build.gradle.internal.dsl.PackagingOptions:pickFirsts"></a><code class="classname"><a class="ulink" href="http://download.oracle.com/javase/7/docs/api/java/util/Set.html" target="_top"><code class="classname">Set</code></a><<a class="ulink" href="http://download.oracle.com/javase/7/docs/api/java/lang/String.html" target="_top"><code class="classname">String</code></a>></code> <code class="literal">pickFirsts</code></h4></div></div></div><p>The list of paths where the first occurrence is packaged in the APK.</p></div></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a name="N111FF"></a>Method details</h3></div></div></div><div class="section"><div class="titlepage"><div><div><h4 class="signature"><a name="com.android.build.gradle.internal.dsl.PackagingOptions:exclude(java.lang.String)"></a><code class="classname">void</code> <code class="literal">exclude</code>(<a class="ulink" href="http://download.oracle.com/javase/7/docs/api/java/lang/String.html" target="_top"><code class="classname">String</code></a> path)</h4></div></div></div><p>Adds an excluded paths.</p></div><div class="section"><div class="titlepage"><div><div><h4 class="signature"><a name="com.android.build.gradle.internal.dsl.PackagingOptions:pickFirst(java.lang.String)"></a><code class="classname">void</code> <code class="literal">pickFirst</code>(<a class="ulink" href="http://download.oracle.com/javase/7/docs/api/java/lang/String.html" target="_top"><code class="classname">String</code></a> path)</h4></div></div></div><p>Adds a firstPick path. First pick paths do get packaged in the APK, but only the first
occurrence gets packaged.</p></div></div></div><div id="copyright">
Except as noted, this content is licensed under <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>.
For details and restrictions, see the <a href="http://developer.android.com/license.html">Content License</a>.
</div></div></body></html>