Refine resources packing options
This commit is contained in:
1 parent
aef55c9207
commit
4588b7eaa5
1 file changed
+9
-14
+9
-14
@@ -137,10 +137,16 @@ android {
|
||||
useLegacyPackaging = false
|
||||
}
|
||||
resources {
|
||||
// Required by Layout Inspector
|
||||
pickFirsts += "/META-INF/androidx.compose.ui_ui.version"
|
||||
|
||||
excludes += listOf(
|
||||
"META-INF/DEPENDENCIES",
|
||||
"com", // Compose Destination
|
||||
"org", // Apache 5 HC version info
|
||||
"/META-INF/**",
|
||||
"/kotlin/**",
|
||||
"**.txt",
|
||||
"**.bin",
|
||||
"**.{html,mmd}", // Compose Destination
|
||||
"**.properties", // Apache 5 HC version info
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -178,17 +184,6 @@ composeCompiler {
|
||||
featureFlags = setOf(ComposeFeatureFlag.OptimizeNonSkippingGroups)
|
||||
}
|
||||
|
||||
androidComponents {
|
||||
onVariants(selector().withBuildType("release")) {
|
||||
it.packaging.resources.excludes.addAll(
|
||||
"/META-INF/**",
|
||||
"/kotlin/**",
|
||||
"**.txt",
|
||||
"**.bin",
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
baselineProfile {
|
||||
mergeIntoMain = true
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user