From the course: Kotlin Multiplatform Development

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Managing resources

Managing resources

- [Instructor] When it comes to developing an app across many different platforms, one simple area to reduce overhead is to share different types of resources between all of the apps. We can share translated strings for different languages, including plain strings, strings with templates, plurals, string arrays. We can include fonts to share as well as image and file assets. We can also create different directories for alternate versions of resources depending upon qualifiers. For example, you can have different strings for different languages or use different images depending on day versus night mode theming. You would normally need to add the compose component resources dependency, but we've actually been using it all along. You'll notice that it's included as part of compose with the Compose Multiplatform plugin. Let's start by adding the Comic Sans TrueType font. What better way to troll all the font purists out there? So we will simply add the font file to commonMain…

Contents