Skip to content

Commit 32a1dbc

Browse files
committed
Fix logs in release build
1 parent 5794148 commit 32a1dbc

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

client/build.gradle.kts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ plugins {
88
alias(libs.plugins.buildconfig)
99
}
1010

11-
version = "1.6.3"
11+
version = "1.6.4"
1212

1313
repositories {
1414
mavenCentral()
@@ -65,9 +65,15 @@ tasks {
6565
into(layout.buildDirectory.dir("dll/common"))
6666
}
6767

68+
val copyLogback by registering(Copy::class) {
69+
from(layout.projectDirectory.dir("src/main/resources/logback.xml"))
70+
include("*.xml")
71+
into(layout.buildDirectory.dir("dll/common"))
72+
}
73+
6874
afterEvaluate {
6975
named("prepareAppResources") {
70-
dependsOn(copyDll)
76+
dependsOn(copyDll, copyLogback)
7177
}
7278
named("proguardReleaseJars") {
7379
dependsOn(collectProguardConfigs)
@@ -105,6 +111,7 @@ compose {
105111
windows {
106112
iconFile = layout.projectDirectory.file("icons/icon.ico")
107113
menuGroup = "GTA Killer"
114+
console = true
108115
upgradeUuid = "8193b8f9-1355-4d0f-9c6f-6619d0f18604"
109116
}
110117
}

client/rules.pro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
}
3030

3131
# Logback
32-
-keep class org.slf4j.spi.SLF4JServiceProvider
33-
-keep class ch.qos.logback.classic.spi.LogbackServiceProvider
34-
-dontwarn io.github.oshai.kotlinlogging.internal.**
32+
-keep class org.slf4j.**
33+
-keep class ch.qos.logback.**
34+
-dontwarn io.github.oshai.kotlinlogging.internal.**
3535

3636
-optimizations !method/specialization/parametertype

0 commit comments

Comments
 (0)