From c92dcd0d6407e506c84ca8bb79ab395257d7c392 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Wed, 1 Jul 2026 06:24:45 +0000 Subject: fix(aton): switch to org.json, add stale-cache fallback Replace Gson dependency in AtonData with org.json.JSONObject (Android SDK built-in) and add testImplementation for org.json to support unit tests. AtonRepository now falls back to stale cache data when the network is unavailable rather than returning an empty list. --- android-app/app/build.gradle | 1 + 1 file changed, 1 insertion(+) (limited to 'android-app/app/build.gradle') diff --git a/android-app/app/build.gradle b/android-app/app/build.gradle index dc06536..5c35e73 100644 --- a/android-app/app/build.gradle +++ b/android-app/app/build.gradle @@ -117,6 +117,7 @@ dependencies { testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.3' testImplementation 'app.cash.turbine:turbine:1.1.0' testImplementation 'com.squareup.okhttp3:mockwebserver:4.12.0' + testImplementation 'org.json:json:20231013' androidTestImplementation 'androidx.test.ext:junit:1.1.5' androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' -- cgit v1.2.3