UtilsモジュールのfileUtilsを使用するように

This commit is contained in:
ろむねこ 2023-12-12 11:27:30 +09:00
parent eb79cffb34
commit 8de21d751e
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -10,19 +10,23 @@ import javax.inject.Inject;
import dagger.hilt.android.qualifiers.ApplicationContext; import dagger.hilt.android.qualifiers.ApplicationContext;
import one.nem.lacerta.data.repository.Commons; import one.nem.lacerta.data.repository.Commons;
import one.nem.lacerta.data.utils.UtilsRepo; // Internal Utils Repo import one.nem.lacerta.utils.repository.FileUtils;
public class CommonsImpl implements Commons{ public class CommonsImpl implements Commons{
@Inject @Inject
UtilsRepo utilsRepo; public CommonsImpl() {
}
@Inject
FileUtils fileUtils;
public Path getExternalFilesDirPath(String type) { public Path getExternalFilesDirPath(String type) {
return utilsRepo.getExternalFilesDirPath(type); return fileUtils.getExternalFilesDirPath(type);
} }
public Path getExternalFilesDirPath() { public Path getExternalFilesDirPath() {
return utilsRepo.getExternalFilesDirPath(); return fileUtils.getExternalFilesDirPath();
} }
} }