Merge pull request #7298 from thundernest/packaging_excludes
Always exclude common files from Android packaging
This commit is contained in:
commit
060a376510
3 changed files with 17 additions and 23 deletions
|
@ -39,14 +39,6 @@ android {
|
|||
manifestPlaceholders["appAuthRedirectScheme"] = "com.fsck.k9.debug"
|
||||
}
|
||||
|
||||
packaging {
|
||||
resources {
|
||||
excludes += listOf(
|
||||
"META-INF/DEPENDENCIES",
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
getByName("release") {
|
||||
isMinifyEnabled = false
|
||||
|
|
|
@ -156,15 +156,6 @@ android {
|
|||
|
||||
resources {
|
||||
excludes += listOf(
|
||||
"META-INF/DEPENDENCIES",
|
||||
"META-INF/LICENSE",
|
||||
"META-INF/LICENSE.txt",
|
||||
"META-INF/NOTICE",
|
||||
"META-INF/NOTICE.txt",
|
||||
"META-INF/README",
|
||||
"META-INF/README.md",
|
||||
"META-INF/CHANGES",
|
||||
"LICENSE.txt",
|
||||
"META-INF/*.kotlin_module",
|
||||
"META-INF/*.version",
|
||||
"kotlin/**",
|
||||
|
|
|
@ -27,6 +27,23 @@ internal fun CommonExtension<*, *, *, *, *>.configureSharedConfig() {
|
|||
isIncludeAndroidResources = true
|
||||
}
|
||||
}
|
||||
|
||||
packaging {
|
||||
resources {
|
||||
excludes += listOf(
|
||||
"/META-INF/{AL2.0,LGPL2.1}",
|
||||
"/META-INF/DEPENDENCIES",
|
||||
"/META-INF/LICENSE",
|
||||
"/META-INF/LICENSE.txt",
|
||||
"/META-INF/NOTICE",
|
||||
"/META-INF/NOTICE.txt",
|
||||
"/META-INF/README",
|
||||
"/META-INF/README.md",
|
||||
"/META-INF/CHANGES",
|
||||
"/LICENSE.txt",
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
internal fun CommonExtension<*, *, *, *, *>.configureSharedComposeConfig(
|
||||
|
@ -44,12 +61,6 @@ internal fun CommonExtension<*, *, *, *, *>.configureSharedComposeConfig(
|
|||
warningsAsErrors = false
|
||||
abortOnError = true
|
||||
}
|
||||
|
||||
packaging {
|
||||
resources {
|
||||
excludes += "/META-INF/{AL2.0,LGPL2.1}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
internal fun DependencyHandler.configureSharedComposeDependencies(
|
||||
|
|
Loading…
Reference in a new issue