Packaging
interface Packaging
Packaging option entry point for the Android DSL.
android {
packaging {
}
}
Summary
Public functions |
|
---|---|
Unit |
dex(action: DexPackaging.() -> Unit) Method to configure the packaging options for dex files via a lambda |
Unit |
This function is deprecated. This method is deprecated. |
Unit |
This function is deprecated. This method is deprecated. |
Unit |
jniLibs(action: JniLibsPackaging.() -> Unit) Method to configure the packaging options for JNI library files via a lambda |
Unit |
This function is deprecated. This method is deprecated. |
Unit |
This function is deprecated. This method is deprecated. |
Unit |
resources(action: ResourcesPackaging.() -> Unit) Method to configure the packaging options for Java resources via a lambda |
Public properties |
|
---|---|
DexPackaging |
Packaging options for dex files |
MutableSet<String> |
This property is deprecated. This property is deprecated. |
MutableSet<String> |
This property is deprecated. This property is deprecated. |
JniLibsPackaging |
Packaging options for JNI library files |
MutableSet<String> |
This property is deprecated. This property is deprecated. |
MutableSet<String> |
This property is deprecated. This property is deprecated. |
ResourcesPackaging |
Packaging options for java resources |
Public functions
dex
fun dex(action: DexPackaging.() -> Unit): Unit
Method to configure the packaging options for dex files via a lambda
android {
packaging {
dex {
useLegacyPackaging = false
}
}
}
doNotStrip
fundoNotStrip(pattern: String): Unit
Adds a doNotStrip pattern.
Parameters | |
---|---|
pattern: String |
the pattern, as packaged in the APK |
exclude
funexclude(pattern: String): Unit
Adds an excluded pattern.
Parameters | |
---|---|
pattern: String |
the pattern |
jniLibs
fun jniLibs(action: JniLibsPackaging.() -> Unit): Unit
Method to configure the packaging options for JNI library files via a lambda
android {
packaging {
jniLibs {
excludes += "/..."
}
}
}
merge
funmerge(pattern: String): Unit
Adds a merge pattern.
Parameters | |
---|---|
pattern: String |
the pattern, as packaged in the APK |
pickFirst
funpickFirst(pattern: String): Unit
Adds a first-pick pattern.
Parameters | |
---|---|
pattern: String |
the path to add. |
resources
fun resources(action: ResourcesPackaging.() -> Unit): Unit
Method to configure the packaging options for Java resources via a lambda
android {
packaging {
resources {
excludes += "/..."
}
}
}
Public properties
doNotStrip
val doNotStrip: MutableSet<String>
The set of patterns for native library that should not be stripped of debug symbols.
excludes
val excludes: MutableSet<String>
The set of excluded paths.
merges
val merges: MutableSet<String>
The set of patterns where all occurrences are concatenated and packaged in the APK.
pickFirsts
val pickFirsts: MutableSet<String>
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.