Skip to content

Instantly share code, notes, and snippets.

@Nimrodda
Last active February 26, 2020 21:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nimrodda/58a6c3284880e5f21a46e0629ba3688a to your computer and use it in GitHub Desktop.
Save Nimrodda/58a6c3284880e5f21a46e0629ba3688a to your computer and use it in GitHub Desktop.
dependencies {
def version = "2.2.0"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$version"
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$version"
implementation "androidx.lifecycle:lifecycle-viewmodel-savedstate:$version"
// or lifeycle-compiler if not using Java 8
//kapt "androidx.lifecycle:lifecycle-compiler:$version"
implementation "androidx.activity:activity-ktx:1.1.0"
implementation "androidx.fragment:fragment-ktx:1.2.1"
}
@labermt
Copy link

labermt commented May 29, 2019

This doesn't work.

implementation "androidx.lifecycle:lifecycle-viewmodel-savedstate:$1.0.0-alpha01"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment