From d2dcd4209d8b791801e0ac320b169bd1e53a8cb6 Mon Sep 17 00:00:00 2001 From: Ax333l Date: Fri, 14 Jul 2023 13:11:34 +0200 Subject: [PATCH] fix: release builds not working properly --- app/build.gradle.kts | 5 ++--- app/proguard-rules.pro | 1 + gradle/libs.versions.toml | 7 +++++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 836a8d23..81deddfa 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -82,9 +82,8 @@ dependencies { implementation(libs.accompanist.webview) // HTML Scraper - implementation(libs.skrapeit) { - exclude(group = "xml-apis", module = "xml-apis") - } + implementation(libs.skrapeit.dsl) + implementation(libs.skrapeit.parser) // Coil (async image loading, network image) implementation(libs.coil.compose) diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index c1069ecd..5300a120 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -48,5 +48,6 @@ -dontwarn java.awt.** -dontwarn javax.** -dontwarn org.slf4j.** +-dontwarn it.skrape.fetcher.* -keepattributes RuntimeVisibleAnnotations,AnnotationDefault \ No newline at end of file diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 725dbca2..b2bab9dd 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -24,7 +24,8 @@ devToolsGradlePlugin = "1.8.21-1.0.11" aboutLibrariesGradlePlugin = "10.8.0" coil = "2.4.0" app-icon-loader-coil = "1.5.0" -skrapeit = "1.1.5" +skrapeit = "1.2.1" + [libraries] # AndroidX Core androidx-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "ktx" } @@ -89,7 +90,9 @@ ktor-content-negotiation = { group = "io.ktor", name = "ktor-client-content-nego ktor-serialization = { group = "io.ktor", name = "ktor-serialization-kotlinx-json", version.ref = "ktor" } # HTML Scraper -skrapeit= { group = "it.skrape", name = "skrapeit", version.ref = "skrapeit" } +skrapeit-dsl = { group = "it.skrape", name = "skrapeit-dsl", version.ref = "skrapeit" } +skrapeit-parser = { group = "it.skrape", name = "skrapeit-html-parser", version.ref = "skrapeit" } + # Markdown markdown = { group = "org.jetbrains", name = "markdown", version.ref = "markdown" }