From c80f0e7a0e714f573ba4a4bb9aa41e4a32e1c533 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernd=20Pr=C3=BCnster?= Date: Mon, 28 Oct 2024 23:37:28 +0100 Subject: [PATCH] exclude more resources for Android target --- supreme/build.gradle.kts | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/supreme/build.gradle.kts b/supreme/build.gradle.kts index 5dfed4d8..f402b0fe 100644 --- a/supreme/build.gradle.kts +++ b/supreme/build.gradle.kts @@ -1,4 +1,6 @@ -import at.asitplus.gradle.* +import at.asitplus.gradle.coroutines +import at.asitplus.gradle.napier +import at.asitplus.gradle.setupDokka import com.squareup.kotlinpoet.AnnotationSpec import com.squareup.kotlinpoet.ClassName import com.squareup.kotlinpoet.FileSpec @@ -71,15 +73,24 @@ android { } packaging { - resources.excludes.add("/META-INF/{AL2.0,LGPL2.1}") - resources.excludes.add("win32-x86-64/attach_hotspot_windows.dll") - resources.excludes.add("win32-x86/attach_hotspot_windows.dll") - resources.excludes.add("META-INF/versions/9/OSGI-INF/MANIFEST.MF") - resources.excludes.add("META-INF/licenses/*") + listOf( + "org/bouncycastle/pqc/crypto/picnic/lowmcL5.bin.properties", + "org/bouncycastle/pqc/crypto/picnic/lowmcL3.bin.properties", + "org/bouncycastle/pqc/crypto/picnic/lowmcL1.bin.properties", + "org/bouncycastle/x509/CertPathReviewerMessages_de.properties", + "org/bouncycastle/x509/CertPathReviewerMessages.properties", + "org/bouncycastle/pkix/CertPathReviewerMessages_de.properties", + "org/bouncycastle/pkix/CertPathReviewerMessages.properties", + "/META-INF/{AL2.0,LGPL2.1}", + "win32-x86-64/attach_hotspot_windows.dll", + "win32-x86/attach_hotspot_windows.dll", + "META-INF/versions/9/OSGI-INF/MANIFEST.MF", + "META-INF/licenses/*", + ).forEach { resources.excludes.add(it) } } testOptions { - targetSdk=30 + targetSdk = 30 managedDevices { localDevices { create("pixel2api33") { @@ -213,7 +224,7 @@ fun wireAndroidInstrumentedTests() { } project.gradle.taskGraph.whenReady { - tasks.getByName("testDebugUnitTest"){ - enabled=false + tasks.getByName("testDebugUnitTest") { + enabled = false } } \ No newline at end of file