diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-07-01 06:24:45 +0000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-07-01 06:24:45 +0000 |
| commit | c92dcd0d6407e506c84ca8bb79ab395257d7c392 (patch) | |
| tree | 594ba09d274f094bd5aac967d72d46193b40048b /android-app/app/build.gradle | |
| parent | 36d94937a561300197ef53aa9096defadfda3e72 (diff) | |
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.
Diffstat (limited to 'android-app/app/build.gradle')
| -rw-r--r-- | android-app/app/build.gradle | 1 |
1 files changed, 1 insertions, 0 deletions
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' |
