Skip to content

Commit

Permalink
Use both macOS and linux targets in ui-showcase (#3663)
Browse files Browse the repository at this point in the history
  • Loading branch information
whyoleg authored Jul 9, 2024
1 parent e626d1a commit 6a4a88d
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 12,11 @@ kotlin {
jvm()
linuxX64()
macosX64()

// adding linuxArm64 and macosArm64 is a workaround for https://github.com/Kotlin/dokka/issues/3386
linuxArm64()
macosArm64()

js {
nodejs()
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 1,19 @@
/*
* Copyright 2014-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/

@file:Suppress("unused")

package org.jetbrains.dokka.uitest.kmp

import kotlinx.cinterop.CPointed
import kotlinx.cinterop.CPointer
import kotlinx.cinterop.ExperimentalForeignApi

/**
* Low-level MacOS function
*/
@OptIn(ExperimentalForeignApi::class)
fun <T : CPointed> printPointerRawValue(pointer: CPointer<T>) {
println(pointer.rawValue)
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 16,6 @@ import kotlin.test.assertTrue
class UiShowcaseIntegrationTest : AbstractGradleIntegrationTest(), TestOutputCopier {
override val projectOutputLocation: File by lazy { File(projectDir, "build/dokka/htmlMultiModule") }

@OnlyDescriptors("CPointer is not resolved in K2")
@ParameterizedTest(name = "{0}")
@ArgumentsSource(LatestTestedVersionsArgumentsProvider::class)
fun execute(buildVersions: BuildVersions) {
Expand Down

0 comments on commit 6a4a88d

Please sign in to comment.