From fee77d73d54eed41e3fe6c99ce52ad4bfb61f172 Mon Sep 17 00:00:00 2001 From: Evan Hynes Date: Thu, 24 Sep 2026 18:05:11 -0400 Subject: [PATCH] feat: add Coil to the catalog lookbook is a catalogue of remote photographs: a grid of thumbnails and a pager of full-size album photos, all served by its own API. That needs an image loader with a memory and disk cache, and Coil 3 is the Compose-native one that shares the app's existing OkHttp stack rather than bringing a second HTTP client and a second cache to reason about. --- libs.versions.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs.versions.toml b/libs.versions.toml index 1fba6f1..16cdb39 100644 --- a/libs.versions.toml +++ b/libs.versions.toml @@ -30,6 +30,9 @@ navigation = "2.9.5" hilt = "2.60.1" hilt-androidx = "1.2.0" +# Coil 3 is the Compose-native image loader and shares the app's OkHttp stack, so a +# catalogue of remote photographs needs no second HTTP client or cache to reason about. +coil = "3.6.3" retrofit = "3.0.0" okhttp = "5.1.0" serialization = "1.9.0" @@ -84,6 +87,8 @@ hilt-navigation-compose = { group = "androidx.hilt", name = "hilt-navigation-com hilt-work = { group = "androidx.hilt", name = "hilt-work", version.ref = "hilt-androidx" } hilt-work-compiler = { group = "androidx.hilt", name = "hilt-compiler", version.ref = "hilt-androidx" } +coil-compose = { group = "io.coil-kt.coil3", name = "coil-compose", version.ref = "coil" } +coil-network-okhttp = { group = "io.coil-kt.coil3", name = "coil-network-okhttp", version.ref = "coil" } retrofit = { group = "com.squareup.retrofit2", name = "retrofit", version.ref = "retrofit" } retrofit-serialization = { group = "com.squareup.retrofit2", name = "converter-kotlinx-serialization", version.ref = "retrofit" } retrofit-moshi = { group = "com.squareup.retrofit2", name = "converter-moshi", version.ref = "retrofit" }