-
-
Save hasanmohdkhan/f9468370a4bbc0464314e02e1eba1696 to your computer and use it in GitHub Desktop.
Optimizing ViewModel with Lifecycle 2.2.0: Setup
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
android { | |
... | |
kotlinOptions { jvmTarget = '1.8' } | |
} | |
dependencies { | |
... | |
// ViewModel | |
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:X.X.X" | |
// LiveData | |
implementation "androidx.lifecycle:lifecycle-livedata-ktx:X.X.X" | |
// Navigation | |
implementation "androidx.navigation:navigation-ui-ktx:X.X.X" | |
implementation "androidx.navigation:navigation-fragment-ktx:X.X.X" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment