Skip to content

Instantly share code, notes, and snippets.

@ResoDev
Created November 25, 2019 17:05
Show Gist options
  • Save ResoDev/3f647e472feed1dd9df179a2533cee32 to your computer and use it in GitHub Desktop.
Save ResoDev/3f647e472feed1dd9df179a2533cee32 to your computer and use it in GitHub Desktop.
Kiwi Module Snippet
"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
Copy link

Hey , how can i use this snippet in android studio ?

@quannguyen42
Copy link

@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