From 67d54f0dd78bd1448e87ea873a8487dd7bb91a08 Mon Sep 17 00:00:00 2001 From: aminecmi Date: Tue, 23 Aug 2022 22:16:54 +0200 Subject: [PATCH] Big code cleaning. --- androidApp/build.gradle.kts | 8 +++----- .../amine/apps/readerforselfossv2/model/SelfossModel.kt | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/androidApp/build.gradle.kts b/androidApp/build.gradle.kts index 7283465..846f050 100644 --- a/androidApp/build.gradle.kts +++ b/androidApp/build.gradle.kts @@ -190,13 +190,11 @@ dependencies { implementation("androidx.core:core-ktx:1.8.0") - implementation("androidx.lifecycle:lifecycle-livedata-ktx:2.5.1") - implementation("androidx.lifecycle:lifecycle-common-java8:2.5.1") - implementation("androidx.lifecycle:lifecycle-runtime:2.5.1") + // implementation("androidx.lifecycle:lifecycle-livedata-ktx:2.5.1") + // implementation("androidx.lifecycle:lifecycle-common-java8:2.5.1") + // implementation("androidx.lifecycle:lifecycle-runtime:2.5.1") implementation("androidx.lifecycle:lifecycle-extensions:2.2.0") - implementation("android.arch.work:work-runtime-ktx:1.0.1") - // Network information implementation("com.github.ln-12:multiplatform-connectivity-status:1.3.0") diff --git a/shared/src/commonMain/kotlin/bou/amine/apps/readerforselfossv2/model/SelfossModel.kt b/shared/src/commonMain/kotlin/bou/amine/apps/readerforselfossv2/model/SelfossModel.kt index 2531907..15decfb 100644 --- a/shared/src/commonMain/kotlin/bou/amine/apps/readerforselfossv2/model/SelfossModel.kt +++ b/shared/src/commonMain/kotlin/bou/amine/apps/readerforselfossv2/model/SelfossModel.kt @@ -98,7 +98,7 @@ class SelfossModel { } fun sourceAndDateText(dateUtils: DateUtils): String = - this.title.getHtmlDecoded() + dateUtils.parseRelativeDate(this.datetime) + this.sourcetitle.getHtmlDecoded() + dateUtils.parseRelativeDate(this.datetime) fun toggleStar(): Item { this.starred = !this.starred