This commit is contained in:
ろむねこ 2023-12-11 12:56:13 +09:00
parent d36195c89b
commit 00aa51e082
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168
2 changed files with 4 additions and 2 deletions

View File

@ -12,7 +12,7 @@ import one.nem.lacerta.data.model.shared_pref.enums.SharedPrefType;
public class SharedPrefImpl implements SharedPref{
private Context applicationContext;
private final Context applicationContext;
@Inject
public SharedPrefImpl(@ApplicationContext Context applicationContext) {

View File

@ -7,11 +7,13 @@ import dagger.Binds;
import dagger.Module;
import dagger.hilt.InstallIn;
import dagger.hilt.components.SingletonComponent;
import one.nem.lacerta.data.impl.SharedPrefImpl;
import one.nem.lacerta.data.repository.SharedPref;
@Module
@InstallIn(SingletonComponent.class)
abstract public class SharedPrefModule {
@Binds
abstract SharedPreferences bindSharedPreferences(Context applicationContext);
public abstract SharedPref bindSharedPref(SharedPrefImpl sharedPrefImpl);
}