From 7add8bcc39f80b085bbdefd94d184f7819f66a6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Tue, 12 Dec 2023 11:03:04 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=95=E3=82=A1=E3=82=A4=E3=83=AB=E5=90=8D?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/build.gradle | 2 ++ .../utils/impl/{UtilsImpl.java => FileUtilsImpl.java} | 7 ++++--- .../module/{UtilsModule.java => FileUtilsModule.java} | 2 +- .../utils/repository/{UtilsRepo.java => FileUtils.java} | 2 +- 4 files changed, 8 insertions(+), 5 deletions(-) rename utils/src/main/java/oen/nem/lacerta/utils/impl/{UtilsImpl.java => FileUtilsImpl.java} (78%) rename utils/src/main/java/oen/nem/lacerta/utils/module/{UtilsModule.java => FileUtilsModule.java} (90%) rename utils/src/main/java/oen/nem/lacerta/utils/repository/{UtilsRepo.java => FileUtils.java} (84%) diff --git a/utils/build.gradle b/utils/build.gradle index e253eff6..db7197a6 100644 --- a/utils/build.gradle +++ b/utils/build.gradle @@ -36,4 +36,6 @@ dependencies { // Hilt implementation libs.com.google.dagger.hilt.android annotationProcessor libs.com.google.dagger.hilt.compiler + + // } \ No newline at end of file diff --git a/utils/src/main/java/oen/nem/lacerta/utils/impl/UtilsImpl.java b/utils/src/main/java/oen/nem/lacerta/utils/impl/FileUtilsImpl.java similarity index 78% rename from utils/src/main/java/oen/nem/lacerta/utils/impl/UtilsImpl.java rename to utils/src/main/java/oen/nem/lacerta/utils/impl/FileUtilsImpl.java index a0854ff3..d67a9104 100644 --- a/utils/src/main/java/oen/nem/lacerta/utils/impl/UtilsImpl.java +++ b/utils/src/main/java/oen/nem/lacerta/utils/impl/FileUtilsImpl.java @@ -8,14 +8,15 @@ import java.util.Objects; import javax.inject.Inject; import dagger.hilt.android.qualifiers.ApplicationContext; -import one.nem.lacerta.data.utils.UtilsRepo; -public class UtilsImpl implements UtilsRepo{ +import oen.nem.lacerta.utils.repository.FileUtils; + +public class FileUtilsImpl implements FileUtils { private final Context applicationContext; @Inject - public UtilsImpl(@ApplicationContext Context applicationContext) { + public FileUtilsImpl(@ApplicationContext Context applicationContext) { this.applicationContext = applicationContext; } diff --git a/utils/src/main/java/oen/nem/lacerta/utils/module/UtilsModule.java b/utils/src/main/java/oen/nem/lacerta/utils/module/FileUtilsModule.java similarity index 90% rename from utils/src/main/java/oen/nem/lacerta/utils/module/UtilsModule.java rename to utils/src/main/java/oen/nem/lacerta/utils/module/FileUtilsModule.java index a05e96c9..0102889e 100644 --- a/utils/src/main/java/oen/nem/lacerta/utils/module/UtilsModule.java +++ b/utils/src/main/java/oen/nem/lacerta/utils/module/FileUtilsModule.java @@ -9,7 +9,7 @@ import one.nem.lacerta.data.utils.UtilsRepo; @Module @InstallIn(SingletonComponent.class) -abstract public class UtilsModule { +abstract public class FileUtilsModule { @Binds public abstract UtilsRepo bindUtils(UtilsImpl utilsImpl); diff --git a/utils/src/main/java/oen/nem/lacerta/utils/repository/UtilsRepo.java b/utils/src/main/java/oen/nem/lacerta/utils/repository/FileUtils.java similarity index 84% rename from utils/src/main/java/oen/nem/lacerta/utils/repository/UtilsRepo.java rename to utils/src/main/java/oen/nem/lacerta/utils/repository/FileUtils.java index 14a81d61..20a0a575 100644 --- a/utils/src/main/java/oen/nem/lacerta/utils/repository/UtilsRepo.java +++ b/utils/src/main/java/oen/nem/lacerta/utils/repository/FileUtils.java @@ -2,7 +2,7 @@ package oen.nem.lacerta.utils.repository; import java.nio.file.Path; -public interface UtilsRepo { +public interface FileUtils { Path getExternalFilesDirPath(String type);