diff --git a/docs/topics/multiplatform-mobile/multiplatform-mobile-understand-project-structure.md b/docs/topics/multiplatform-mobile/multiplatform-mobile-understand-project-structure.md index 587795690ba..1b3cda4d5ab 100644 --- a/docs/topics/multiplatform-mobile/multiplatform-mobile-understand-project-structure.md +++ b/docs/topics/multiplatform-mobile/multiplatform-mobile-understand-project-structure.md @@ -159,7 +159,7 @@ Read [Multiplatform documentation on adding dependencies](multiplatform-add-depe Along with `*Main` source sets, there are three matching test source sets: * `commonTest` -* `androidTest` +* `androidUnitTest` * `iosTest` Use them to store unit tests for common and platform-specific source sets accordingly. @@ -178,7 +178,7 @@ kotlin { implementation(kotlin("test")) } } - val androidTest by getting + val androidUnitTest by getting val iosTest by getting } @@ -198,7 +198,7 @@ kotlin { implementation kotlin('test') } } - androidTest { + androidUnitTest { } iosTest { diff --git a/docs/topics/multiplatform/multiplatform-share-on-platforms.md b/docs/topics/multiplatform/multiplatform-share-on-platforms.md index ae1dd4ac83b..b17c62c05e8 100644 --- a/docs/topics/multiplatform/multiplatform-share-on-platforms.md +++ b/docs/topics/multiplatform/multiplatform-share-on-platforms.md @@ -19,7 +19,7 @@ just share it in the common source set. Some dependencies for source sets are set by default. You don't need to specify any `dependsOn` relations manually: * For all platform-specific source sets that depend on the common source set, such as `jvmMain`, `macosX64Main`, and others. -* Between the `main` and `test` source sets of a particular target, such as `androidMain` and `androidTest`. +* Between the `main` and `test` source sets of a particular target, such as `androidMain` and `androidUnitTest`. If you need to access platform-specific APIs from the shared code, use the Kotlin mechanism of [expected and actual declarations](multiplatform-connect-to-apis.md).