Created
November 25, 2019 17:05
-
-
Save ResoDev/3f647e472feed1dd9df179a2533cee32 to your computer and use it in GitHub Desktop.
Kiwi Module Snippet
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
"Kiwi DI module": { | |
"prefix": "kiwim", | |
"body": [ | |
"//! ${1:module name}", | |
"void _configure${1}Module() {", | |
" _configure${1}Instances();", | |
" _configure${1}Factories();", | |
"}", | |
"", | |
"void _configure${1}Instances() {", | |
" // container.registerInstance();", | |
"}", | |
"", | |
"@Register.factory(${2}, from: ${3})", | |
"void _configure${1}Factories();" | |
], | |
"description": "Kiwi DI module" | |
} |
@pawanchauhan043 , you can add this as a Live Template in Android Stuido
void _configure$moduleName$Module() {
_configure$moduleName$Instances();
_configure$moduleName$Factories();
}
void _configure$moduleName$Instances() {
// container.registerInstance();
}
@Register.factory($moduleNameD1$, from: $moduleNameD2$)
void _configure$moduleName$Factories();
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey , how can i use this snippet in android studio ?