FreedomChuks / WhosNext

Kotlin Multiplatform Timer

Home Page:https://guilhe.github.io/WhosNext/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

icon


Who's Next!?

A simple application that lets you know when it’s time to change the goalkeeper in a football game with friends.

android ios desktop wasm

Details

Uses Kotlin Multiplatform for sharing the Data Layer between all platforms and Compose Multiplatform to create a cross-platform Ui Layer. It also uses SwiftUI to provide an additional iOS Ui Layer.

Supports: jvm (android and desktop), native (iOS) and wasm (web)

Modules

shared

  • Model-View-Intent architecture with state emission by Kotlin Flow
  • Finite State Machine to validate state transitions
  • State restoration (both for UI State and FSM State)
  • ViewModel shared by KMM-ViewModel

fsm wn wnp

shared-ui

  • Components
  • Screens
  • Resources

androidApp + iosApp

  • Android uses Compose Multiplatform
  • iOS uses SwiftUI and Compose Multiplatform

./gradlew :shared-ui:main:installDebug

Note: due to current limitations in Compose Multiplatform, resources in multimodule projects are not supported yet. As a result, the androidApp implementation is located within the androidMain of the shared-ui module.

To run iosApp open iosApp/iosApp.xcodeproj in Xcode and run standard configuration or use KMM plugin for Android Studio and choose iosApp in run configurations.

desktopApp

./gradlew :desktopApp:run

browserApp

./gradlew :shared-ui:wasmJsBrowserDevelopmentRun

Note: due to current limitations in Compose Multiplatform, resources in multimodule projects are not supported yet. As a result, the browserApp implementation is located within the wasmJsMain of the shared-ui module.

UI

android   ios   desktop

wasm

LICENSE

Copyright (c) 2024-present GuilhE

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

http://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.

About

Kotlin Multiplatform Timer

https://guilhe.github.io/WhosNext/

License:Apache License 2.0


Languages

Language:Kotlin 82.1%Language:Swift 17.6%Language:HTML 0.3%