From 59eb399cfafa08978498d6401c241a444009a8f8 Mon Sep 17 00:00:00 2001 From: aminecmi Date: Tue, 23 Aug 2022 15:17:47 +0200 Subject: [PATCH] File renaming. --- .../utils/{EntitiesUtils.kt => ModelConverters.kt} | 0 .../utils/{EntitiesUtils.kt => EntityUtils.kt} | 4 ---- .../amine/apps/readerforselfossv2/utils/ModelConverters.kt | 7 +++++++ .../utils/{EntitiesUtils.kt => ModelConverters.kt} | 0 .../utils/{EntitiesUtils.kt => ModelConverters.kt} | 0 5 files changed, 7 insertions(+), 4 deletions(-) rename shared/src/androidMain/kotlin/bou/amine/apps/readerforselfossv2/utils/{EntitiesUtils.kt => ModelConverters.kt} (100%) rename shared/src/commonMain/kotlin/bou/amine/apps/readerforselfossv2/utils/{EntitiesUtils.kt => EntityUtils.kt} (90%) create mode 100644 shared/src/commonMain/kotlin/bou/amine/apps/readerforselfossv2/utils/ModelConverters.kt rename shared/src/iosArm64Main/kotlin/bou/amine/apps/readerforselfossv2/utils/{EntitiesUtils.kt => ModelConverters.kt} (100%) rename shared/src/iosX64Main/kotlin/bou/amine/apps/readerforselfossv2/utils/{EntitiesUtils.kt => ModelConverters.kt} (100%) diff --git a/shared/src/androidMain/kotlin/bou/amine/apps/readerforselfossv2/utils/EntitiesUtils.kt b/shared/src/androidMain/kotlin/bou/amine/apps/readerforselfossv2/utils/ModelConverters.kt similarity index 100% rename from shared/src/androidMain/kotlin/bou/amine/apps/readerforselfossv2/utils/EntitiesUtils.kt rename to shared/src/androidMain/kotlin/bou/amine/apps/readerforselfossv2/utils/ModelConverters.kt diff --git a/shared/src/commonMain/kotlin/bou/amine/apps/readerforselfossv2/utils/EntitiesUtils.kt b/shared/src/commonMain/kotlin/bou/amine/apps/readerforselfossv2/utils/EntityUtils.kt similarity index 90% rename from shared/src/commonMain/kotlin/bou/amine/apps/readerforselfossv2/utils/EntitiesUtils.kt rename to shared/src/commonMain/kotlin/bou/amine/apps/readerforselfossv2/utils/EntityUtils.kt index c9ae9d3..ac56c57 100644 --- a/shared/src/commonMain/kotlin/bou/amine/apps/readerforselfossv2/utils/EntitiesUtils.kt +++ b/shared/src/commonMain/kotlin/bou/amine/apps/readerforselfossv2/utils/EntityUtils.kt @@ -5,10 +5,6 @@ import bou.amine.apps.readerforselfossv2.dao.SOURCE import bou.amine.apps.readerforselfossv2.dao.TAG import bou.amine.apps.readerforselfossv2.rest.SelfossModel -expect fun SelfossModel.Source.getTitleDecoded(): String -expect fun SelfossModel.Item.getTitleDecoded(): String -expect fun SelfossModel.Item.getSourceTitle(): String - fun TAG.toView(): SelfossModel.Tag = SelfossModel.Tag( this.name, diff --git a/shared/src/commonMain/kotlin/bou/amine/apps/readerforselfossv2/utils/ModelConverters.kt b/shared/src/commonMain/kotlin/bou/amine/apps/readerforselfossv2/utils/ModelConverters.kt new file mode 100644 index 0000000..804e05d --- /dev/null +++ b/shared/src/commonMain/kotlin/bou/amine/apps/readerforselfossv2/utils/ModelConverters.kt @@ -0,0 +1,7 @@ +package bou.amine.apps.readerforselfossv2.utils + +import bou.amine.apps.readerforselfossv2.rest.SelfossModel + +expect fun SelfossModel.Source.getTitleDecoded(): String +expect fun SelfossModel.Item.getTitleDecoded(): String +expect fun SelfossModel.Item.getSourceTitle(): String \ No newline at end of file diff --git a/shared/src/iosArm64Main/kotlin/bou/amine/apps/readerforselfossv2/utils/EntitiesUtils.kt b/shared/src/iosArm64Main/kotlin/bou/amine/apps/readerforselfossv2/utils/ModelConverters.kt similarity index 100% rename from shared/src/iosArm64Main/kotlin/bou/amine/apps/readerforselfossv2/utils/EntitiesUtils.kt rename to shared/src/iosArm64Main/kotlin/bou/amine/apps/readerforselfossv2/utils/ModelConverters.kt diff --git a/shared/src/iosX64Main/kotlin/bou/amine/apps/readerforselfossv2/utils/EntitiesUtils.kt b/shared/src/iosX64Main/kotlin/bou/amine/apps/readerforselfossv2/utils/ModelConverters.kt similarity index 100% rename from shared/src/iosX64Main/kotlin/bou/amine/apps/readerforselfossv2/utils/EntitiesUtils.kt rename to shared/src/iosX64Main/kotlin/bou/amine/apps/readerforselfossv2/utils/ModelConverters.kt