Created
July 30, 2018 07:54
-
-
Save har5hit/ffc55da87e0d028914c100b0d52912bb to your computer and use it in GitHub Desktop.
Revisions
-
har5hit created this gist
Jul 30, 2018 .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,20 @@ ---- JAVA ---- @Binds @IntoMap @ViewModelKey($ViewModelClassName$.class) abstract ViewModel bind$ViewModelClassName$($ViewModelClassName$ $ViewModelVariable$); ---- KOTLIN ---- @Binds @IntoMap @ViewModelKey($ViewModelClassName$.class) abstract bind$ViewModelClassName$($ViewModelClassName$ : $ViewModelClassName$):ViewModel; ---- Edit Template Variables ---- ViewModelClassName variableOfType(ViewModel) ViewModelVariable camelCase(ViewModelClassName)