Last active
October 27, 2022 04:38
-
-
Save Morfly/0bb4b88f37397e8e1bbfa873583dc6fe to your computer and use it in GitHub Desktop.
This file contains 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
interface CommonProvider { | |
val appContext: Context | |
} |
This file contains 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
@Singleton | |
@Component | |
interface CommonComponent : CommonProvider { | |
@Component.Factory | |
interface Factory { | |
fun create(@BindsInstance appContext: Context): CommonComponent | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment