Setting up DataStore on KMP

- 4 mins read

Series: Tv Maniac Journey

In this article, well, take a look at how to DataStore and how to use it in a Kotlin Multiplatform project. Recently Google announced a couple of Jetpack Multiplatform libraries. One is DataStore, a storage solution that allows you to store key-value pairs. This has been rewritten & is now available on Kotlin Multiplatform, targeting Android & iOS. Something to take note of is that these libraries are experimental and should not be used on production apps
I recently decided to dive into the Kotlin Multiplatform world. So far, so good. This article talks about my journey modularising a project I’ve been working on. There are other ways of going about this, but this worked for me. TvManiac I’m using TMDB to fetch Tv Show information. Here’s how it looks on both platforms. I have much work done on Android since that’s my territory. I’m updating the iOS side of things as I learn.