[GH] Use projectOrArtifact for lifecycle-runtime so it is accessible playground
The playground helper, isNeededForCompose also pulls in lifecycle-common
project into Compose playgrounds, but not lifecycle-runtime.
Test: cd compose/runtime && ./gradlew bOS
This is an imported pull request from https://github.com/androidx/androidx/pull/440.
Resolves #440
Github-Pr-Head-Sha: 4946450a08709934643bd11488ccf5c111752e78
GitOrigin-RevId: 375d51ddb04f96c1764ce2c598ff862e9231b183
Change-Id: I4d8485546f846e1c73cb5c93233f3de2dd6c54cc
diff --git a/lifecycle/lifecycle-common/build.gradle b/lifecycle/lifecycle-common/build.gradle
index c62e819..2e59a5d 100644
--- a/lifecycle/lifecycle-common/build.gradle
+++ b/lifecycle/lifecycle-common/build.gradle
@@ -29,7 +29,7 @@
constraints {
implementation(project(":lifecycle:lifecycle-common-java8"))
- implementation(project(":lifecycle:lifecycle-runtime"))
+ implementation(projectOrArtifact(":lifecycle:lifecycle-runtime"))
}
}
diff --git a/room/integration-tests/kotlintestapp/build.gradle b/room/integration-tests/kotlintestapp/build.gradle
index 22916dc..a88e0f2 100644
--- a/room/integration-tests/kotlintestapp/build.gradle
+++ b/room/integration-tests/kotlintestapp/build.gradle
@@ -112,7 +112,7 @@
androidTestImplementation(project(":internal-testutils-common"))
androidTestImplementation("androidx.arch.core:core-testing:2.0.1")
androidTestImplementation("androidx.paging:paging-runtime:3.1.1")
- androidTestImplementation(project(":lifecycle:lifecycle-runtime-testing"))
+ androidTestImplementation(projectOrArtifact(":lifecycle:lifecycle-runtime-testing"))
androidTestImplementation(libs.rxjava2)
testImplementation(libs.mockitoCore)
}