mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2026-11-02 11:37:37 +00:00
Module実装
This commit is contained in:
1 file changed
+13
-1
@@ -1,4 +1,16 @@
|
||||
package one.nem.lacerta.data.module;
|
||||
|
||||
public class CommonsModule {
|
||||
import dagger.Binds;
|
||||
import dagger.Module;
|
||||
import dagger.hilt.InstallIn;
|
||||
import dagger.hilt.components.SingletonComponent;
|
||||
import one.nem.lacerta.data.repository.Commons;
|
||||
import one.nem.lacerta.data.impl.CommonsImpl;
|
||||
|
||||
@Module
|
||||
@InstallIn(SingletonComponent.class)
|
||||
abstract class CommonsModule {
|
||||
|
||||
@Binds
|
||||
public abstract Commons bindCommons(CommonsImpl commonsImpl);
|
||||
}
|
||||
Reference in new issue
Block a user