Skip to content

Commit

Permalink
Dependency updates and print statement removal
Browse files Browse the repository at this point in the history
  • Loading branch information
bjsvedin committed Sep 27, 2024
1 parent 109f294 commit 7dbe6f5
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ buildscript {
classpath("org.jetbrains.kotlin:kotlin-serialization:$kotlinVersion")
classpath("org.jetbrains.dokka:dokka-gradle-plugin:1.9.20")
classpath("com.lightningkite:deploy-helpers:0.0.7")
classpath("com.android.tools.build:gradle:8.2.2")
classpath("com.android.tools.build:gradle:8.5.2")
}
}
allprojects {
Expand Down
2 changes: 1 addition & 1 deletion library/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ android {
targetCompatibility = JavaVersion.VERSION_1_8
}
dependencies {
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.0.4")
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.2")
}
testOptions {
unitTests {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ class PerformanceInfo(val key: String, val immediate: Boolean = false) {
val now = clockMillis()
if(now - lastReport > 5000) {
lastReport = now
println("---PERFORMANCE REPORT---")
all.values.filter { it.count > 0 }.sortedByDescending { it.sum }.forEach { it.print() }
println("---PERFORMANCE REPORT END---")
}
}
operator fun get(key: String) = all.getOrPut(key) { PerformanceInfo(key) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ fun WeakReference<*>.checkLeakAfterDelay(milliseconds: Long) {
gcIfNotVeryRecent()
get()?.let {
leaks.add(this)
println("Leaked ${it}, total ${leaks.size} leaks")
recheckLeakAfterDelay(milliseconds)
}
}
Expand All @@ -33,7 +32,6 @@ fun WeakReference<*>.recheckLeakAfterDelay(milliseconds: Long) {
gcIfNotVeryRecent()
if (get() == null) {
leaks.remove(this)
println("Recovered item, total ${leaks.size} leaks")
} else {
recheckLeakAfterDelay(milliseconds)
}
Expand Down
2 changes: 0 additions & 2 deletions library/src/jsMain/kotlin/com/lightningkite/kiteui/root.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ fun root(theme: Theme, app: ViewWriter.()->Unit) {
}

init {
println("Root")
beforeNextElementSetup {
println("Set the theme")
themeChoice = ThemeDerivation { theme.withBack }
}
}
Expand Down

0 comments on commit 7dbe6f5

Please sign in to comment.