mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
fix
This commit is contained in:
parent
d36195c89b
commit
00aa51e082
|
@ -12,7 +12,7 @@ import one.nem.lacerta.data.model.shared_pref.enums.SharedPrefType;
|
||||||
|
|
||||||
public class SharedPrefImpl implements SharedPref{
|
public class SharedPrefImpl implements SharedPref{
|
||||||
|
|
||||||
private Context applicationContext;
|
private final Context applicationContext;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public SharedPrefImpl(@ApplicationContext Context applicationContext) {
|
public SharedPrefImpl(@ApplicationContext Context applicationContext) {
|
||||||
|
|
|
@ -7,11 +7,13 @@ import dagger.Binds;
|
||||||
import dagger.Module;
|
import dagger.Module;
|
||||||
import dagger.hilt.InstallIn;
|
import dagger.hilt.InstallIn;
|
||||||
import dagger.hilt.components.SingletonComponent;
|
import dagger.hilt.components.SingletonComponent;
|
||||||
|
import one.nem.lacerta.data.impl.SharedPrefImpl;
|
||||||
|
import one.nem.lacerta.data.repository.SharedPref;
|
||||||
|
|
||||||
@Module
|
@Module
|
||||||
@InstallIn(SingletonComponent.class)
|
@InstallIn(SingletonComponent.class)
|
||||||
abstract public class SharedPrefModule {
|
abstract public class SharedPrefModule {
|
||||||
|
|
||||||
@Binds
|
@Binds
|
||||||
abstract SharedPreferences bindSharedPreferences(Context applicationContext);
|
public abstract SharedPref bindSharedPref(SharedPrefImpl sharedPrefImpl);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user