Skip to content

Popalay/offline data - #99

Merged
Popalay merged 5 commits into
masterfrom
popalay/offline-data
Mar 14, 2026
Merged

Popalay merged 5 commits into
masterfrom
popalay/offline-data

Conversation

@Popalay

@Popalay Popalay commented Mar 14, 2026

Copy link
Copy Markdown
Owner

No description provided.

Popalay added 5 commits March 14, 2026 17:17
…re, architecture, key dependencies, build setup, and coding conventions.
- Bump AGP to 8.9.1, compileSdk/targetSdk to 36, Gradle wrapper to 8.11.1
- Upgrade Kotlin to 2.0.21 with Compose Multiplatform plugin, Compose to 1.6.11
- Set JVM toolchain to 21 across all modules
- Upgrade Voyager to 1.1.0-beta02 to fix AndroidScreenLifecycleOwner lifecycle crash on back navigation; update NavigatorSaver lambda signature accordingly
- Upgrade Koin to 3.5.6 to match koin-compose 1.0.4 (binary-incompatible with 3.4.x)
- Downgrade Kermit logger to 2.0.6 (compatible with Kotlin 2.0.x); fix Logger call-site overload ambiguity
- Fix StateMachine initialization NPE by introducing backing MutableStateFlow; use tryEmit with extraBufferCapacity=64 to prevent dropped actions after back navigation
- Replace custom AppBottomSheetNavigator to avoid removed ModalBottomSheetLayout API
- Give image loader its own plain HttpClient to avoid ContentNegotiation sending Accept: application/json on image requests (HTTP 406)
- Simplify AsyncImage: remove BoxWithConstraints and placeholder logic now that ExternalImageUrl.scaledUrl returns the plain URL
- Update CI workflows to actions/checkout@v4 and setup-java@v4 with Zulu JDK 21

Made-with: Cursor
- Bundle cocktails.json (426 drinks) as an Android asset and commonMain resource
- Add LocalDrinkDataSource backed by the bundled JSON, replacing the remote Api client
- Add CocktailDbDrink DTO and CocktailDbMapper to convert to domain Drink model
- Add expect/actual ResourceReader for reading bundled assets on Android and iOS
- Update DrinkRepository and CollectionRepository to use LocalDrinkDataSource
- Remove deprecated Api.kt remote client and DrinksResponse/DrinkListFirstElementTransformer
- Add scripts/download_cocktails.py for re-fetching and preprocessing the dataset

Made-with: Cursor
Made-with: Cursor
@Popalay
Popalay merged commit cd96b40 into master Mar 14, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant