From 2c1f1c6828cd10d0076439834eb260bfbdd88dd7 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:25:11 +0900 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E5=8B=95=E3=81=97=E3=81=9F=E3=81=AE?= =?UTF-8?q?=E3=81=A7=E5=85=83=E3=82=92=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../one/nem/lacerta/data/utils/UtilsImpl.java | 28 ------------------- .../nem/lacerta/data/utils/UtilsModule.java | 16 ----------- .../one/nem/lacerta/data/utils/UtilsRepo.java | 11 -------- 3 files changed, 55 deletions(-) delete mode 100644 data/src/main/java/one/nem/lacerta/data/utils/UtilsImpl.java delete mode 100644 data/src/main/java/one/nem/lacerta/data/utils/UtilsModule.java delete mode 100644 data/src/main/java/one/nem/lacerta/data/utils/UtilsRepo.java diff --git a/data/src/main/java/one/nem/lacerta/data/utils/UtilsImpl.java b/data/src/main/java/one/nem/lacerta/data/utils/UtilsImpl.java deleted file mode 100644 index ec1591be..00000000 --- a/data/src/main/java/one/nem/lacerta/data/utils/UtilsImpl.java +++ /dev/null @@ -1,28 +0,0 @@ -package one.nem.lacerta.data.utils; - -import android.content.Context; - -import java.nio.file.Path; -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{ - - private final Context applicationContext; - - @Inject - public UtilsImpl(@ApplicationContext Context applicationContext) { - this.applicationContext = applicationContext; - } - - public Path getExternalFilesDirPath(String type) { - return Objects.requireNonNull(applicationContext.getExternalFilesDir(type)).toPath(); - } - - public Path getExternalFilesDirPath() { - return Objects.requireNonNull(applicationContext.getExternalFilesDir(null)).toPath(); - } -} diff --git a/data/src/main/java/one/nem/lacerta/data/utils/UtilsModule.java b/data/src/main/java/one/nem/lacerta/data/utils/UtilsModule.java deleted file mode 100644 index d03692e9..00000000 --- a/data/src/main/java/one/nem/lacerta/data/utils/UtilsModule.java +++ /dev/null @@ -1,16 +0,0 @@ -package one.nem.lacerta.data.utils; - -import dagger.Binds; -import dagger.Module; -import dagger.hilt.InstallIn; -import one.nem.lacerta.data.utils.UtilsRepo; -import one.nem.lacerta.data.utils.UtilsImpl; -import dagger.hilt.components.SingletonComponent; - -@Module -@InstallIn(SingletonComponent.class) -abstract public class UtilsModule { - - @Binds - public abstract UtilsRepo bindUtils(UtilsImpl utilsImpl); -} diff --git a/data/src/main/java/one/nem/lacerta/data/utils/UtilsRepo.java b/data/src/main/java/one/nem/lacerta/data/utils/UtilsRepo.java deleted file mode 100644 index d25e0c92..00000000 --- a/data/src/main/java/one/nem/lacerta/data/utils/UtilsRepo.java +++ /dev/null @@ -1,11 +0,0 @@ -package one.nem.lacerta.data.utils; - -import java.nio.file.Path; - -public interface UtilsRepo { - - Path getExternalFilesDirPath(String type); - - Path getExternalFilesDirPath(); - -}