Contained in: Kotlin Multiplatform by Tutorials
patterns
Android & Kotlin
Chapter in Kotlin Multiplatform by Tutorials
App Architecture
May 7 2025 · Chapter
…issue. Although the term software architecture is relatively new in the industry, software engineers have applied the fundamental principles since the mid-1980s. Design Patterns The broad heading of software architecture consists of numerous subtopics. One of these is architectural styles — otherwise known as software design patterns. This topic…
Android & Kotlin
Chapter in Kotlin Multiplatform by Tutorials
Connecting to Platform-Specific API
May 7 2025 · Chapter
…working with KMP, you'll often need to access platform-specific APIs. In this chapter, you'll take a deeper dive into the expect/actual pattern and how you can use them to access platform-specific APIs…
Android & Kotlin
Chapter in Kotlin Multiplatform by Tutorials
Testing
May 7 2025 · Chapter
…time, you’ll have to come up with another excuse. :] Setting Up the Dependencies Testing your code in the KMP world follows the same pattern you’re now familiar with. You test the code in the common module. You may also need to use the expect/actual mechanism as well. With…
Android & Kotlin
Chapter in Kotlin Multiplatform by Tutorials
Data Persistence
May 7 2025 · Chapter
…reminder. Third, create a file called 1.sqm in the same directory to write the migration statements. You must always name this file using this pattern: <version to upgrade from>.sqm. ALTER TABLE ReminderDb ADD COLUMN dueDate INTEGER; You’re telling the system to alter the ReminderDb table…
Android & Kotlin
Chapter in Kotlin Multiplatform by Tutorials
Concurrency
May 7 2025 · Chapter
…allows running multiple coroutines in a single thread and it supports exception handling and cancellation. Reaktive: An implementation of Reactive Extensions using the Observable pattern. CoroutineWorker: Supports multithreaded coroutines. In this chapter, you’ll learn how to use kotlinx.coroutines. Spoiler alert: You’ve already worked with coroutines before…