Multiplatform Playground (AppPortfolio)
A Kotlin Multiplatform project with the purpose of experimenting with and providing a possible direction to newcomers having questions about tech stack, project setup, architectural decisions in a KMP environment.
Note:
Its primary purpose is to showcase sharing every layer except the UI layer in between multiple platforms, so shared Presentation layer using the MVVM pattern, shared Domain and Data layers (UseCase, Repositories, Entities, etc.).
If sharing ViewModel logic is out of scope for you, then consider checking out the following repositories:
- https://github.com/joreilly/PeopleInSpace
- https://github.com/touchlab/KaMPKit
- https://github.com/joreilly/BikeShare
Shared pieces
- Every layer except UI (so ViewModel, UseCase, Repository layers)
- Localization
- DI
- Shared DTOs (between Backend & Clients)
Tech stack
- Declarative UI with
Jetpack Compose
andSwiftUI
- Koin
- Ktor (Backend + Client logic)
- Kotlinx-serialization
- SqlDelight
- Moko-Resources (Localization)
Targets
- JVM (Backend)
- Android
- iOS
- macOS
- desktop (planned)
- web (planned)
Module Hierarchy
Further Development
- Shared testing (currently android only, Mockk K/N support)
- Supporting more targets
https://icons8.com
The icons are from:License
Copyright 2021 HalcyonMobile https://www.halcyonmobile.com
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.