PackagingOptions
@Incubating interface PackagingOptions
| com.android.build.api.dsl.PackagingOptions | 
Summary
            Public methods | 
        |
|---|---|
| abstract Unit | 
            dex(action: DexPackagingOptions.() -> Unit)PackagingOptions for dex  | 
        
| abstract Unit | 
            doNotStrip(pattern: String)Adds a doNotStrip pattern.  | 
        
| abstract Unit | 
            
             Adds an excluded pattern.  | 
        
| abstract Unit | 
            jniLibs(action: JniLibsPackagingOptions.() -> Unit)PackagingOptions for jniLibs  | 
        
| abstract Unit | 
            
             Adds a merge pattern.  | 
        
| abstract Unit | 
            
             Adds a first-pick pattern.  | 
        
| abstract Unit | 
            resources(action: ResourcesPackagingOptions.() -> Unit)PackagingOptions for java resources  | 
        
            Properties | 
        |
|---|---|
| abstract DexPackagingOptions | 
            
             PackagingOptions for dex  | 
        
| abstract MutableSet<String> | 
            
             The set of patterns for native library that should not be stripped of debug symbols.  | 
        
| abstract MutableSet<String> | 
            
             The set of excluded paths.  | 
        
| abstract JniLibsPackagingOptions | 
            
             PackagingOptions for jniLibs  | 
        
| abstract MutableSet<String> | 
            
             The set of patterns where all occurrences are concatenated and packaged in the APK.  | 
        
| abstract MutableSet<String> | 
            
             The set of patterns where the first occurrence is packaged in the APK.  | 
        
| abstract ResourcesPackagingOptions | 
            
             PackagingOptions for java resources  | 
        
Public methods
doNotStrip
abstract fundoNotStrip(pattern: String): Unit
Deprecated.
Adds a doNotStrip pattern.
| Parameters | |
|---|---|
| pattern: String | the pattern, as packaged in the APK | 
exclude
abstract funexclude(pattern: String): Unit
Deprecated.
Adds an excluded pattern.
| Parameters | |
|---|---|
| pattern: String | the pattern | 
jniLibs
abstract fun jniLibs(action: JniLibsPackagingOptions.() -> Unit): Unit
PackagingOptions for jniLibs
merge
abstract funmerge(pattern: String): Unit
Deprecated.
Adds a merge pattern.
| Parameters | |
|---|---|
| pattern: String | the pattern, as packaged in the APK | 
pickFirst
abstract funpickFirst(pattern: String): Unit
Deprecated.
Adds a first-pick pattern.
| Parameters | |
|---|---|
| pattern: String | the path to add. | 
resources
abstract fun resources(action: ResourcesPackagingOptions.() -> Unit): Unit
PackagingOptions for java resources
Properties
doNotStrip
abstract valdoNotStrip: MutableSet<String>
Deprecated.
The set of patterns for native library that should not be stripped of debug symbols.
merges
abstract valmerges: MutableSet<String>
Deprecated.
The set of patterns where all occurrences are concatenated and packaged in the APK.
pickFirsts
abstract valpickFirsts: MutableSet<String>
Deprecated.
The set of patterns where the first occurrence is packaged in the APK. First pick patterns do get packaged in the APK, but only the first occurrence found gets packaged.