From 8b41108fb512358f41b7d608d76d720a87fdda77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolf-Martell=20Montw=C3=A9?= Date: Fri, 23 Feb 2024 15:08:43 +0100 Subject: [PATCH] Move `html-cleaner` from app namspace to library to better reflect it's purpose --- app/core/build.gradle.kts | 2 +- cli/html-cleaner-cli/build.gradle.kts | 2 +- {app => library}/html-cleaner/build.gradle.kts | 0 .../src/main/kotlin}/app/k9mail/html/cleaner/BodyCleaner.kt | 0 .../src/main/kotlin}/app/k9mail/html/cleaner/HeadCleaner.kt | 0 .../main/kotlin}/app/k9mail/html/cleaner/HtmlHeadProvider.kt | 0 .../main/kotlin}/app/k9mail/html/cleaner/HtmlProcessor.kt | 0 .../main/kotlin}/app/k9mail/html/cleaner/HtmlSanitizer.kt | 0 .../kotlin}/app/k9mail/html/cleaner/HtmlSanitizerTest.kt | 0 settings.gradle.kts | 5 ++++- 10 files changed, 6 insertions(+), 3 deletions(-) rename {app => library}/html-cleaner/build.gradle.kts (100%) rename {app/html-cleaner/src/main/java => library/html-cleaner/src/main/kotlin}/app/k9mail/html/cleaner/BodyCleaner.kt (100%) rename {app/html-cleaner/src/main/java => library/html-cleaner/src/main/kotlin}/app/k9mail/html/cleaner/HeadCleaner.kt (100%) rename {app/html-cleaner/src/main/java => library/html-cleaner/src/main/kotlin}/app/k9mail/html/cleaner/HtmlHeadProvider.kt (100%) rename {app/html-cleaner/src/main/java => library/html-cleaner/src/main/kotlin}/app/k9mail/html/cleaner/HtmlProcessor.kt (100%) rename {app/html-cleaner/src/main/java => library/html-cleaner/src/main/kotlin}/app/k9mail/html/cleaner/HtmlSanitizer.kt (100%) rename {app/html-cleaner/src/test/java => library/html-cleaner/src/test/kotlin}/app/k9mail/html/cleaner/HtmlSanitizerTest.kt (100%) diff --git a/app/core/build.gradle.kts b/app/core/build.gradle.kts index 428c4f780..3f99465f5 100644 --- a/app/core/build.gradle.kts +++ b/app/core/build.gradle.kts @@ -6,7 +6,7 @@ plugins { dependencies { api(projects.mail.common) api(projects.backend.api) - api(projects.app.htmlCleaner) + api(projects.library.htmlCleaner) api(projects.core.android.common) implementation(projects.plugins.openpgpApiLib.openpgpApi) diff --git a/cli/html-cleaner-cli/build.gradle.kts b/cli/html-cleaner-cli/build.gradle.kts index 7b3f12245..9f8b4e20d 100644 --- a/cli/html-cleaner-cli/build.gradle.kts +++ b/cli/html-cleaner-cli/build.gradle.kts @@ -9,7 +9,7 @@ application { } dependencies { - implementation(projects.app.htmlCleaner) + implementation(projects.library.htmlCleaner) implementation(libs.clikt) implementation(libs.okio) diff --git a/app/html-cleaner/build.gradle.kts b/library/html-cleaner/build.gradle.kts similarity index 100% rename from app/html-cleaner/build.gradle.kts rename to library/html-cleaner/build.gradle.kts diff --git a/app/html-cleaner/src/main/java/app/k9mail/html/cleaner/BodyCleaner.kt b/library/html-cleaner/src/main/kotlin/app/k9mail/html/cleaner/BodyCleaner.kt similarity index 100% rename from app/html-cleaner/src/main/java/app/k9mail/html/cleaner/BodyCleaner.kt rename to library/html-cleaner/src/main/kotlin/app/k9mail/html/cleaner/BodyCleaner.kt diff --git a/app/html-cleaner/src/main/java/app/k9mail/html/cleaner/HeadCleaner.kt b/library/html-cleaner/src/main/kotlin/app/k9mail/html/cleaner/HeadCleaner.kt similarity index 100% rename from app/html-cleaner/src/main/java/app/k9mail/html/cleaner/HeadCleaner.kt rename to library/html-cleaner/src/main/kotlin/app/k9mail/html/cleaner/HeadCleaner.kt diff --git a/app/html-cleaner/src/main/java/app/k9mail/html/cleaner/HtmlHeadProvider.kt b/library/html-cleaner/src/main/kotlin/app/k9mail/html/cleaner/HtmlHeadProvider.kt similarity index 100% rename from app/html-cleaner/src/main/java/app/k9mail/html/cleaner/HtmlHeadProvider.kt rename to library/html-cleaner/src/main/kotlin/app/k9mail/html/cleaner/HtmlHeadProvider.kt diff --git a/app/html-cleaner/src/main/java/app/k9mail/html/cleaner/HtmlProcessor.kt b/library/html-cleaner/src/main/kotlin/app/k9mail/html/cleaner/HtmlProcessor.kt similarity index 100% rename from app/html-cleaner/src/main/java/app/k9mail/html/cleaner/HtmlProcessor.kt rename to library/html-cleaner/src/main/kotlin/app/k9mail/html/cleaner/HtmlProcessor.kt diff --git a/app/html-cleaner/src/main/java/app/k9mail/html/cleaner/HtmlSanitizer.kt b/library/html-cleaner/src/main/kotlin/app/k9mail/html/cleaner/HtmlSanitizer.kt similarity index 100% rename from app/html-cleaner/src/main/java/app/k9mail/html/cleaner/HtmlSanitizer.kt rename to library/html-cleaner/src/main/kotlin/app/k9mail/html/cleaner/HtmlSanitizer.kt diff --git a/app/html-cleaner/src/test/java/app/k9mail/html/cleaner/HtmlSanitizerTest.kt b/library/html-cleaner/src/test/kotlin/app/k9mail/html/cleaner/HtmlSanitizerTest.kt similarity index 100% rename from app/html-cleaner/src/test/java/app/k9mail/html/cleaner/HtmlSanitizerTest.kt rename to library/html-cleaner/src/test/kotlin/app/k9mail/html/cleaner/HtmlSanitizerTest.kt diff --git a/settings.gradle.kts b/settings.gradle.kts index 2db6d467e..3f091fb7c 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -34,7 +34,6 @@ include( ":app:storage", ":app:crypto-openpgp", ":app:testing", - ":app:html-cleaner", ) include( @@ -110,3 +109,7 @@ include( ":cli:html-cleaner-cli", ":cli:translation-cli", ) + +include( + ":library:html-cleaner", +)