diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 8c91926c6..38fc1906a 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -147,12 +147,6 @@ android { dex { useLegacyPackaging = false } - resources { - excludes += "/META-INF/**" - excludes += "/kotlin/**" - excludes += "**.txt" - excludes += "**.bin" - } } dependenciesInfo.includeInApk = false @@ -184,6 +178,17 @@ android { namespace = "com.hippo.ehviewer" } +androidComponents { + onVariants(selector().withBuildType("release")) { + it.packaging.resources.excludes.addAll( + "/META-INF/**", + "/kotlin/**", + "**.txt", + "**.bin", + ) + } +} + dependencies { // https://developer.android.com/jetpack/androidx/releases/activity implementation(libs.androidx.activity.compose)