Move viewModel() and LocalViewModelStoreOwner from compose:ui:ui to a lifecycle:lifecycle-viewmodel-compose
Relnote: viewModel() composable and LocalViewModelStoreOwner were moved to androidx.lifecycle.viewmodel.compose. You will now need to add a separate dependency androidx.lifecycle:lifecycle-viewmodel.compose:1.0.0-alpha01 in order to use it.
Test: moved existing tests
Change-Id: I7a374b76168a6387e585337c131a988bddcb912b
diff --git a/lifecycle/lifecycle-viewmodel-compose/build.gradle b/lifecycle/lifecycle-viewmodel-compose/build.gradle
index a23a7ff..a89b2a0 100644
--- a/lifecycle/lifecycle-viewmodel-compose/build.gradle
+++ b/lifecycle/lifecycle-viewmodel-compose/build.gradle
@@ -33,8 +33,19 @@
kotlinPlugin projectOrArtifact(":compose:compiler:compiler")
api "androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.0"
+ api projectOrArtifact(":compose:runtime:runtime")
+ api projectOrArtifact(":compose:ui:ui")
implementation(KOTLIN_STDLIB)
+
+ androidTestImplementation projectOrArtifact(":compose:ui:ui-test-junit4")
+ androidTestImplementation(ANDROIDX_TEST_RULES)
+ androidTestImplementation(ANDROIDX_TEST_RUNNER)
+ androidTestImplementation(JUNIT)
+ androidTestImplementation(TRUTH)
+ androidTestImplementation "androidx.fragment:fragment:1.2.4"
+ androidTestImplementation "androidx.appcompat:appcompat:1.1.0"
+ androidTestImplementation projectOrArtifact(":activity:activity-compose")
}
androidx {