Skip to content

Commit 6a4a88d

Browse files
authored
Use both macOS and linux targets in ui-showcase (#3663)
1 parent e626d1a commit 6a4a88d

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

dokka-integration-tests/gradle/projects/ui-showcase/kmp/build.gradle.kts

+5
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ kotlin {
1212
jvm()
1313
linuxX64()
1414
macosX64()
15+
16+
// adding linuxArm64 and macosArm64 is a workaround for https://github.com/Kotlin/dokka/issues/3386
17+
linuxArm64()
18+
macosArm64()
19+
1520
js {
1621
nodejs()
1722
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* Copyright 2014-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3+
*/
4+
5+
@file:Suppress("unused")
6+
7+
package org.jetbrains.dokka.uitest.kmp
8+
9+
import kotlinx.cinterop.CPointed
10+
import kotlinx.cinterop.CPointer
11+
import kotlinx.cinterop.ExperimentalForeignApi
12+
13+
/**
14+
* Low-level MacOS function
15+
*/
16+
@OptIn(ExperimentalForeignApi::class)
17+
fun <T : CPointed> printPointerRawValue(pointer: CPointer<T>) {
18+
println(pointer.rawValue)
19+
}

dokka-integration-tests/gradle/src/testUiShowcaseProject/kotlin/UiShowcaseIntegrationTest.kt

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import kotlin.test.assertTrue
1616
class UiShowcaseIntegrationTest : AbstractGradleIntegrationTest(), TestOutputCopier {
1717
override val projectOutputLocation: File by lazy { File(projectDir, "build/dokka/htmlMultiModule") }
1818

19-
@OnlyDescriptors("CPointer is not resolved in K2")
2019
@ParameterizedTest(name = "{0}")
2120
@ArgumentsSource(LatestTestedVersionsArgumentsProvider::class)
2221
fun execute(buildVersions: BuildVersions) {

0 commit comments

Comments
 (0)