mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2026-11-02 11:37:37 +00:00
HiltModule追加, Bind追加
This commit is contained in:
1 file changed
+18
-1
@@ -1,4 +1,21 @@
|
||||
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);
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user