Fixed curious error message expected class OsHelper does not have default constructor
This commit is contained in:
parent
13efab3118
commit
6761e9a120
|
@ -1,7 +1,7 @@
|
||||||
package net.dankito.utils.multiplatform
|
package net.dankito.utils.multiplatform
|
||||||
|
|
||||||
|
|
||||||
expect class StackTraceHelper {
|
expect class StackTraceHelper actual constructor() {
|
||||||
|
|
||||||
fun getStackTrace(e: Throwable, maxCountStackTraceElements: Int? = null): String
|
fun getStackTrace(e: Throwable, maxCountStackTraceElements: Int? = null): String
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package net.dankito.utils.multiplatform.os
|
package net.dankito.utils.multiplatform.os
|
||||||
|
|
||||||
|
|
||||||
expect class OsHelper {
|
expect class OsHelper() {
|
||||||
|
|
||||||
val osType: OsType
|
val osType: OsType
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package net.dankito.utils.multiplatform
|
package net.dankito.utils.multiplatform
|
||||||
|
|
||||||
|
|
||||||
actual class StackTraceHelper {
|
actual class StackTraceHelper() {
|
||||||
|
|
||||||
actual fun getStackTrace(e: Throwable, maxCountStackTraceElements: Int?): String {
|
actual fun getStackTrace(e: Throwable, maxCountStackTraceElements: Int?): String {
|
||||||
var stackTrace = e.getStackTrace()
|
var stackTrace = e.getStackTrace()
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
package net.dankito.utils.multiplatform.os
|
package net.dankito.utils.multiplatform.os
|
||||||
|
|
||||||
|
|
||||||
actual class OsHelper {
|
actual class OsHelper actual constructor() {
|
||||||
|
|
||||||
|
|
||||||
actual val osType = OsType.iOS
|
actual val osType = OsType.iOS
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ import java.io.PrintWriter
|
||||||
import java.io.StringWriter
|
import java.io.StringWriter
|
||||||
|
|
||||||
|
|
||||||
actual class StackTraceHelper {
|
actual class StackTraceHelper actual constructor() {
|
||||||
|
|
||||||
actual fun getStackTrace(e: Throwable, maxCountStackTraceElements: Int?): String {
|
actual fun getStackTrace(e: Throwable, maxCountStackTraceElements: Int?): String {
|
||||||
val stringWriter = StringWriter()
|
val stringWriter = StringWriter()
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
package net.dankito.utils.multiplatform.os
|
package net.dankito.utils.multiplatform.os
|
||||||
|
|
||||||
|
|
||||||
actual open class OsHelper {
|
actual open class OsHelper actual constructor() {
|
||||||
|
|
||||||
|
|
||||||
actual val osType: OsType
|
actual val osType: OsType
|
||||||
get() {
|
get() {
|
||||||
|
|
Loading…
Reference in New Issue