From c08538d25dbe9f4cf005558ef0aa5c2d20144fc4 Mon Sep 17 00:00:00 2001 From: TobiGr Date: Tue, 4 Apr 2023 17:42:34 +0200 Subject: [PATCH] Remove jsoup files from APK Two jsoup files slipped into the META-INF dir of the APK for some reason. README.md and CHANGES are removed automatically now. --- app/build.gradle | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/build.gradle b/app/build.gradle index a2617aa58..6662b3846 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -96,6 +96,13 @@ android { buildFeatures { viewBinding true } + + packagingOptions { + // remove two files which belong to jsoup + // no idea how they ended up in the META-INF dir... + exclude 'META-INF/README.md' + exclude 'META-INF/CHANGES' + } } ext { @@ -313,6 +320,7 @@ static String getGitWorkingBranch() { } } +// fix reproducible builds project.afterEvaluate { tasks.compileReleaseArtProfile.doLast { outputs.files.each { file ->