diff --git a/common/src/commonMain/kotlin/net/dankito/utils/multiplatform/StackTraceHelper.kt b/common/src/commonMain/kotlin/net/dankito/utils/multiplatform/StackTraceHelper.kt index 04f41734..50a508a6 100644 --- a/common/src/commonMain/kotlin/net/dankito/utils/multiplatform/StackTraceHelper.kt +++ b/common/src/commonMain/kotlin/net/dankito/utils/multiplatform/StackTraceHelper.kt @@ -1,7 +1,7 @@ package net.dankito.utils.multiplatform -expect class StackTraceHelper { +expect class StackTraceHelper actual constructor() { fun getStackTrace(e: Throwable, maxCountStackTraceElements: Int? = null): String diff --git a/common/src/commonMain/kotlin/net/dankito/utils/multiplatform/os/OsHelper.kt b/common/src/commonMain/kotlin/net/dankito/utils/multiplatform/os/OsHelper.kt index 3d713667..405e2665 100644 --- a/common/src/commonMain/kotlin/net/dankito/utils/multiplatform/os/OsHelper.kt +++ b/common/src/commonMain/kotlin/net/dankito/utils/multiplatform/os/OsHelper.kt @@ -1,7 +1,7 @@ package net.dankito.utils.multiplatform.os -expect class OsHelper { +expect class OsHelper() { val osType: OsType diff --git a/common/src/iosMain/kotlin/net/dankito/utils/multiplatform/StackTraceHelper.kt b/common/src/iosMain/kotlin/net/dankito/utils/multiplatform/StackTraceHelper.kt index 11c5714f..45db401b 100644 --- a/common/src/iosMain/kotlin/net/dankito/utils/multiplatform/StackTraceHelper.kt +++ b/common/src/iosMain/kotlin/net/dankito/utils/multiplatform/StackTraceHelper.kt @@ -1,7 +1,7 @@ package net.dankito.utils.multiplatform -actual class StackTraceHelper { +actual class StackTraceHelper() { actual fun getStackTrace(e: Throwable, maxCountStackTraceElements: Int?): String { var stackTrace = e.getStackTrace() diff --git a/common/src/iosMain/kotlin/net/dankito/utils/multiplatform/os/OsHelper.kt b/common/src/iosMain/kotlin/net/dankito/utils/multiplatform/os/OsHelper.kt index 70cd2db3..e409affd 100644 --- a/common/src/iosMain/kotlin/net/dankito/utils/multiplatform/os/OsHelper.kt +++ b/common/src/iosMain/kotlin/net/dankito/utils/multiplatform/os/OsHelper.kt @@ -1,7 +1,8 @@ package net.dankito.utils.multiplatform.os -actual class OsHelper { +actual class OsHelper actual constructor() { + actual val osType = OsType.iOS diff --git a/common/src/jvmMain/kotlin/net/dankito/utils/multiplatform/StackTraceHelper.kt b/common/src/jvmMain/kotlin/net/dankito/utils/multiplatform/StackTraceHelper.kt index 33aae61d..f9728b61 100644 --- a/common/src/jvmMain/kotlin/net/dankito/utils/multiplatform/StackTraceHelper.kt +++ b/common/src/jvmMain/kotlin/net/dankito/utils/multiplatform/StackTraceHelper.kt @@ -4,7 +4,7 @@ import java.io.PrintWriter import java.io.StringWriter -actual class StackTraceHelper { +actual class StackTraceHelper actual constructor() { actual fun getStackTrace(e: Throwable, maxCountStackTraceElements: Int?): String { val stringWriter = StringWriter() diff --git a/common/src/jvmMain/kotlin/net/dankito/utils/multiplatform/os/OsHelper.kt b/common/src/jvmMain/kotlin/net/dankito/utils/multiplatform/os/OsHelper.kt index 126f7286..c2a94068 100644 --- a/common/src/jvmMain/kotlin/net/dankito/utils/multiplatform/os/OsHelper.kt +++ b/common/src/jvmMain/kotlin/net/dankito/utils/multiplatform/os/OsHelper.kt @@ -1,7 +1,8 @@ package net.dankito.utils.multiplatform.os -actual open class OsHelper { +actual open class OsHelper actual constructor() { + actual val osType: OsType get() {