Created
April 9, 2018 06:00
-
-
Save vincent-paing/b3133fbf59b4e11cd834ebc65fd7afac to your computer and use it in GitHub Desktop.
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 characters
abstract class BaseFragment : Fragment() { | |
override fun onDestroy() { | |
releaseContext(this::class.toString()) | |
super.onDestroy() | |
} | |
} |
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 characters
val viewModelModules = applicationContext { | |
context(SignInFragment::class.toString()) { | |
viewModel { | |
SignInViewModel(SignIn(get(), get(), get())) | |
} | |
} | |
context(SignUpFragment::class.toString()) { | |
viewModel { | |
SignUpViewModel(SignUp(get(), get(), get())) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment