From a56c5cd4a4c6569f4e3cc29d7abc5d8ac02a448c Mon Sep 17 00:00:00 2001 From: Aleksei Tiurin Date: Wed, 26 Jun 2024 00:02:38 +0400 Subject: [PATCH] Fix Multiplatform connect doc --- .github/workflows/docs.yml | 1 + docs/docs/intro/connect.md | 17 +++++++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 4964e8d7..88102eda 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -4,6 +4,7 @@ on: push: branches: - master + - docs jobs: github-pages: diff --git a/docs/docs/intro/connect.md b/docs/docs/intro/connect.md index 4a75ef90..3aabd932 100644 --- a/docs/docs/intro/connect.md +++ b/docs/docs/intro/connect.md @@ -28,11 +28,24 @@ dependencies { ``` For Compose Multiplatform UI tests + +As Ultron supports Desktop and Android targets for KMP. You better specify depencencies in relevant part ```kotlin kotlin { + androidTarget { + @OptIn(ExperimentalKotlinGradlePluginApi::class) + instrumentedTestVariant { + ... + dependencies { + implementation("com.atiurin:ultron-compose:") + } + } + } sourceSets { - commonTest.dependencies { - implementation("com.atiurin:ultron-compose:") + val desktopTest by getting { + dependencies { + implementation("com.atiurin:ultron-compose:") + } } } }