ファイル名修正

This commit is contained in:
ろむねこ 2023-12-12 11:03:04 +09:00
parent c5db820e1d
commit 7add8bcc39
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168
4 changed files with 8 additions and 5 deletions

View File

@ -36,4 +36,6 @@ dependencies {
// Hilt // Hilt
implementation libs.com.google.dagger.hilt.android implementation libs.com.google.dagger.hilt.android
annotationProcessor libs.com.google.dagger.hilt.compiler annotationProcessor libs.com.google.dagger.hilt.compiler
//
} }

View File

@ -8,14 +8,15 @@ import java.util.Objects;
import javax.inject.Inject; import javax.inject.Inject;
import dagger.hilt.android.qualifiers.ApplicationContext; 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; private final Context applicationContext;
@Inject @Inject
public UtilsImpl(@ApplicationContext Context applicationContext) { public FileUtilsImpl(@ApplicationContext Context applicationContext) {
this.applicationContext = applicationContext; this.applicationContext = applicationContext;
} }

View File

@ -9,7 +9,7 @@ import one.nem.lacerta.data.utils.UtilsRepo;
@Module @Module
@InstallIn(SingletonComponent.class) @InstallIn(SingletonComponent.class)
abstract public class UtilsModule { abstract public class FileUtilsModule {
@Binds @Binds
public abstract UtilsRepo bindUtils(UtilsImpl utilsImpl); public abstract UtilsRepo bindUtils(UtilsImpl utilsImpl);

View File

@ -2,7 +2,7 @@ package oen.nem.lacerta.utils.repository;
import java.nio.file.Path; import java.nio.file.Path;
public interface UtilsRepo { public interface FileUtils {
Path getExternalFilesDirPath(String type); Path getExternalFilesDirPath(String type);