Last active
July 7, 2020 20:57
-
-
Save adam-hurwitz/0ba551d456c2029d41677554270099bd 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