Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
# --- Core Android & Kotlin ---
# Foundational versions for Android app development and Kotlin language features.
appcompat = "1.7.1"
core-ktx = "1.17.0"
kotlin = "2.3.10"
kotlinx-coroutines = "1.10.2"
core-ktx = "1.18.0"

Check warning

Code scanning / Android Lint

Obsolete Gradle Dependency Warning

A newer version of androidx.core:core-ktx than 1.18.0 is available: 1.19.0
kotlin = "2.4.0"
kotlinx-coroutines = "1.11.0"
lifecycle-extensions = "2.2.0"
lifecycle-viewmodel-ktx = "2.10.0"
material = "1.13.0"
Expand All @@ -24,8 +24,8 @@
# --- Jetpack Compose ---
# Versions for Jetpack Compose, Android's modern UI toolkit.
# The Compose BOM (Bill of Materials) coordinates versions of all Compose libraries.
activity-compose = "1.12.4"
compose-bom = "2026.02.00"
activity-compose = "1.13.0"
compose-bom = "2026.06.01"

# --- Google Services (Maps) ---
# Versions for Google Play Services libraries essential for map functionality.
Expand All @@ -38,16 +38,16 @@
androidx-test-core = "1.7.0"
junit = "4.13.2"
kxml2 = "2.3.0"
mockito-core = "5.21.0"
mockk = "1.14.9"
mockito-core = "5.23.0"
mockk = "1.14.11"
robolectric = "4.16.1"
truth = "1.4.5"

# --- Lint & Analysis ---
# Versions for code quality and static analysis tools.
jacoco-android = "0.2.1"
lint = "32.0.1"
org-jacoco-core = "0.8.14"
lint = "32.2.1"
org-jacoco-core = "0.8.15"

# --- Gradle Plugins ---
# Versions for Gradle plugins used in the build process.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,13 +245,13 @@ class HeatmapTileProvider private constructor(builder: Builder) : TileProvider {
}

val intensity = Array(TILE_DIM + radius * 2) { DoubleArray(TILE_DIM + radius * 2) }
points.forEach { w ->
for (w in points) {
val p = w.point
val bucketX = ((p.x - minX) / bucketWidth).toInt()
val bucketY = ((p.y - minY) / bucketWidth).toInt()
intensity[bucketX][bucketY] += w.intensity
}
wrappedPoints.forEach { w ->
for (w in wrappedPoints) {
val p = w.point
val bucketX = ((p.x + xOffset - minX) / bucketWidth).toInt()
val bucketY = ((p.y - minY) / bucketWidth).toInt()
Expand Down Expand Up @@ -411,7 +411,7 @@ class HeatmapTileProvider private constructor(builder: Builder) : TileProvider {
val scale = nBuckets / boundsDim
val buckets = mutableMapOf<Vector, Double>()

points.forEach { l ->
for (l in points) {
val x = l.point.x
val y = l.point.y
val xBucket = ((x - minX) * scale).toInt()
Expand Down
Loading