Last active
May 13, 2024 23:04
-
-
Save CostaFot/9a536262ec213b3a71739d5266d2244f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component( | |
modules = [FirstModule::class, VmModule::class] // dagger modules here if needed | |
) | |
interface FirstComponent { | |
fun inject(firstContainer: FirstContainer) // inject the container instead of the activity/fragment | |
@Component.Builder | |
interface Builder { | |
fun build(): FirstComponent | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment