mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 17:53:14 +00:00
ファイル名修正
This commit is contained in:
parent
c5db820e1d
commit
7add8bcc39
|
@ -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
|
||||||
|
|
||||||
|
//
|
||||||
}
|
}
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user