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(); - -}