From e0df3913fe451056e6c5490f02faf3e8b2f2d33d Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 27 May 2026 15:41:28 +0000 Subject: Add Room database as track summary cache Adds TrackEntity/TrackDao/NavDatabase (Room v2.6.1). TrackRepository writes to Room on stopTrack() and importTrack(), and backfills existing tracks on first cold-start when the Room cache is empty. GPX/SAF remains source-of-truth for reinstall; Room is a fast metadata cache for future list-view optimisation. https://claude.ai/code/session_01KXYBuAHZkvv63DeUG6XaZD --- android-app/app/build.gradle | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'android-app/app/build.gradle') diff --git a/android-app/app/build.gradle b/android-app/app/build.gradle index bf8d5c9..dc06536 100644 --- a/android-app/app/build.gradle +++ b/android-app/app/build.gradle @@ -97,6 +97,11 @@ dependencies { implementation 'com.squareup.moshi:moshi-kotlin:1.15.0' ksp 'com.squareup.moshi:moshi-kotlin-codegen:1.15.0' + // Room + implementation 'androidx.room:room-runtime:2.6.1' + implementation 'androidx.room:room-ktx:2.6.1' + ksp 'androidx.room:room-compiler:2.6.1' + // Location implementation 'com.google.android.gms:play-services-location:21.2.0' -- cgit v1.2.3