mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 17:53:14 +00:00
HiltModule追加, Bind追加
This commit is contained in:
parent
c2eec8064b
commit
15ee6f344f
|
@ -1,4 +1,21 @@
|
||||||
package com.example.lacerta.data.module;
|
package com.example.lacerta.data.module;
|
||||||
|
|
||||||
public class DeviceMetaModule {
|
import android.app.Application;
|
||||||
|
|
||||||
|
import com.example.lacerta.data.impl.DeviceMetaImpl;
|
||||||
|
import com.example.lacerta.data.repository.DeviceMeta;
|
||||||
|
|
||||||
|
import dagger.Binds;
|
||||||
|
import dagger.Module;
|
||||||
|
import dagger.hilt.InstallIn;
|
||||||
|
// Singleton
|
||||||
|
import dagger.hilt.components.SingletonComponent;
|
||||||
|
|
||||||
|
@Module
|
||||||
|
@InstallIn(SingletonComponent.class)
|
||||||
|
abstract class DeviceMetaModule {
|
||||||
|
|
||||||
|
@Binds
|
||||||
|
public abstract DeviceMeta bindDeviceMeta(DeviceMetaImpl deviceMetaImpl);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user