Fixed curious error message expected class OsHelper does not have default constructor

This commit is contained in:
dankito 2021-01-15 14:49:48 +01:00
parent 13efab3118
commit 6761e9a120
6 changed files with 8 additions and 6 deletions

View File

@ -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

View File

@ -1,7 +1,7 @@
package net.dankito.utils.multiplatform.os
expect class OsHelper {
expect class OsHelper() {
val osType: OsType

View File

@ -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()

View File

@ -1,7 +1,8 @@
package net.dankito.utils.multiplatform.os
actual class OsHelper {
actual class OsHelper actual constructor() {
actual val osType = OsType.iOS

View File

@ -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()

View File

@ -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() {