Skip to content

Commit d91bd8b

Browse files
committed
Pass the target name to mppNativeCheckAtomicfuInImplementation
1 parent 5a02444 commit d91bd8b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

integration-testing/src/functionalTest/kotlin/kotlinx.atomicfu.gradle.plugin.test/cases/MppProjectTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class MppProjectTest {
6868
mppSample.enableNativeIrTransformation = true
6969
mppSample.cleanAndBuild()
7070
// When Native IR transformations are applied, atomicfu-gradle-plugin still provides transitive atomicfu dependency
71-
mppSample.mppNativeCheckAtomicfuInImplementation()
71+
mppSample.mppNativeCheckAtomicfuInImplementation("macosX64")
7272
mppSample.checkConsumableDependencies()
7373
mppSample.mppCheckAtomicfuInApi("macosX64")
7474
// TODO: klib checks are skipped for now because of this problem KT-61143
@@ -79,7 +79,7 @@ class MppProjectTest {
7979
fun testMppNativeWithDisabledIrTransformation() {
8080
mppSample.enableNativeIrTransformation = false
8181
mppSample.cleanAndBuild()
82-
mppSample.mppNativeCheckAtomicfuInImplementation()
82+
mppSample.mppNativeCheckAtomicfuInImplementation("macosX64")
8383
mppSample.checkConsumableDependencies()
8484
mppSample.mppCheckAtomicfuInApi("macosX64")
8585
// TODO: klib checks are skipped for now because of this problem KT-61143

integration-testing/src/functionalTest/kotlin/kotlinx.atomicfu.gradle.plugin.test/framework/checker/DependenciesChecker.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ internal fun GradleBuild.mppCheckAtomicfuInApi(targetName: String) {
6363
}
6464

6565
// Checks Native target of an MPP project
66-
internal fun GradleBuild.mppNativeCheckAtomicfuInImplementation() {
67-
checkAtomicfuDependencyIsPresent(listOf("macosX64MainImplementation"), commonAtomicfuDependency)
66+
internal fun GradleBuild.mppNativeCheckAtomicfuInImplementation(targetName: String) {
67+
checkAtomicfuDependencyIsPresent(listOf("${targetName}MainImplementation"), commonAtomicfuDependency)
6868
}
6969

7070
// Some dependencies may be not resolvable but consumable and will not be present in the output of :dependencies task,

0 commit comments

Comments
 (0)