Commit c9ad9e7 1 parent 82a7419 commit c9ad9e7 Copy full SHA for c9ad9e7
File tree 1 file changed +8
-4
lines changed
app/src/main/kotlin/warlockfe/warlock3/app
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -69,8 +69,6 @@ import kotlin.math.roundToInt
69
69
@OptIn(ExperimentalResourceApi ::class )
70
70
fun main (args : Array <String >) {
71
71
72
- initializeSentry()
73
-
74
72
val parser = ArgParser (" warlock3" )
75
73
val port by parser.option(
76
74
type = ArgType .Int ,
@@ -99,6 +97,9 @@ fun main(args: Array<String>) {
99
97
parser.parse(args)
100
98
101
99
val version = System .getProperty(" app.version" )
100
+ version?.let {
101
+ initializeSentry(version)
102
+ }
102
103
if (debug == true || (debug == null && version == null )) {
103
104
System .setProperty(DEFAULT_LOG_LEVEL_KEY , " DEBUG" )
104
105
}
@@ -331,9 +332,12 @@ private fun GameState.getTitle(): Flow<String> {
331
332
}
332
333
}
333
334
334
- fun initializeSentry () {
335
+ fun initializeSentry (version : String ) {
335
336
Sentry .init { options ->
336
- options.dsn = " https://06169c08bd931ba4308dab95573400e2@o4508437273378816.ingest.us.sentry.io/4508437322727424"
337
+ with (options) {
338
+ dsn = " https://06169c08bd931ba4308dab95573400e2@o4508437273378816.ingest.us.sentry.io/4508437322727424"
339
+ release = " desktop@$version "
340
+ }
337
341
}
338
342
}
339
343
You can’t perform that action at this time.
0 commit comments