This app helps anyone practice driving theory test exams. It is built with Compose Multiplatform and can run on both Android and iOS.
To build this project you need to have these dependencies ready:
- JDK 11
- Gradle 8.4
- CocoaPods
Besides, Android Studio and Intellij are the preferred IDEs. You also need to install several plugins:
- Kotlin Multiplatform Mobile.
- SQLDelight. This project relys on SQLDelight for handling on-device database. The plugin helps with syntax highlighting and code generation.
Most of the code is kept under the shared folder with the following structure.
- commonMain is where we keep code that is independent of platforms. We also define
expect
interfaces here.- There's a sqldelight directory. It contains database tables and functions that will be generated to Kotlin code by the sqldelight gradle plugin.
- androidMain and iosMain are where we implement the
actual
interfaces defined by commonMain such as database drivers, views, etc.
This project follows the MVVM
architecture and is organized by feature.
This project is open-source under the MIT license.