MobileNativeFoundation/Store — reverse-engineered prompt
Reverse engineered prompt
Build me a Kotlin Multiplatform library for app data that works like a simple Store layer. I want developers to define how to fetch data from a network source, how to read and write it from a local cache, and then ask the Store for data without worrying about all the messy timing and offline logic.
It should help apps show cached data quickly, refresh from the source when needed, handle errors in a predictable way, and support common create, read, update, and delete flows. Please include clear APIs, sensible defaults, tests, and examples that show a basic Store, cache only usage, network plus cache usage, and CRUD usage.
Also add good documentation in the README so a Kotlin developer can understand why they would use it and how to get started quickly. Keep it clean and production ready, with Gradle setup for Kotlin Multiplatform. Look up current Kotlin Multiplatform docs online if you need to.
Want more depth? Deep Reverse