Skip to content

Commit

Permalink
Version 0.7.8
Browse files Browse the repository at this point in the history
  • Loading branch information
kpgalligan committed Jun 19, 2024
1 parent 58715e5 commit cca4259
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 15 deletions.
Binary file modified cli-build/macosArm64/main/klib/cli.klib
Binary file not shown.
Binary file modified cli-build/macosX64/main/klib/cli.klib
Binary file not shown.
29 changes: 15 additions & 14 deletions cli-build/src/commonMain/kotlin/MainCli.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import io.sentry.kotlin.multiplatform.Sentry
import io.sentry.kotlin.multiplatform.SentryLevel
import io.sentry.kotlin.multiplatform.protocol.Breadcrumb

@Suppress("unused")
fun mainCli(args: Array<String>) {
var eventCount = 0
Sentry.init { options ->
Expand All @@ -19,16 +20,12 @@ fun mainCli(args: Array<String>) {
options.tracesSampleRate = 1.0
}

try {
MainCli().entry(
args = args,
sentryEventCount = { eventCount },
breadcrumbLogWriter = SentryLogWriter,
{ arg: Any -> DeployKeySetup(arg) }
)
} catch (e: Throwable) {
Sentry.captureException(e)
}
MainCli().entry(
args = args,
sentryEventCount = { eventCount },
breadcrumbLogWriter = SentryLogWriter,
{ arg: Any -> DeployKeySetup(arg) }
)
}

private object SentryLogWriter : LogWriter() {
Expand All @@ -48,13 +45,17 @@ private object SentryLogWriter : LogWriter() {
"default"
} else {
"error"
},
data = throwable?.let { ex ->
mutableMapOf(
Pair(
ex::class.simpleName ?: "(Unknown exception type)",
ex.stackTraceToString()
)
)
}
)
)

if (throwable != null) {
Sentry.captureException(throwable)
}
}
}

Expand Down
Binary file modified engine-build/macosArm64/main/klib/engine.klib
Binary file not shown.
Binary file modified engine-build/macosX64/main/klib/engine.klib
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
kotlin.code.style=official
VERSION_NAME=0.7.6
VERSION_NAME=0.7.8
GROUP=co.touchlab.gitportal

0 comments on commit cca4259

Please sign in to comment.