Last active
May 27, 2022 10:17
-
-
Save stantronic/1fd7c313979f40e5a071bcc9b12c6ee9 to your computer and use it in GitHub Desktop.
Revisions
-
stantronic revised this gist
May 27, 2022 . 1 changed file with 11 additions and 8 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,11 +1,14 @@ # Terminology * *Module* - a recipe for how to make a thing * *Component* - a kitchen that "cooks up" things according to the recipes * *Scope* - the lifetime of the things created * *EntryPoint* - a place which has its own kitchen # Annotations * `@Inject` - I can be injected, and things can be injected into me * `@Binds` - When a consumer asks for this interface, inject this implementation * `@Provides` - this function shows how to make this thing * `@AndroidEntryPoint` - use on Activies and Fragments to turn them into EntryPoints
-
stantronic revised this gist
May 27, 2022 . 2 changed files with 11 additions and 11 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ *Module* - a recipe for how to make a thing *Component* - a kitchen that "cooks up" things according to the recipes *Scope* - the lifetime of the things created *EntryPoint* - a place which has its own kitchen `@Inject` - I can be injected, and things can be injected into me `@Binds` - When a consumer asks for this interface, inject this implementation `@Provides` - this function shows how to make this thing `@AndroidEntryPoint` - use on Activies and Fragments to turn them into EntryPoints
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 charactersOriginal file line number Diff line number Diff line change @@ -1,11 +0,0 @@ -
stantronic created this gist
May 27, 2022 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ Module - a recipe for how to make a thing Component - a kitchen that "cooks up" things according to the recipes Scope - the lifetime of the things created EntryPoint - a place which has its own kitchen @Inject - I can be injected, and things can be injected into me @Binds - When a consumer asks for this interface, inject this implementation @Provides - this function shows how to make this thing @AndroidEntryPoint - use on Activies and Fragments to turn them into EntryPoints